Api-Roll 50: 2017-06-12 R=vegorov@google.com Review-Url: https://codereview.chromium.org//2936613002 .
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; }