Api-roll 42: 2016-11-08 R=whesse@google.com Review URL: https://codereview.chromium.org//2485703002 .
diff --git a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart index 065064d..a1ee4aa 100644 --- a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart +++ b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterAmpUrlError--; } -buildUnnamed1326() { +buildUnnamed1347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1326(core.List<core.String> o) { +checkUnnamed1347(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -116,7 +116,7 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { o.lookupStrategy = "foo"; - o.urls = buildUnnamed1326(); + o.urls = buildUnnamed1347(); } buildCounterBatchGetAmpUrlsRequest--; return o; @@ -126,32 +126,32 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { unittest.expect(o.lookupStrategy, unittest.equals('foo')); - checkUnnamed1326(o.urls); + checkUnnamed1347(o.urls); } buildCounterBatchGetAmpUrlsRequest--; } -buildUnnamed1327() { +buildUnnamed1348() { var o = new core.List<api.AmpUrl>(); o.add(buildAmpUrl()); o.add(buildAmpUrl()); return o; } -checkUnnamed1327(core.List<api.AmpUrl> o) { +checkUnnamed1348(core.List<api.AmpUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrl(o[0]); checkAmpUrl(o[1]); } -buildUnnamed1328() { +buildUnnamed1349() { var o = new core.List<api.AmpUrlError>(); o.add(buildAmpUrlError()); o.add(buildAmpUrlError()); return o; } -checkUnnamed1328(core.List<api.AmpUrlError> o) { +checkUnnamed1349(core.List<api.AmpUrlError> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrlError(o[0]); checkAmpUrlError(o[1]); @@ -162,8 +162,8 @@ var o = new api.BatchGetAmpUrlsResponse(); buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - o.ampUrls = buildUnnamed1327(); - o.urlErrors = buildUnnamed1328(); + o.ampUrls = buildUnnamed1348(); + o.urlErrors = buildUnnamed1349(); } buildCounterBatchGetAmpUrlsResponse--; return o; @@ -172,8 +172,8 @@ checkBatchGetAmpUrlsResponse(api.BatchGetAmpUrlsResponse o) { buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - checkUnnamed1327(o.ampUrls); - checkUnnamed1328(o.urlErrors); + checkUnnamed1348(o.ampUrls); + checkUnnamed1349(o.urlErrors); } buildCounterBatchGetAmpUrlsResponse--; }
diff --git a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart index e9dfc87..afe03d3 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart
@@ -74,14 +74,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed1038() { +buildUnnamed1064() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed1038(core.List<api.AccountBidderLocation> o) { +checkUnnamed1064(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -92,7 +92,7 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.bidderLocation = buildUnnamed1038(); + o.bidderLocation = buildUnnamed1064(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -108,7 +108,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1038(o.bidderLocation); + checkUnnamed1064(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -120,14 +120,14 @@ buildCounterAccount--; } -buildUnnamed1039() { +buildUnnamed1065() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1039(core.List<api.Account> o) { +checkUnnamed1065(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -138,7 +138,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed1039(); + o.items = buildUnnamed1065(); o.kind = "foo"; } buildCounterAccountsList--; @@ -148,20 +148,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed1039(o.items); + checkUnnamed1065(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed1040() { +buildUnnamed1066() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1040(core.List<core.String> o) { +checkUnnamed1066(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -174,7 +174,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed1040(); + o.billingId = buildUnnamed1066(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -186,20 +186,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed1040(o.billingId); + checkUnnamed1066(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed1041() { +buildUnnamed1067() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed1041(core.List<api.BillingInfo> o) { +checkUnnamed1067(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -210,7 +210,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed1041(); + o.items = buildUnnamed1067(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -220,7 +220,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed1041(o.items); + checkUnnamed1067(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -255,53 +255,53 @@ buildCounterBudget--; } -buildUnnamed1042() { +buildUnnamed1068() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1042(core.List<core.String> o) { +checkUnnamed1068(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1043() { +buildUnnamed1069() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1043(core.List<core.int> o) { +checkUnnamed1069(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1044() { +buildUnnamed1070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1044(core.List<core.String> o) { +checkUnnamed1070(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1045() { +buildUnnamed1071() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1045(core.List<core.String> o) { +checkUnnamed1071(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -312,7 +312,7 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.details = buildUnnamed1045(); + o.details = buildUnnamed1071(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -322,33 +322,33 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed1045(o.details); + checkUnnamed1071(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed1046() { +buildUnnamed1072() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed1046(core.List<api.CreativeCorrections> o) { +checkUnnamed1072(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed1047() { +buildUnnamed1073() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1047(core.List<core.String> o) { +checkUnnamed1073(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -359,7 +359,7 @@ var o = new api.CreativeDisapprovalReasons(); buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - o.details = buildUnnamed1047(); + o.details = buildUnnamed1073(); o.reason = "foo"; } buildCounterCreativeDisapprovalReasons--; @@ -369,20 +369,20 @@ checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - checkUnnamed1047(o.details); + checkUnnamed1073(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeDisapprovalReasons--; } -buildUnnamed1048() { +buildUnnamed1074() { var o = new core.List<api.CreativeDisapprovalReasons>(); o.add(buildCreativeDisapprovalReasons()); o.add(buildCreativeDisapprovalReasons()); return o; } -checkUnnamed1048(core.List<api.CreativeDisapprovalReasons> o) { +checkUnnamed1074(core.List<api.CreativeDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDisapprovalReasons(o[0]); checkCreativeDisapprovalReasons(o[1]); @@ -409,14 +409,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed1049() { +buildUnnamed1075() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed1049(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed1075(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -428,7 +428,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed1049(); + o.reasons = buildUnnamed1075(); } buildCounterCreativeFilteringReasons--; return o; @@ -438,19 +438,19 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed1049(o.reasons); + checkUnnamed1075(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed1050() { +buildUnnamed1076() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1050(core.List<core.String> o) { +checkUnnamed1076(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -502,14 +502,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed1051() { +buildUnnamed1077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1051(core.List<core.String> o) { +checkUnnamed1077(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -550,7 +550,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed1051(); + o.impressionTrackingUrl = buildUnnamed1077(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; @@ -570,7 +570,7 @@ unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed1051(o.impressionTrackingUrl); + checkUnnamed1077(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); @@ -579,53 +579,53 @@ buildCounterCreativeNativeAd--; } -buildUnnamed1052() { +buildUnnamed1078() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1052(core.List<core.int> o) { +checkUnnamed1078(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1053() { +buildUnnamed1079() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1053(core.List<core.int> o) { +checkUnnamed1079(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1054() { +buildUnnamed1080() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1054(core.List<core.int> o) { +checkUnnamed1080(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1055() { +buildUnnamed1081() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1055(core.List<core.int> o) { +checkUnnamed1081(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -638,25 +638,25 @@ if (buildCounterCreative < 3) { o.HTMLSnippet = "foo"; o.accountId = 42; - o.advertiserId = buildUnnamed1042(); + o.advertiserId = buildUnnamed1068(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed1043(); + o.attribute = buildUnnamed1069(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed1044(); - o.corrections = buildUnnamed1046(); - o.disapprovalReasons = buildUnnamed1048(); + o.clickThroughUrl = buildUnnamed1070(); + o.corrections = buildUnnamed1072(); + o.disapprovalReasons = buildUnnamed1074(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed1050(); + o.impressionTrackingUrl = buildUnnamed1076(); o.kind = "foo"; o.nativeAd = buildCreativeNativeAd(); - o.productCategories = buildUnnamed1052(); - o.restrictedCategories = buildUnnamed1053(); - o.sensitiveCategories = buildUnnamed1054(); + o.productCategories = buildUnnamed1078(); + o.restrictedCategories = buildUnnamed1079(); + o.sensitiveCategories = buildUnnamed1080(); o.status = "foo"; - o.vendorType = buildUnnamed1055(); + o.vendorType = buildUnnamed1081(); o.version = 42; o.videoURL = "foo"; o.width = 42; @@ -670,25 +670,25 @@ if (buildCounterCreative < 3) { unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); - checkUnnamed1042(o.advertiserId); + checkUnnamed1068(o.advertiserId); unittest.expect(o.advertiserName, unittest.equals('foo')); unittest.expect(o.agencyId, unittest.equals('foo')); unittest.expect(o.apiUploadTimestamp, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1043(o.attribute); + checkUnnamed1069(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed1044(o.clickThroughUrl); - checkUnnamed1046(o.corrections); - checkUnnamed1048(o.disapprovalReasons); + checkUnnamed1070(o.clickThroughUrl); + checkUnnamed1072(o.corrections); + checkUnnamed1074(o.disapprovalReasons); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed1050(o.impressionTrackingUrl); + checkUnnamed1076(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); checkCreativeNativeAd(o.nativeAd); - checkUnnamed1052(o.productCategories); - checkUnnamed1053(o.restrictedCategories); - checkUnnamed1054(o.sensitiveCategories); + checkUnnamed1078(o.productCategories); + checkUnnamed1079(o.restrictedCategories); + checkUnnamed1080(o.sensitiveCategories); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed1055(o.vendorType); + checkUnnamed1081(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -696,14 +696,14 @@ buildCounterCreative--; } -buildUnnamed1056() { +buildUnnamed1082() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1056(core.List<api.Creative> o) { +checkUnnamed1082(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -714,7 +714,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed1056(); + o.items = buildUnnamed1082(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -725,7 +725,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed1056(o.items); + checkUnnamed1082(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -779,14 +779,14 @@ buildCounterDirectDeal--; } -buildUnnamed1057() { +buildUnnamed1083() { var o = new core.List<api.DirectDeal>(); o.add(buildDirectDeal()); o.add(buildDirectDeal()); return o; } -checkUnnamed1057(core.List<api.DirectDeal> o) { +checkUnnamed1083(core.List<api.DirectDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectDeal(o[0]); checkDirectDeal(o[1]); @@ -797,7 +797,7 @@ var o = new api.DirectDealsList(); buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - o.directDeals = buildUnnamed1057(); + o.directDeals = buildUnnamed1083(); o.kind = "foo"; } buildCounterDirectDealsList--; @@ -807,59 +807,59 @@ checkDirectDealsList(api.DirectDealsList o) { buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - checkUnnamed1057(o.directDeals); + checkUnnamed1083(o.directDeals); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectDealsList--; } -buildUnnamed1058() { +buildUnnamed1084() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1058(core.List<core.Object> o) { +checkUnnamed1084(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1059() { +buildUnnamed1085() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1059(core.List<core.Object> o) { +checkUnnamed1085(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1060() { +buildUnnamed1086() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1060(core.List<core.Object> o) { +checkUnnamed1086(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1061() { +buildUnnamed1087() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1061(core.List<core.Object> o) { +checkUnnamed1087(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -872,11 +872,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed1058(); - o.cookieMatcherStatusRate = buildUnnamed1059(); - o.creativeStatusRate = buildUnnamed1060(); + o.calloutStatusRate = buildUnnamed1084(); + o.cookieMatcherStatusRate = buildUnnamed1085(); + o.creativeStatusRate = buildUnnamed1086(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed1061(); + o.hostedMatchStatusRate = buildUnnamed1087(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -902,11 +902,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed1058(o.calloutStatusRate); - checkUnnamed1059(o.cookieMatcherStatusRate); - checkUnnamed1060(o.creativeStatusRate); + checkUnnamed1084(o.calloutStatusRate); + checkUnnamed1085(o.cookieMatcherStatusRate); + checkUnnamed1086(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed1061(o.hostedMatchStatusRate); + checkUnnamed1087(o.hostedMatchStatusRate); unittest.expect(o.inventoryMatchRate, unittest.equals(42.0)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); @@ -926,14 +926,14 @@ buildCounterPerformanceReport--; } -buildUnnamed1062() { +buildUnnamed1088() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed1062(core.List<api.PerformanceReport> o) { +checkUnnamed1088(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -945,7 +945,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed1062(); + o.performanceReport = buildUnnamed1088(); } buildCounterPerformanceReportList--; return o; @@ -955,19 +955,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1062(o.performanceReport); + checkUnnamed1088(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed1063() { +buildUnnamed1089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1063(core.List<core.String> o) { +checkUnnamed1089(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -994,40 +994,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed1064() { +buildUnnamed1090() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed1064(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed1090(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed1065() { +buildUnnamed1091() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1065(core.List<core.String> o) { +checkUnnamed1091(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1066() { +buildUnnamed1092() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1066(core.List<core.String> o) { +checkUnnamed1092(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1054,105 +1054,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed1067() { +buildUnnamed1093() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed1067(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed1093(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed1068() { +buildUnnamed1094() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1068(core.List<core.String> o) { +checkUnnamed1094(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1069() { +buildUnnamed1095() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1069(core.List<core.String> o) { +checkUnnamed1095(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1070() { +buildUnnamed1096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1070(core.List<core.String> o) { +checkUnnamed1096(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1071() { +buildUnnamed1097() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1071(core.List<core.String> o) { +checkUnnamed1097(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1072() { +buildUnnamed1098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1072(core.List<core.String> o) { +checkUnnamed1098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1073() { +buildUnnamed1099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1073(core.List<core.String> o) { +checkUnnamed1099(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1074() { +buildUnnamed1100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1074(core.List<core.String> o) { +checkUnnamed1100(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1179,79 +1179,79 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed1075() { +buildUnnamed1101() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed1075(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed1101(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed1076() { +buildUnnamed1102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1076(core.List<core.String> o) { +checkUnnamed1102(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1077() { +buildUnnamed1103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1077(core.List<core.String> o) { +checkUnnamed1103(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1078() { +buildUnnamed1104() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1078(core.List<core.String> o) { +checkUnnamed1104(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1079() { +buildUnnamed1105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1079(core.List<core.String> o) { +checkUnnamed1105(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1080() { +buildUnnamed1106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1080(core.List<core.String> o) { +checkUnnamed1106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1265,26 +1265,26 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed1063(); - o.dimensions = buildUnnamed1064(); - o.excludedContentLabels = buildUnnamed1065(); - o.excludedGeoCriteriaIds = buildUnnamed1066(); - o.excludedPlacements = buildUnnamed1067(); - o.excludedUserLists = buildUnnamed1068(); - o.excludedVerticals = buildUnnamed1069(); - o.geoCriteriaIds = buildUnnamed1070(); + o.creativeType = buildUnnamed1089(); + o.dimensions = buildUnnamed1090(); + o.excludedContentLabels = buildUnnamed1091(); + o.excludedGeoCriteriaIds = buildUnnamed1092(); + o.excludedPlacements = buildUnnamed1093(); + o.excludedUserLists = buildUnnamed1094(); + o.excludedVerticals = buildUnnamed1095(); + o.geoCriteriaIds = buildUnnamed1096(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed1071(); - o.mobileCarriers = buildUnnamed1072(); - o.mobileDevices = buildUnnamed1073(); - o.mobileOperatingSystemVersions = buildUnnamed1074(); - o.placements = buildUnnamed1075(); - o.platforms = buildUnnamed1076(); - o.supportedCreativeAttributes = buildUnnamed1077(); - o.userLists = buildUnnamed1078(); - o.vendorTypes = buildUnnamed1079(); - o.verticals = buildUnnamed1080(); + o.languages = buildUnnamed1097(); + o.mobileCarriers = buildUnnamed1098(); + o.mobileDevices = buildUnnamed1099(); + o.mobileOperatingSystemVersions = buildUnnamed1100(); + o.placements = buildUnnamed1101(); + o.platforms = buildUnnamed1102(); + o.supportedCreativeAttributes = buildUnnamed1103(); + o.userLists = buildUnnamed1104(); + o.vendorTypes = buildUnnamed1105(); + o.verticals = buildUnnamed1106(); } buildCounterPretargetingConfig--; return o; @@ -1296,38 +1296,38 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed1063(o.creativeType); - checkUnnamed1064(o.dimensions); - checkUnnamed1065(o.excludedContentLabels); - checkUnnamed1066(o.excludedGeoCriteriaIds); - checkUnnamed1067(o.excludedPlacements); - checkUnnamed1068(o.excludedUserLists); - checkUnnamed1069(o.excludedVerticals); - checkUnnamed1070(o.geoCriteriaIds); + checkUnnamed1089(o.creativeType); + checkUnnamed1090(o.dimensions); + checkUnnamed1091(o.excludedContentLabels); + checkUnnamed1092(o.excludedGeoCriteriaIds); + checkUnnamed1093(o.excludedPlacements); + checkUnnamed1094(o.excludedUserLists); + checkUnnamed1095(o.excludedVerticals); + checkUnnamed1096(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1071(o.languages); - checkUnnamed1072(o.mobileCarriers); - checkUnnamed1073(o.mobileDevices); - checkUnnamed1074(o.mobileOperatingSystemVersions); - checkUnnamed1075(o.placements); - checkUnnamed1076(o.platforms); - checkUnnamed1077(o.supportedCreativeAttributes); - checkUnnamed1078(o.userLists); - checkUnnamed1079(o.vendorTypes); - checkUnnamed1080(o.verticals); + checkUnnamed1097(o.languages); + checkUnnamed1098(o.mobileCarriers); + checkUnnamed1099(o.mobileDevices); + checkUnnamed1100(o.mobileOperatingSystemVersions); + checkUnnamed1101(o.placements); + checkUnnamed1102(o.platforms); + checkUnnamed1103(o.supportedCreativeAttributes); + checkUnnamed1104(o.userLists); + checkUnnamed1105(o.vendorTypes); + checkUnnamed1106(o.verticals); } buildCounterPretargetingConfig--; } -buildUnnamed1081() { +buildUnnamed1107() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed1081(core.List<api.PretargetingConfig> o) { +checkUnnamed1107(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -1338,7 +1338,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed1081(); + o.items = buildUnnamed1107(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -1348,33 +1348,33 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed1081(o.items); + checkUnnamed1107(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; } -buildUnnamed1082() { +buildUnnamed1108() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1082(core.List<core.int> o) { +checkUnnamed1108(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1083() { +buildUnnamed1109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1083(core.List<core.String> o) { +checkUnnamed1109(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2203,8 +2203,8 @@ var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed1082(); - var arg_buyerCreativeId = buildUnnamed1083(); + var arg_accountId = buildUnnamed1108(); + var arg_buyerCreativeId = buildUnnamed1109(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_statusFilter = "foo";
diff --git a/generated/googleapis/test/adexchangebuyer/v1_4_test.dart b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart index 84e07e5..9a11b01 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_4_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart
@@ -76,14 +76,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed2279() { +buildUnnamed2038() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed2279(core.List<api.AccountBidderLocation> o) { +checkUnnamed2038(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -94,7 +94,7 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.bidderLocation = buildUnnamed2279(); + o.bidderLocation = buildUnnamed2038(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -110,7 +110,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2279(o.bidderLocation); + checkUnnamed2038(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -122,14 +122,14 @@ buildCounterAccount--; } -buildUnnamed2280() { +buildUnnamed2039() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2280(core.List<api.Account> o) { +checkUnnamed2039(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -140,7 +140,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed2280(); + o.items = buildUnnamed2039(); o.kind = "foo"; } buildCounterAccountsList--; @@ -150,20 +150,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed2280(o.items); + checkUnnamed2039(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed2281() { +buildUnnamed2040() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2281(core.List<api.MarketplaceDeal> o) { +checkUnnamed2040(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -174,7 +174,7 @@ var o = new api.AddOrderDealsRequest(); buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - o.deals = buildUnnamed2281(); + o.deals = buildUnnamed2040(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -185,21 +185,21 @@ checkAddOrderDealsRequest(api.AddOrderDealsRequest o) { buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - checkUnnamed2281(o.deals); + checkUnnamed2040(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterAddOrderDealsRequest--; } -buildUnnamed2282() { +buildUnnamed2041() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2282(core.List<api.MarketplaceDeal> o) { +checkUnnamed2041(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -210,7 +210,7 @@ var o = new api.AddOrderDealsResponse(); buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - o.deals = buildUnnamed2282(); + o.deals = buildUnnamed2041(); o.proposalRevisionNumber = "foo"; } buildCounterAddOrderDealsResponse--; @@ -220,20 +220,20 @@ checkAddOrderDealsResponse(api.AddOrderDealsResponse o) { buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - checkUnnamed2282(o.deals); + checkUnnamed2041(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterAddOrderDealsResponse--; } -buildUnnamed2283() { +buildUnnamed2042() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2283(core.List<api.MarketplaceNote> o) { +checkUnnamed2042(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -244,7 +244,7 @@ var o = new api.AddOrderNotesRequest(); buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - o.notes = buildUnnamed2283(); + o.notes = buildUnnamed2042(); } buildCounterAddOrderNotesRequest--; return o; @@ -253,19 +253,19 @@ checkAddOrderNotesRequest(api.AddOrderNotesRequest o) { buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - checkUnnamed2283(o.notes); + checkUnnamed2042(o.notes); } buildCounterAddOrderNotesRequest--; } -buildUnnamed2284() { +buildUnnamed2043() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2284(core.List<api.MarketplaceNote> o) { +checkUnnamed2043(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -276,7 +276,7 @@ var o = new api.AddOrderNotesResponse(); buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - o.notes = buildUnnamed2284(); + o.notes = buildUnnamed2043(); } buildCounterAddOrderNotesResponse--; return o; @@ -285,19 +285,19 @@ checkAddOrderNotesResponse(api.AddOrderNotesResponse o) { buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - checkUnnamed2284(o.notes); + checkUnnamed2043(o.notes); } buildCounterAddOrderNotesResponse--; } -buildUnnamed2285() { +buildUnnamed2044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2285(core.List<core.String> o) { +checkUnnamed2044(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -310,7 +310,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed2285(); + o.billingId = buildUnnamed2044(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -322,20 +322,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed2285(o.billingId); + checkUnnamed2044(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed2286() { +buildUnnamed2045() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed2286(core.List<api.BillingInfo> o) { +checkUnnamed2045(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -346,7 +346,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed2286(); + o.items = buildUnnamed2045(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -356,7 +356,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed2286(o.items); + checkUnnamed2045(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -431,14 +431,14 @@ buildCounterContactInformation--; } -buildUnnamed2287() { +buildUnnamed2046() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2287(core.List<api.Proposal> o) { +checkUnnamed2046(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -449,7 +449,7 @@ var o = new api.CreateOrdersRequest(); buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - o.proposals = buildUnnamed2287(); + o.proposals = buildUnnamed2046(); o.webPropertyCode = "foo"; } buildCounterCreateOrdersRequest--; @@ -459,20 +459,20 @@ checkCreateOrdersRequest(api.CreateOrdersRequest o) { buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - checkUnnamed2287(o.proposals); + checkUnnamed2046(o.proposals); unittest.expect(o.webPropertyCode, unittest.equals('foo')); } buildCounterCreateOrdersRequest--; } -buildUnnamed2288() { +buildUnnamed2047() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2288(core.List<api.Proposal> o) { +checkUnnamed2047(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -483,7 +483,7 @@ var o = new api.CreateOrdersResponse(); buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - o.proposals = buildUnnamed2288(); + o.proposals = buildUnnamed2047(); } buildCounterCreateOrdersResponse--; return o; @@ -492,84 +492,84 @@ checkCreateOrdersResponse(api.CreateOrdersResponse o) { buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - checkUnnamed2288(o.proposals); + checkUnnamed2047(o.proposals); } buildCounterCreateOrdersResponse--; } -buildUnnamed2289() { +buildUnnamed2048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2289(core.List<core.String> o) { +checkUnnamed2048(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2290() { +buildUnnamed2049() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2290(core.List<core.int> o) { +checkUnnamed2049(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2291() { +buildUnnamed2050() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2291(core.List<core.String> o) { +checkUnnamed2050(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2292() { +buildUnnamed2051() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2292(core.List<core.String> o) { +checkUnnamed2051(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2293() { +buildUnnamed2052() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2293(core.List<core.int> o) { +checkUnnamed2052(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2294() { +buildUnnamed2053() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2294(core.List<core.String> o) { +checkUnnamed2053(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -580,10 +580,10 @@ var o = new api.CreativeCorrectionsContexts(); buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - o.auctionType = buildUnnamed2292(); + o.auctionType = buildUnnamed2051(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed2293(); - o.platform = buildUnnamed2294(); + o.geoCriteriaId = buildUnnamed2052(); + o.platform = buildUnnamed2053(); } buildCounterCreativeCorrectionsContexts--; return o; @@ -592,35 +592,35 @@ checkCreativeCorrectionsContexts(api.CreativeCorrectionsContexts o) { buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - checkUnnamed2292(o.auctionType); + checkUnnamed2051(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed2293(o.geoCriteriaId); - checkUnnamed2294(o.platform); + checkUnnamed2052(o.geoCriteriaId); + checkUnnamed2053(o.platform); } buildCounterCreativeCorrectionsContexts--; } -buildUnnamed2295() { +buildUnnamed2054() { var o = new core.List<api.CreativeCorrectionsContexts>(); o.add(buildCreativeCorrectionsContexts()); o.add(buildCreativeCorrectionsContexts()); return o; } -checkUnnamed2295(core.List<api.CreativeCorrectionsContexts> o) { +checkUnnamed2054(core.List<api.CreativeCorrectionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrectionsContexts(o[0]); checkCreativeCorrectionsContexts(o[1]); } -buildUnnamed2296() { +buildUnnamed2055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2296(core.List<core.String> o) { +checkUnnamed2055(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -631,8 +631,8 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.contexts = buildUnnamed2295(); - o.details = buildUnnamed2296(); + o.contexts = buildUnnamed2054(); + o.details = buildUnnamed2055(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -642,34 +642,34 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed2295(o.contexts); - checkUnnamed2296(o.details); + checkUnnamed2054(o.contexts); + checkUnnamed2055(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed2297() { +buildUnnamed2056() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed2297(core.List<api.CreativeCorrections> o) { +checkUnnamed2056(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed2298() { +buildUnnamed2057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2298(core.List<core.String> o) { +checkUnnamed2057(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -696,14 +696,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed2299() { +buildUnnamed2058() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed2299(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed2058(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -715,7 +715,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed2299(); + o.reasons = buildUnnamed2058(); } buildCounterCreativeFilteringReasons--; return o; @@ -725,32 +725,32 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed2299(o.reasons); + checkUnnamed2058(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed2300() { +buildUnnamed2059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2300(core.List<core.String> o) { +checkUnnamed2059(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2301() { +buildUnnamed2060() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2301(core.List<core.String> o) { +checkUnnamed2060(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -802,14 +802,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed2302() { +buildUnnamed2061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2302(core.List<core.String> o) { +checkUnnamed2061(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -847,14 +847,16 @@ o.appIcon = buildCreativeNativeAdAppIcon(); o.body = "foo"; o.callToAction = "foo"; + o.clickLinkUrl = "foo"; o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed2302(); + o.impressionTrackingUrl = buildUnnamed2061(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; o.store = "foo"; + o.videoURL = "foo"; } buildCounterCreativeNativeAd--; return o; @@ -867,91 +869,93 @@ checkCreativeNativeAdAppIcon(o.appIcon); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.callToAction, unittest.equals('foo')); + unittest.expect(o.clickLinkUrl, unittest.equals('foo')); unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed2302(o.impressionTrackingUrl); + checkUnnamed2061(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); unittest.expect(o.store, unittest.equals('foo')); + unittest.expect(o.videoURL, unittest.equals('foo')); } buildCounterCreativeNativeAd--; } -buildUnnamed2303() { +buildUnnamed2062() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2303(core.List<core.int> o) { +checkUnnamed2062(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2304() { +buildUnnamed2063() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2304(core.List<core.int> o) { +checkUnnamed2063(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2305() { +buildUnnamed2064() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2305(core.List<core.int> o) { +checkUnnamed2064(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2306() { +buildUnnamed2065() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2306(core.List<core.String> o) { +checkUnnamed2065(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2307() { +buildUnnamed2066() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2307(core.List<core.int> o) { +checkUnnamed2066(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2308() { +buildUnnamed2067() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2308(core.List<core.String> o) { +checkUnnamed2067(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -962,10 +966,10 @@ var o = new api.CreativeServingRestrictionsContexts(); buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - o.auctionType = buildUnnamed2306(); + o.auctionType = buildUnnamed2065(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed2307(); - o.platform = buildUnnamed2308(); + o.geoCriteriaId = buildUnnamed2066(); + o.platform = buildUnnamed2067(); } buildCounterCreativeServingRestrictionsContexts--; return o; @@ -974,35 +978,35 @@ checkCreativeServingRestrictionsContexts(api.CreativeServingRestrictionsContexts o) { buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - checkUnnamed2306(o.auctionType); + checkUnnamed2065(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed2307(o.geoCriteriaId); - checkUnnamed2308(o.platform); + checkUnnamed2066(o.geoCriteriaId); + checkUnnamed2067(o.platform); } buildCounterCreativeServingRestrictionsContexts--; } -buildUnnamed2309() { +buildUnnamed2068() { var o = new core.List<api.CreativeServingRestrictionsContexts>(); o.add(buildCreativeServingRestrictionsContexts()); o.add(buildCreativeServingRestrictionsContexts()); return o; } -checkUnnamed2309(core.List<api.CreativeServingRestrictionsContexts> o) { +checkUnnamed2068(core.List<api.CreativeServingRestrictionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsContexts(o[0]); checkCreativeServingRestrictionsContexts(o[1]); } -buildUnnamed2310() { +buildUnnamed2069() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2310(core.List<core.String> o) { +checkUnnamed2069(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1013,7 +1017,7 @@ var o = new api.CreativeServingRestrictionsDisapprovalReasons(); buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - o.details = buildUnnamed2310(); + o.details = buildUnnamed2069(); o.reason = "foo"; } buildCounterCreativeServingRestrictionsDisapprovalReasons--; @@ -1023,20 +1027,20 @@ checkCreativeServingRestrictionsDisapprovalReasons(api.CreativeServingRestrictionsDisapprovalReasons o) { buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - checkUnnamed2310(o.details); + checkUnnamed2069(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictionsDisapprovalReasons--; } -buildUnnamed2311() { +buildUnnamed2070() { var o = new core.List<api.CreativeServingRestrictionsDisapprovalReasons>(); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); return o; } -checkUnnamed2311(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { +checkUnnamed2070(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsDisapprovalReasons(o[0]); checkCreativeServingRestrictionsDisapprovalReasons(o[1]); @@ -1047,8 +1051,8 @@ var o = new api.CreativeServingRestrictions(); buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - o.contexts = buildUnnamed2309(); - o.disapprovalReasons = buildUnnamed2311(); + o.contexts = buildUnnamed2068(); + o.disapprovalReasons = buildUnnamed2070(); o.reason = "foo"; } buildCounterCreativeServingRestrictions--; @@ -1058,34 +1062,34 @@ checkCreativeServingRestrictions(api.CreativeServingRestrictions o) { buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - checkUnnamed2309(o.contexts); - checkUnnamed2311(o.disapprovalReasons); + checkUnnamed2068(o.contexts); + checkUnnamed2070(o.disapprovalReasons); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictions--; } -buildUnnamed2312() { +buildUnnamed2071() { var o = new core.List<api.CreativeServingRestrictions>(); o.add(buildCreativeServingRestrictions()); o.add(buildCreativeServingRestrictions()); return o; } -checkUnnamed2312(core.List<api.CreativeServingRestrictions> o) { +checkUnnamed2071(core.List<api.CreativeServingRestrictions> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictions(o[0]); checkCreativeServingRestrictions(o[1]); } -buildUnnamed2313() { +buildUnnamed2072() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2313(core.List<core.int> o) { +checkUnnamed2072(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -1099,28 +1103,28 @@ o.HTMLSnippet = "foo"; o.accountId = 42; o.adChoicesDestinationUrl = "foo"; - o.advertiserId = buildUnnamed2289(); + o.advertiserId = buildUnnamed2048(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed2290(); + o.attribute = buildUnnamed2049(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed2291(); - o.corrections = buildUnnamed2297(); + o.clickThroughUrl = buildUnnamed2050(); + o.corrections = buildUnnamed2056(); o.dealsStatus = "foo"; - o.detectedDomains = buildUnnamed2298(); + o.detectedDomains = buildUnnamed2057(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed2300(); + o.impressionTrackingUrl = buildUnnamed2059(); o.kind = "foo"; - o.languages = buildUnnamed2301(); + o.languages = buildUnnamed2060(); o.nativeAd = buildCreativeNativeAd(); o.openAuctionStatus = "foo"; - o.productCategories = buildUnnamed2303(); - o.restrictedCategories = buildUnnamed2304(); - o.sensitiveCategories = buildUnnamed2305(); - o.servingRestrictions = buildUnnamed2312(); - o.vendorType = buildUnnamed2313(); + o.productCategories = buildUnnamed2062(); + o.restrictedCategories = buildUnnamed2063(); + o.sensitiveCategories = buildUnnamed2064(); + o.servingRestrictions = buildUnnamed2071(); + o.vendorType = buildUnnamed2072(); o.version = 42; o.videoURL = "foo"; o.width = 42; @@ -1135,28 +1139,28 @@ unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); - checkUnnamed2289(o.advertiserId); + checkUnnamed2048(o.advertiserId); unittest.expect(o.advertiserName, unittest.equals('foo')); unittest.expect(o.agencyId, unittest.equals('foo')); unittest.expect(o.apiUploadTimestamp, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2290(o.attribute); + checkUnnamed2049(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed2291(o.clickThroughUrl); - checkUnnamed2297(o.corrections); + checkUnnamed2050(o.clickThroughUrl); + checkUnnamed2056(o.corrections); unittest.expect(o.dealsStatus, unittest.equals('foo')); - checkUnnamed2298(o.detectedDomains); + checkUnnamed2057(o.detectedDomains); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed2300(o.impressionTrackingUrl); + checkUnnamed2059(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2301(o.languages); + checkUnnamed2060(o.languages); checkCreativeNativeAd(o.nativeAd); unittest.expect(o.openAuctionStatus, unittest.equals('foo')); - checkUnnamed2303(o.productCategories); - checkUnnamed2304(o.restrictedCategories); - checkUnnamed2305(o.sensitiveCategories); - checkUnnamed2312(o.servingRestrictions); - checkUnnamed2313(o.vendorType); + checkUnnamed2062(o.productCategories); + checkUnnamed2063(o.restrictedCategories); + checkUnnamed2064(o.sensitiveCategories); + checkUnnamed2071(o.servingRestrictions); + checkUnnamed2072(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -1164,14 +1168,71 @@ buildCounterCreative--; } -buildUnnamed2314() { +core.int buildCounterCreativeDealIdsDealStatuses = 0; +buildCreativeDealIdsDealStatuses() { + var o = new api.CreativeDealIdsDealStatuses(); + buildCounterCreativeDealIdsDealStatuses++; + if (buildCounterCreativeDealIdsDealStatuses < 3) { + o.arcStatus = "foo"; + o.dealId = "foo"; + o.webPropertyId = 42; + } + buildCounterCreativeDealIdsDealStatuses--; + return o; +} + +checkCreativeDealIdsDealStatuses(api.CreativeDealIdsDealStatuses o) { + buildCounterCreativeDealIdsDealStatuses++; + if (buildCounterCreativeDealIdsDealStatuses < 3) { + unittest.expect(o.arcStatus, unittest.equals('foo')); + unittest.expect(o.dealId, unittest.equals('foo')); + unittest.expect(o.webPropertyId, unittest.equals(42)); + } + buildCounterCreativeDealIdsDealStatuses--; +} + +buildUnnamed2073() { + var o = new core.List<api.CreativeDealIdsDealStatuses>(); + o.add(buildCreativeDealIdsDealStatuses()); + o.add(buildCreativeDealIdsDealStatuses()); + return o; +} + +checkUnnamed2073(core.List<api.CreativeDealIdsDealStatuses> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCreativeDealIdsDealStatuses(o[0]); + checkCreativeDealIdsDealStatuses(o[1]); +} + +core.int buildCounterCreativeDealIds = 0; +buildCreativeDealIds() { + var o = new api.CreativeDealIds(); + buildCounterCreativeDealIds++; + if (buildCounterCreativeDealIds < 3) { + o.dealStatuses = buildUnnamed2073(); + o.kind = "foo"; + } + buildCounterCreativeDealIds--; + return o; +} + +checkCreativeDealIds(api.CreativeDealIds o) { + buildCounterCreativeDealIds++; + if (buildCounterCreativeDealIds < 3) { + checkUnnamed2073(o.dealStatuses); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterCreativeDealIds--; +} + +buildUnnamed2074() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2314(core.List<api.Creative> o) { +checkUnnamed2074(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -1182,7 +1243,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed2314(); + o.items = buildUnnamed2074(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1193,7 +1254,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed2314(o.items); + checkUnnamed2074(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1252,6 +1313,7 @@ buildCounterDealTerms++; if (buildCounterDealTerms < 3) { o.brandingType = "foo"; + o.crossListedExternalDealIdType = "foo"; o.description = "foo"; o.estimatedGrossSpend = buildPrice(); o.estimatedImpressionsPerDay = "foo"; @@ -1269,6 +1331,7 @@ buildCounterDealTerms++; if (buildCounterDealTerms < 3) { unittest.expect(o.brandingType, unittest.equals('foo')); + unittest.expect(o.crossListedExternalDealIdType, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkPrice(o.estimatedGrossSpend); unittest.expect(o.estimatedImpressionsPerDay, unittest.equals('foo')); @@ -1281,14 +1344,14 @@ buildCounterDealTerms--; } -buildUnnamed2315() { +buildUnnamed2075() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2315(core.List<api.PricePerBuyer> o) { +checkUnnamed2075(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1300,7 +1363,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { o.billingInfo = buildDealTermsGuaranteedFixedPriceTermsBillingInfo(); - o.fixedPrices = buildUnnamed2315(); + o.fixedPrices = buildUnnamed2075(); o.guaranteedImpressions = "foo"; o.guaranteedLooks = "foo"; o.minimumDailyLooks = "foo"; @@ -1313,7 +1376,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { checkDealTermsGuaranteedFixedPriceTermsBillingInfo(o.billingInfo); - checkUnnamed2315(o.fixedPrices); + checkUnnamed2075(o.fixedPrices); unittest.expect(o.guaranteedImpressions, unittest.equals('foo')); unittest.expect(o.guaranteedLooks, unittest.equals('foo')); unittest.expect(o.minimumDailyLooks, unittest.equals('foo')); @@ -1346,14 +1409,14 @@ buildCounterDealTermsGuaranteedFixedPriceTermsBillingInfo--; } -buildUnnamed2316() { +buildUnnamed2076() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2316(core.List<api.PricePerBuyer> o) { +checkUnnamed2076(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1365,7 +1428,7 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { o.autoOptimizePrivateAuction = true; - o.reservePricePerBuyers = buildUnnamed2316(); + o.reservePricePerBuyers = buildUnnamed2076(); } buildCounterDealTermsNonGuaranteedAuctionTerms--; return o; @@ -1375,19 +1438,19 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { unittest.expect(o.autoOptimizePrivateAuction, unittest.isTrue); - checkUnnamed2316(o.reservePricePerBuyers); + checkUnnamed2076(o.reservePricePerBuyers); } buildCounterDealTermsNonGuaranteedAuctionTerms--; } -buildUnnamed2317() { +buildUnnamed2077() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2317(core.List<api.PricePerBuyer> o) { +checkUnnamed2077(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1398,7 +1461,7 @@ var o = new api.DealTermsNonGuaranteedFixedPriceTerms(); buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - o.fixedPrices = buildUnnamed2317(); + o.fixedPrices = buildUnnamed2077(); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; return o; @@ -1407,7 +1470,7 @@ checkDealTermsNonGuaranteedFixedPriceTerms(api.DealTermsNonGuaranteedFixedPriceTerms o) { buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - checkUnnamed2317(o.fixedPrices); + checkUnnamed2077(o.fixedPrices); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; } @@ -1433,14 +1496,14 @@ buildCounterDealTermsRubiconNonGuaranteedTerms--; } -buildUnnamed2318() { +buildUnnamed2078() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2318(core.List<core.String> o) { +checkUnnamed2078(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1451,7 +1514,7 @@ var o = new api.DeleteOrderDealsRequest(); buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - o.dealIds = buildUnnamed2318(); + o.dealIds = buildUnnamed2078(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -1462,21 +1525,21 @@ checkDeleteOrderDealsRequest(api.DeleteOrderDealsRequest o) { buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - checkUnnamed2318(o.dealIds); + checkUnnamed2078(o.dealIds); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterDeleteOrderDealsRequest--; } -buildUnnamed2319() { +buildUnnamed2079() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2319(core.List<api.MarketplaceDeal> o) { +checkUnnamed2079(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1487,7 +1550,7 @@ var o = new api.DeleteOrderDealsResponse(); buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - o.deals = buildUnnamed2319(); + o.deals = buildUnnamed2079(); o.proposalRevisionNumber = "foo"; } buildCounterDeleteOrderDealsResponse--; @@ -1497,20 +1560,20 @@ checkDeleteOrderDealsResponse(api.DeleteOrderDealsResponse o) { buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - checkUnnamed2319(o.deals); + checkUnnamed2079(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterDeleteOrderDealsResponse--; } -buildUnnamed2320() { +buildUnnamed2080() { var o = new core.List<api.DeliveryControlFrequencyCap>(); o.add(buildDeliveryControlFrequencyCap()); o.add(buildDeliveryControlFrequencyCap()); return o; } -checkUnnamed2320(core.List<api.DeliveryControlFrequencyCap> o) { +checkUnnamed2080(core.List<api.DeliveryControlFrequencyCap> o) { unittest.expect(o, unittest.hasLength(2)); checkDeliveryControlFrequencyCap(o[0]); checkDeliveryControlFrequencyCap(o[1]); @@ -1523,7 +1586,7 @@ if (buildCounterDeliveryControl < 3) { o.creativeBlockingLevel = "foo"; o.deliveryRateType = "foo"; - o.frequencyCaps = buildUnnamed2320(); + o.frequencyCaps = buildUnnamed2080(); } buildCounterDeliveryControl--; return o; @@ -1534,7 +1597,7 @@ if (buildCounterDeliveryControl < 3) { unittest.expect(o.creativeBlockingLevel, unittest.equals('foo')); unittest.expect(o.deliveryRateType, unittest.equals('foo')); - checkUnnamed2320(o.frequencyCaps); + checkUnnamed2080(o.frequencyCaps); } buildCounterDeliveryControl--; } @@ -1562,14 +1625,14 @@ buildCounterDeliveryControlFrequencyCap--; } -buildUnnamed2321() { +buildUnnamed2081() { var o = new core.List<api.DimensionDimensionValue>(); o.add(buildDimensionDimensionValue()); o.add(buildDimensionDimensionValue()); return o; } -checkUnnamed2321(core.List<api.DimensionDimensionValue> o) { +checkUnnamed2081(core.List<api.DimensionDimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionDimensionValue(o[0]); checkDimensionDimensionValue(o[1]); @@ -1581,7 +1644,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { o.dimensionType = "foo"; - o.dimensionValues = buildUnnamed2321(); + o.dimensionValues = buildUnnamed2081(); } buildCounterDimension--; return o; @@ -1591,7 +1654,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { unittest.expect(o.dimensionType, unittest.equals('foo')); - checkUnnamed2321(o.dimensionValues); + checkUnnamed2081(o.dimensionValues); } buildCounterDimension--; } @@ -1619,14 +1682,14 @@ buildCounterDimensionDimensionValue--; } -buildUnnamed2322() { +buildUnnamed2082() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2322(core.List<api.MarketplaceDeal> o) { +checkUnnamed2082(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1637,7 +1700,7 @@ var o = new api.EditAllOrderDealsRequest(); buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - o.deals = buildUnnamed2322(); + o.deals = buildUnnamed2082(); o.proposal = buildProposal(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; @@ -1649,7 +1712,7 @@ checkEditAllOrderDealsRequest(api.EditAllOrderDealsRequest o) { buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - checkUnnamed2322(o.deals); + checkUnnamed2082(o.deals); checkProposal(o.proposal); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); @@ -1657,14 +1720,14 @@ buildCounterEditAllOrderDealsRequest--; } -buildUnnamed2323() { +buildUnnamed2083() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2323(core.List<api.MarketplaceDeal> o) { +checkUnnamed2083(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1675,7 +1738,7 @@ var o = new api.EditAllOrderDealsResponse(); buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - o.deals = buildUnnamed2323(); + o.deals = buildUnnamed2083(); o.orderRevisionNumber = "foo"; } buildCounterEditAllOrderDealsResponse--; @@ -1685,20 +1748,20 @@ checkEditAllOrderDealsResponse(api.EditAllOrderDealsResponse o) { buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - checkUnnamed2323(o.deals); + checkUnnamed2083(o.deals); unittest.expect(o.orderRevisionNumber, unittest.equals('foo')); } buildCounterEditAllOrderDealsResponse--; } -buildUnnamed2324() { +buildUnnamed2084() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2324(core.List<api.Product> o) { +checkUnnamed2084(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1709,7 +1772,7 @@ var o = new api.GetOffersResponse(); buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - o.products = buildUnnamed2324(); + o.products = buildUnnamed2084(); } buildCounterGetOffersResponse--; return o; @@ -1718,19 +1781,19 @@ checkGetOffersResponse(api.GetOffersResponse o) { buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - checkUnnamed2324(o.products); + checkUnnamed2084(o.products); } buildCounterGetOffersResponse--; } -buildUnnamed2325() { +buildUnnamed2085() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2325(core.List<api.MarketplaceDeal> o) { +checkUnnamed2085(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1741,7 +1804,7 @@ var o = new api.GetOrderDealsResponse(); buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - o.deals = buildUnnamed2325(); + o.deals = buildUnnamed2085(); } buildCounterGetOrderDealsResponse--; return o; @@ -1750,19 +1813,19 @@ checkGetOrderDealsResponse(api.GetOrderDealsResponse o) { buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - checkUnnamed2325(o.deals); + checkUnnamed2085(o.deals); } buildCounterGetOrderDealsResponse--; } -buildUnnamed2326() { +buildUnnamed2086() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2326(core.List<api.MarketplaceNote> o) { +checkUnnamed2086(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -1773,7 +1836,7 @@ var o = new api.GetOrderNotesResponse(); buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - o.notes = buildUnnamed2326(); + o.notes = buildUnnamed2086(); } buildCounterGetOrderNotesResponse--; return o; @@ -1782,19 +1845,19 @@ checkGetOrderNotesResponse(api.GetOrderNotesResponse o) { buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - checkUnnamed2326(o.notes); + checkUnnamed2086(o.notes); } buildCounterGetOrderNotesResponse--; } -buildUnnamed2327() { +buildUnnamed2087() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2327(core.List<api.Proposal> o) { +checkUnnamed2087(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -1805,7 +1868,7 @@ var o = new api.GetOrdersResponse(); buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - o.proposals = buildUnnamed2327(); + o.proposals = buildUnnamed2087(); } buildCounterGetOrdersResponse--; return o; @@ -1814,19 +1877,19 @@ checkGetOrdersResponse(api.GetOrdersResponse o) { buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - checkUnnamed2327(o.proposals); + checkUnnamed2087(o.proposals); } buildCounterGetOrdersResponse--; } -buildUnnamed2328() { +buildUnnamed2088() { var o = new core.List<api.PublisherProfileApiProto>(); o.add(buildPublisherProfileApiProto()); o.add(buildPublisherProfileApiProto()); return o; } -checkUnnamed2328(core.List<api.PublisherProfileApiProto> o) { +checkUnnamed2088(core.List<api.PublisherProfileApiProto> o) { unittest.expect(o, unittest.hasLength(2)); checkPublisherProfileApiProto(o[0]); checkPublisherProfileApiProto(o[1]); @@ -1837,7 +1900,7 @@ var o = new api.GetPublisherProfilesByAccountIdResponse(); buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - o.profiles = buildUnnamed2328(); + o.profiles = buildUnnamed2088(); } buildCounterGetPublisherProfilesByAccountIdResponse--; return o; @@ -1846,32 +1909,32 @@ checkGetPublisherProfilesByAccountIdResponse(api.GetPublisherProfilesByAccountIdResponse o) { buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - checkUnnamed2328(o.profiles); + checkUnnamed2088(o.profiles); } buildCounterGetPublisherProfilesByAccountIdResponse--; } -buildUnnamed2329() { +buildUnnamed2089() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2329(core.List<api.ContactInformation> o) { +checkUnnamed2089(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2330() { +buildUnnamed2090() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed2330(core.List<api.SharedTargeting> o) { +checkUnnamed2090(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -1893,6 +1956,7 @@ o.flightEndTimeMs = "foo"; o.flightStartTimeMs = "foo"; o.inventoryDescription = "foo"; + o.isRfpTemplate = true; o.kind = "foo"; o.lastUpdateTimeMs = "foo"; o.name = "foo"; @@ -1900,8 +1964,8 @@ o.productRevisionNumber = "foo"; o.programmaticCreativeSource = "foo"; o.proposalId = "foo"; - o.sellerContacts = buildUnnamed2329(); - o.sharedTargetings = buildUnnamed2330(); + o.sellerContacts = buildUnnamed2089(); + o.sharedTargetings = buildUnnamed2090(); o.syndicationProduct = "foo"; o.terms = buildDealTerms(); o.webPropertyCode = "foo"; @@ -1924,6 +1988,7 @@ unittest.expect(o.flightEndTimeMs, unittest.equals('foo')); unittest.expect(o.flightStartTimeMs, unittest.equals('foo')); unittest.expect(o.inventoryDescription, unittest.equals('foo')); + unittest.expect(o.isRfpTemplate, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -1931,8 +1996,8 @@ unittest.expect(o.productRevisionNumber, unittest.equals('foo')); unittest.expect(o.programmaticCreativeSource, unittest.equals('foo')); unittest.expect(o.proposalId, unittest.equals('foo')); - checkUnnamed2329(o.sellerContacts); - checkUnnamed2330(o.sharedTargetings); + checkUnnamed2089(o.sellerContacts); + checkUnnamed2090(o.sharedTargetings); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); unittest.expect(o.webPropertyCode, unittest.equals('foo')); @@ -2019,53 +2084,53 @@ buildCounterMarketplaceNote--; } -buildUnnamed2331() { +buildUnnamed2091() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2331(core.List<core.Object> o) { +checkUnnamed2091(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2332() { +buildUnnamed2092() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2332(core.List<core.Object> o) { +checkUnnamed2092(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2333() { +buildUnnamed2093() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2333(core.List<core.Object> o) { +checkUnnamed2093(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2334() { +buildUnnamed2094() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2334(core.List<core.Object> o) { +checkUnnamed2094(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -2078,11 +2143,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed2331(); - o.cookieMatcherStatusRate = buildUnnamed2332(); - o.creativeStatusRate = buildUnnamed2333(); + o.calloutStatusRate = buildUnnamed2091(); + o.cookieMatcherStatusRate = buildUnnamed2092(); + o.creativeStatusRate = buildUnnamed2093(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed2334(); + o.hostedMatchStatusRate = buildUnnamed2094(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -2108,11 +2173,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed2331(o.calloutStatusRate); - checkUnnamed2332(o.cookieMatcherStatusRate); - checkUnnamed2333(o.creativeStatusRate); + checkUnnamed2091(o.calloutStatusRate); + checkUnnamed2092(o.cookieMatcherStatusRate); + checkUnnamed2093(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed2334(o.hostedMatchStatusRate); + checkUnnamed2094(o.hostedMatchStatusRate); unittest.expect(o.inventoryMatchRate, unittest.equals(42.0)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); @@ -2132,14 +2197,14 @@ buildCounterPerformanceReport--; } -buildUnnamed2335() { +buildUnnamed2095() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed2335(core.List<api.PerformanceReport> o) { +checkUnnamed2095(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -2151,7 +2216,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed2335(); + o.performanceReport = buildUnnamed2095(); } buildCounterPerformanceReportList--; return o; @@ -2161,19 +2226,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2335(o.performanceReport); + checkUnnamed2095(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed2336() { +buildUnnamed2096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2336(core.List<core.String> o) { +checkUnnamed2096(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2200,40 +2265,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed2337() { +buildUnnamed2097() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed2337(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed2097(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed2338() { +buildUnnamed2098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2338(core.List<core.String> o) { +checkUnnamed2098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2339() { +buildUnnamed2099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2339(core.List<core.String> o) { +checkUnnamed2099(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2260,105 +2325,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed2340() { +buildUnnamed2100() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed2340(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed2100(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed2341() { +buildUnnamed2101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2341(core.List<core.String> o) { +checkUnnamed2101(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2342() { +buildUnnamed2102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2342(core.List<core.String> o) { +checkUnnamed2102(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2343() { +buildUnnamed2103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2343(core.List<core.String> o) { +checkUnnamed2103(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2344() { +buildUnnamed2104() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2344(core.List<core.String> o) { +checkUnnamed2104(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2345() { +buildUnnamed2105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2345(core.List<core.String> o) { +checkUnnamed2105(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2346() { +buildUnnamed2106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2346(core.List<core.String> o) { +checkUnnamed2106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2347() { +buildUnnamed2107() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2347(core.List<core.String> o) { +checkUnnamed2107(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2385,79 +2450,92 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed2348() { +buildUnnamed2108() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed2348(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed2108(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed2349() { +buildUnnamed2109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2349(core.List<core.String> o) { +checkUnnamed2109(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2350() { +buildUnnamed2110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2350(core.List<core.String> o) { +checkUnnamed2110(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2351() { +buildUnnamed2111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2351(core.List<core.String> o) { +checkUnnamed2111(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2352() { +buildUnnamed2112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2352(core.List<core.String> o) { +checkUnnamed2112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2353() { +buildUnnamed2113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2353(core.List<core.String> o) { +checkUnnamed2113(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2114() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2114(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2486,14 +2564,14 @@ buildCounterPretargetingConfigVideoPlayerSizes--; } -buildUnnamed2354() { +buildUnnamed2115() { var o = new core.List<api.PretargetingConfigVideoPlayerSizes>(); o.add(buildPretargetingConfigVideoPlayerSizes()); o.add(buildPretargetingConfigVideoPlayerSizes()); return o; } -checkUnnamed2354(core.List<api.PretargetingConfigVideoPlayerSizes> o) { +checkUnnamed2115(core.List<api.PretargetingConfigVideoPlayerSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigVideoPlayerSizes(o[0]); checkPretargetingConfigVideoPlayerSizes(o[1]); @@ -2507,27 +2585,28 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed2336(); - o.dimensions = buildUnnamed2337(); - o.excludedContentLabels = buildUnnamed2338(); - o.excludedGeoCriteriaIds = buildUnnamed2339(); - o.excludedPlacements = buildUnnamed2340(); - o.excludedUserLists = buildUnnamed2341(); - o.excludedVerticals = buildUnnamed2342(); - o.geoCriteriaIds = buildUnnamed2343(); + o.creativeType = buildUnnamed2096(); + o.dimensions = buildUnnamed2097(); + o.excludedContentLabels = buildUnnamed2098(); + o.excludedGeoCriteriaIds = buildUnnamed2099(); + o.excludedPlacements = buildUnnamed2100(); + o.excludedUserLists = buildUnnamed2101(); + o.excludedVerticals = buildUnnamed2102(); + o.geoCriteriaIds = buildUnnamed2103(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed2344(); - o.mobileCarriers = buildUnnamed2345(); - o.mobileDevices = buildUnnamed2346(); - o.mobileOperatingSystemVersions = buildUnnamed2347(); - o.placements = buildUnnamed2348(); - o.platforms = buildUnnamed2349(); - o.supportedCreativeAttributes = buildUnnamed2350(); - o.userLists = buildUnnamed2351(); - o.vendorTypes = buildUnnamed2352(); - o.verticals = buildUnnamed2353(); - o.videoPlayerSizes = buildUnnamed2354(); + o.languages = buildUnnamed2104(); + o.mobileCarriers = buildUnnamed2105(); + o.mobileDevices = buildUnnamed2106(); + o.mobileOperatingSystemVersions = buildUnnamed2107(); + o.placements = buildUnnamed2108(); + o.platforms = buildUnnamed2109(); + o.supportedCreativeAttributes = buildUnnamed2110(); + o.userIdentifierDataRequired = buildUnnamed2111(); + o.userLists = buildUnnamed2112(); + o.vendorTypes = buildUnnamed2113(); + o.verticals = buildUnnamed2114(); + o.videoPlayerSizes = buildUnnamed2115(); } buildCounterPretargetingConfig--; return o; @@ -2539,39 +2618,40 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed2336(o.creativeType); - checkUnnamed2337(o.dimensions); - checkUnnamed2338(o.excludedContentLabels); - checkUnnamed2339(o.excludedGeoCriteriaIds); - checkUnnamed2340(o.excludedPlacements); - checkUnnamed2341(o.excludedUserLists); - checkUnnamed2342(o.excludedVerticals); - checkUnnamed2343(o.geoCriteriaIds); + checkUnnamed2096(o.creativeType); + checkUnnamed2097(o.dimensions); + checkUnnamed2098(o.excludedContentLabels); + checkUnnamed2099(o.excludedGeoCriteriaIds); + checkUnnamed2100(o.excludedPlacements); + checkUnnamed2101(o.excludedUserLists); + checkUnnamed2102(o.excludedVerticals); + checkUnnamed2103(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2344(o.languages); - checkUnnamed2345(o.mobileCarriers); - checkUnnamed2346(o.mobileDevices); - checkUnnamed2347(o.mobileOperatingSystemVersions); - checkUnnamed2348(o.placements); - checkUnnamed2349(o.platforms); - checkUnnamed2350(o.supportedCreativeAttributes); - checkUnnamed2351(o.userLists); - checkUnnamed2352(o.vendorTypes); - checkUnnamed2353(o.verticals); - checkUnnamed2354(o.videoPlayerSizes); + checkUnnamed2104(o.languages); + checkUnnamed2105(o.mobileCarriers); + checkUnnamed2106(o.mobileDevices); + checkUnnamed2107(o.mobileOperatingSystemVersions); + checkUnnamed2108(o.placements); + checkUnnamed2109(o.platforms); + checkUnnamed2110(o.supportedCreativeAttributes); + checkUnnamed2111(o.userIdentifierDataRequired); + checkUnnamed2112(o.userLists); + checkUnnamed2113(o.vendorTypes); + checkUnnamed2114(o.verticals); + checkUnnamed2115(o.videoPlayerSizes); } buildCounterPretargetingConfig--; } -buildUnnamed2355() { +buildUnnamed2116() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed2355(core.List<api.PretargetingConfig> o) { +checkUnnamed2116(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -2582,7 +2662,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed2355(); + o.items = buildUnnamed2116(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -2592,7 +2672,7 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed2355(o.items); + checkUnnamed2116(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; @@ -2667,40 +2747,40 @@ buildCounterPrivateData--; } -buildUnnamed2356() { +buildUnnamed2117() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2356(core.List<api.ContactInformation> o) { +checkUnnamed2117(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2357() { +buildUnnamed2118() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed2357(core.List<api.MarketplaceLabel> o) { +checkUnnamed2118(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed2358() { +buildUnnamed2119() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed2358(core.List<api.SharedTargeting> o) { +checkUnnamed2119(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -2712,14 +2792,14 @@ buildCounterProduct++; if (buildCounterProduct < 3) { o.creationTimeMs = "foo"; - o.creatorContacts = buildUnnamed2356(); + o.creatorContacts = buildUnnamed2117(); o.deliveryControl = buildDeliveryControl(); o.flightEndTimeMs = "foo"; o.flightStartTimeMs = "foo"; o.hasCreatorSignedOff = true; o.inventorySource = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2357(); + o.labels = buildUnnamed2118(); o.lastUpdateTimeMs = "foo"; o.legacyOfferId = "foo"; o.name = "foo"; @@ -2729,7 +2809,7 @@ o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.revisionNumber = "foo"; o.seller = buildSeller(); - o.sharedTargetings = buildUnnamed2358(); + o.sharedTargetings = buildUnnamed2119(); o.state = "foo"; o.syndicationProduct = "foo"; o.terms = buildDealTerms(); @@ -2743,14 +2823,14 @@ buildCounterProduct++; if (buildCounterProduct < 3) { unittest.expect(o.creationTimeMs, unittest.equals('foo')); - checkUnnamed2356(o.creatorContacts); + checkUnnamed2117(o.creatorContacts); checkDeliveryControl(o.deliveryControl); unittest.expect(o.flightEndTimeMs, unittest.equals('foo')); unittest.expect(o.flightStartTimeMs, unittest.equals('foo')); unittest.expect(o.hasCreatorSignedOff, unittest.isTrue); unittest.expect(o.inventorySource, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2357(o.labels); + checkUnnamed2118(o.labels); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.legacyOfferId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -2760,7 +2840,7 @@ checkPublisherProvidedForecast(o.publisherProvidedForecast); unittest.expect(o.revisionNumber, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed2358(o.sharedTargetings); + checkUnnamed2119(o.sharedTargetings); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); @@ -2769,40 +2849,53 @@ buildCounterProduct--; } -buildUnnamed2359() { +buildUnnamed2120() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2359(core.List<api.ContactInformation> o) { +checkUnnamed2120(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2360() { +buildUnnamed2121() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2121(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2122() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed2360(core.List<api.MarketplaceLabel> o) { +checkUnnamed2122(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed2361() { +buildUnnamed2123() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2361(core.List<api.ContactInformation> o) { +checkUnnamed2123(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); @@ -2815,15 +2908,16 @@ if (buildCounterProposal < 3) { o.billedBuyer = buildBuyer(); o.buyer = buildBuyer(); - o.buyerContacts = buildUnnamed2359(); + o.buyerContacts = buildUnnamed2120(); o.buyerPrivateData = buildPrivateData(); + o.dbmAdvertiserIds = buildUnnamed2121(); o.hasBuyerSignedOff = true; o.hasSellerSignedOff = true; o.inventorySource = "foo"; o.isRenegotiating = true; o.isSetupComplete = true; o.kind = "foo"; - o.labels = buildUnnamed2360(); + o.labels = buildUnnamed2122(); o.lastUpdaterOrCommentorRole = "foo"; o.name = "foo"; o.negotiationId = "foo"; @@ -2834,7 +2928,7 @@ o.revisionNumber = "foo"; o.revisionTimeMs = "foo"; o.seller = buildSeller(); - o.sellerContacts = buildUnnamed2361(); + o.sellerContacts = buildUnnamed2123(); } buildCounterProposal--; return o; @@ -2845,15 +2939,16 @@ if (buildCounterProposal < 3) { checkBuyer(o.billedBuyer); checkBuyer(o.buyer); - checkUnnamed2359(o.buyerContacts); + checkUnnamed2120(o.buyerContacts); checkPrivateData(o.buyerPrivateData); + checkUnnamed2121(o.dbmAdvertiserIds); unittest.expect(o.hasBuyerSignedOff, unittest.isTrue); unittest.expect(o.hasSellerSignedOff, unittest.isTrue); unittest.expect(o.inventorySource, unittest.equals('foo')); unittest.expect(o.isRenegotiating, unittest.isTrue); unittest.expect(o.isSetupComplete, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2360(o.labels); + checkUnnamed2122(o.labels); unittest.expect(o.lastUpdaterOrCommentorRole, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.negotiationId, unittest.equals('foo')); @@ -2864,32 +2959,32 @@ unittest.expect(o.revisionNumber, unittest.equals('foo')); unittest.expect(o.revisionTimeMs, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed2361(o.sellerContacts); + checkUnnamed2123(o.sellerContacts); } buildCounterProposal--; } -buildUnnamed2362() { +buildUnnamed2124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2362(core.List<core.String> o) { +checkUnnamed2124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2363() { +buildUnnamed2125() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2363(core.List<core.String> o) { +checkUnnamed2125(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2915,14 +3010,14 @@ o.overview = "foo"; o.profileId = 42; o.programmaticContact = "foo"; - o.publisherDomains = buildUnnamed2362(); + o.publisherDomains = buildUnnamed2124(); o.publisherProfileId = "foo"; o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.rateCardInfoLink = "foo"; o.samplePageLink = "foo"; o.seller = buildSeller(); o.state = "foo"; - o.topHeadlines = buildUnnamed2363(); + o.topHeadlines = buildUnnamed2125(); } buildCounterPublisherProfileApiProto--; return o; @@ -2946,26 +3041,26 @@ unittest.expect(o.overview, unittest.equals('foo')); unittest.expect(o.profileId, unittest.equals(42)); unittest.expect(o.programmaticContact, unittest.equals('foo')); - checkUnnamed2362(o.publisherDomains); + checkUnnamed2124(o.publisherDomains); unittest.expect(o.publisherProfileId, unittest.equals('foo')); checkPublisherProvidedForecast(o.publisherProvidedForecast); unittest.expect(o.rateCardInfoLink, unittest.equals('foo')); unittest.expect(o.samplePageLink, unittest.equals('foo')); checkSeller(o.seller); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2363(o.topHeadlines); + checkUnnamed2125(o.topHeadlines); } buildCounterPublisherProfileApiProto--; } -buildUnnamed2364() { +buildUnnamed2126() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2364(core.List<api.Dimension> o) { +checkUnnamed2126(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -2976,7 +3071,7 @@ var o = new api.PublisherProvidedForecast(); buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - o.dimensions = buildUnnamed2364(); + o.dimensions = buildUnnamed2126(); o.weeklyImpressions = "foo"; o.weeklyUniques = "foo"; } @@ -2987,7 +3082,7 @@ checkPublisherProvidedForecast(api.PublisherProvidedForecast o) { buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - checkUnnamed2364(o.dimensions); + checkUnnamed2126(o.dimensions); unittest.expect(o.weeklyImpressions, unittest.equals('foo')); unittest.expect(o.weeklyUniques, unittest.equals('foo')); } @@ -3015,27 +3110,27 @@ buildCounterSeller--; } -buildUnnamed2365() { +buildUnnamed2127() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed2365(core.List<api.TargetingValue> o) { +checkUnnamed2127(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); } -buildUnnamed2366() { +buildUnnamed2128() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed2366(core.List<api.TargetingValue> o) { +checkUnnamed2128(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); @@ -3046,8 +3141,8 @@ var o = new api.SharedTargeting(); buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - o.exclusions = buildUnnamed2365(); - o.inclusions = buildUnnamed2366(); + o.exclusions = buildUnnamed2127(); + o.inclusions = buildUnnamed2128(); o.key = "foo"; } buildCounterSharedTargeting--; @@ -3057,8 +3152,8 @@ checkSharedTargeting(api.SharedTargeting o) { buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - checkUnnamed2365(o.exclusions); - checkUnnamed2366(o.inclusions); + checkUnnamed2127(o.exclusions); + checkUnnamed2128(o.inclusions); unittest.expect(o.key, unittest.equals('foo')); } buildCounterSharedTargeting--; @@ -3089,14 +3184,14 @@ buildCounterTargetingValue--; } -buildUnnamed2367() { +buildUnnamed2129() { var o = new core.List<api.TargetingValueSize>(); o.add(buildTargetingValueSize()); o.add(buildTargetingValueSize()); return o; } -checkUnnamed2367(core.List<api.TargetingValueSize> o) { +checkUnnamed2129(core.List<api.TargetingValueSize> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueSize(o[0]); checkTargetingValueSize(o[1]); @@ -3107,7 +3202,7 @@ var o = new api.TargetingValueCreativeSize(); buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - o.companionSizes = buildUnnamed2367(); + o.companionSizes = buildUnnamed2129(); o.creativeSizeType = "foo"; o.size = buildTargetingValueSize(); o.skippableAdType = "foo"; @@ -3119,7 +3214,7 @@ checkTargetingValueCreativeSize(api.TargetingValueCreativeSize o) { buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - checkUnnamed2367(o.companionSizes); + checkUnnamed2129(o.companionSizes); unittest.expect(o.creativeSizeType, unittest.equals('foo')); checkTargetingValueSize(o.size); unittest.expect(o.skippableAdType, unittest.equals('foo')); @@ -3127,14 +3222,14 @@ buildCounterTargetingValueCreativeSize--; } -buildUnnamed2368() { +buildUnnamed2130() { var o = new core.List<api.TargetingValueDayPartTargetingDayPart>(); o.add(buildTargetingValueDayPartTargetingDayPart()); o.add(buildTargetingValueDayPartTargetingDayPart()); return o; } -checkUnnamed2368(core.List<api.TargetingValueDayPartTargetingDayPart> o) { +checkUnnamed2130(core.List<api.TargetingValueDayPartTargetingDayPart> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueDayPartTargetingDayPart(o[0]); checkTargetingValueDayPartTargetingDayPart(o[1]); @@ -3145,7 +3240,7 @@ var o = new api.TargetingValueDayPartTargeting(); buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - o.dayParts = buildUnnamed2368(); + o.dayParts = buildUnnamed2130(); o.timeZoneType = "foo"; } buildCounterTargetingValueDayPartTargeting--; @@ -3155,7 +3250,7 @@ checkTargetingValueDayPartTargeting(api.TargetingValueDayPartTargeting o) { buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - checkUnnamed2368(o.dayParts); + checkUnnamed2130(o.dayParts); unittest.expect(o.timeZoneType, unittest.equals('foo')); } buildCounterTargetingValueDayPartTargeting--; @@ -3234,27 +3329,27 @@ buildCounterUpdatePrivateAuctionProposalRequest--; } -buildUnnamed2369() { +buildUnnamed2131() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2369(core.List<core.int> o) { +checkUnnamed2131(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2370() { +buildUnnamed2132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2370(core.List<core.String> o) { +checkUnnamed2132(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3496,6 +3591,24 @@ }); + unittest.group("obj-schema-CreativeDealIdsDealStatuses", () { + unittest.test("to-json--from-json", () { + var o = buildCreativeDealIdsDealStatuses(); + var od = new api.CreativeDealIdsDealStatuses.fromJson(o.toJson()); + checkCreativeDealIdsDealStatuses(od); + }); + }); + + + unittest.group("obj-schema-CreativeDealIds", () { + unittest.test("to-json--from-json", () { + var o = buildCreativeDealIds(); + var od = new api.CreativeDealIds.fromJson(o.toJson()); + checkCreativeDealIds(od); + }); + }); + + unittest.group("obj-schema-CreativesList", () { unittest.test("to-json--from-json", () { var o = buildCreativesList(); @@ -4038,6 +4151,7 @@ api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; var arg_request = buildAccount(); var arg_id = 42; + var arg_confirmUnsafeAccountChange = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Account.fromJson(json); checkAccount(obj); @@ -4072,6 +4186,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["confirmUnsafeAccountChange"].first, unittest.equals("$arg_confirmUnsafeAccountChange")); var h = { @@ -4080,7 +4195,7 @@ var resp = convert.JSON.encode(buildAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_id).then(unittest.expectAsync(((api.Account response) { + res.patch(arg_request, arg_id, confirmUnsafeAccountChange: arg_confirmUnsafeAccountChange).then(unittest.expectAsync(((api.Account response) { checkAccount(response); }))); }); @@ -4091,6 +4206,7 @@ api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; var arg_request = buildAccount(); var arg_id = 42; + var arg_confirmUnsafeAccountChange = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Account.fromJson(json); checkAccount(obj); @@ -4125,6 +4241,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["confirmUnsafeAccountChange"].first, unittest.equals("$arg_confirmUnsafeAccountChange")); var h = { @@ -4133,7 +4250,7 @@ var resp = convert.JSON.encode(buildAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_id).then(unittest.expectAsync(((api.Account response) { + res.update(arg_request, arg_id, confirmUnsafeAccountChange: arg_confirmUnsafeAccountChange).then(unittest.expectAsync(((api.Account response) { checkAccount(response); }))); }); @@ -4596,8 +4713,8 @@ var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed2369(); - var arg_buyerCreativeId = buildUnnamed2370(); + var arg_accountId = buildUnnamed2131(); + var arg_buyerCreativeId = buildUnnamed2132(); var arg_dealsStatusFilter = "foo"; var arg_maxResults = 42; var arg_openAuctionStatusFilter = "foo"; @@ -4649,6 +4766,67 @@ }))); }); + unittest.test("method--listDeals", () { + + var mock = new HttpServerMock(); + api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; + var arg_accountId = 42; + var arg_buyerCreativeId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("adexchangebuyer/v1.4/")); + pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("creatives/")); + pathOffset += 10; + index = path.indexOf("/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + index = path.indexOf("/listDeals", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_buyerCreativeId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/listDeals")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildCreativeDealIds()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.listDeals(arg_accountId, arg_buyerCreativeId).then(unittest.expectAsync(((api.CreativeDealIds response) { + checkCreativeDealIds(response); + }))); + }); + unittest.test("method--removeDeal", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/adexchangeseller/v1_1_test.dart b/generated/googleapis/test/adexchangeseller/v1_1_test.dart index ea20af8..df2631d 100644 --- a/generated/googleapis/test/adexchangeseller/v1_1_test.dart +++ b/generated/googleapis/test/adexchangeseller/v1_1_test.dart
@@ -101,14 +101,14 @@ buildCounterAdClient--; } -buildUnnamed444() { +buildUnnamed459() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed444(core.List<api.AdClient> o) { +checkUnnamed459(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -120,7 +120,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed444(); + o.items = buildUnnamed459(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -132,7 +132,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed444(o.items); + checkUnnamed459(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -166,14 +166,14 @@ buildCounterAdUnit--; } -buildUnnamed445() { +buildUnnamed460() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed445(core.List<api.AdUnit> o) { +checkUnnamed460(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -185,7 +185,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed445(); + o.items = buildUnnamed460(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -197,7 +197,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed445(o.items); + checkUnnamed460(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -231,14 +231,14 @@ buildCounterAlert--; } -buildUnnamed446() { +buildUnnamed461() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed446(core.List<api.Alert> o) { +checkUnnamed461(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -249,7 +249,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed446(); + o.items = buildUnnamed461(); o.kind = "foo"; } buildCounterAlerts--; @@ -259,7 +259,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed446(o.items); + checkUnnamed461(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -317,14 +317,14 @@ buildCounterCustomChannel--; } -buildUnnamed447() { +buildUnnamed462() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed447(core.List<api.CustomChannel> o) { +checkUnnamed462(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -336,7 +336,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed447(); + o.items = buildUnnamed462(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -348,21 +348,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed447(o.items); + checkUnnamed462(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed448() { +buildUnnamed463() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed448(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed463(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -373,7 +373,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed448(); + o.items = buildUnnamed463(); o.kind = "foo"; } buildCounterMetadata--; @@ -383,7 +383,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed448(o.items); + checkUnnamed463(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -422,14 +422,14 @@ buildCounterPreferredDeal--; } -buildUnnamed449() { +buildUnnamed464() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed449(core.List<api.PreferredDeal> o) { +checkUnnamed464(core.List<api.PreferredDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkPreferredDeal(o[0]); checkPreferredDeal(o[1]); @@ -440,7 +440,7 @@ var o = new api.PreferredDeals(); buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - o.items = buildUnnamed449(); + o.items = buildUnnamed464(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -450,20 +450,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed449(o.items); + checkUnnamed464(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed450() { +buildUnnamed465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed450(core.List<core.String> o) { +checkUnnamed465(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -492,66 +492,66 @@ buildCounterReportHeaders--; } -buildUnnamed451() { +buildUnnamed466() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed451(core.List<api.ReportHeaders> o) { +checkUnnamed466(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed452() { +buildUnnamed467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed452(core.List<core.String> o) { +checkUnnamed467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed453() { +buildUnnamed468() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed452()); - o.add(buildUnnamed452()); + o.add(buildUnnamed467()); + o.add(buildUnnamed467()); return o; } -checkUnnamed453(core.List<core.List<core.String>> o) { +checkUnnamed468(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed452(o[0]); - checkUnnamed452(o[1]); + checkUnnamed467(o[0]); + checkUnnamed467(o[1]); } -buildUnnamed454() { +buildUnnamed469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed454(core.List<core.String> o) { +checkUnnamed469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed455() { +buildUnnamed470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed455(core.List<core.String> o) { +checkUnnamed470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -562,13 +562,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed450(); - o.headers = buildUnnamed451(); + o.averages = buildUnnamed465(); + o.headers = buildUnnamed466(); o.kind = "foo"; - o.rows = buildUnnamed453(); + o.rows = buildUnnamed468(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed454(); - o.warnings = buildUnnamed455(); + o.totals = buildUnnamed469(); + o.warnings = buildUnnamed470(); } buildCounterReport--; return o; @@ -577,77 +577,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed450(o.averages); - checkUnnamed451(o.headers); + checkUnnamed465(o.averages); + checkUnnamed466(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed453(o.rows); + checkUnnamed468(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed454(o.totals); - checkUnnamed455(o.warnings); + checkUnnamed469(o.totals); + checkUnnamed470(o.warnings); } buildCounterReport--; } -buildUnnamed456() { +buildUnnamed471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed456(core.List<core.String> o) { +checkUnnamed471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed457() { +buildUnnamed472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed457(core.List<core.String> o) { +checkUnnamed472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed458() { +buildUnnamed473() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed458(core.List<core.String> o) { +checkUnnamed473(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed459() { +buildUnnamed474() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed459(core.List<core.String> o) { +checkUnnamed474(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed460() { +buildUnnamed475() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed460(core.List<core.String> o) { +checkUnnamed475(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -658,13 +658,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed456(); - o.compatibleMetrics = buildUnnamed457(); + o.compatibleDimensions = buildUnnamed471(); + o.compatibleMetrics = buildUnnamed472(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed458(); - o.requiredMetrics = buildUnnamed459(); - o.supportedProducts = buildUnnamed460(); + o.requiredDimensions = buildUnnamed473(); + o.requiredMetrics = buildUnnamed474(); + o.supportedProducts = buildUnnamed475(); } buildCounterReportingMetadataEntry--; return o; @@ -673,13 +673,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed456(o.compatibleDimensions); - checkUnnamed457(o.compatibleMetrics); + checkUnnamed471(o.compatibleDimensions); + checkUnnamed472(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed458(o.requiredDimensions); - checkUnnamed459(o.requiredMetrics); - checkUnnamed460(o.supportedProducts); + checkUnnamed473(o.requiredDimensions); + checkUnnamed474(o.requiredMetrics); + checkUnnamed475(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -707,14 +707,14 @@ buildCounterSavedReport--; } -buildUnnamed461() { +buildUnnamed476() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed461(core.List<api.SavedReport> o) { +checkUnnamed476(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -726,7 +726,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed461(); + o.items = buildUnnamed476(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -738,7 +738,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed461(o.items); + checkUnnamed476(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -768,14 +768,14 @@ buildCounterUrlChannel--; } -buildUnnamed462() { +buildUnnamed477() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed462(core.List<api.UrlChannel> o) { +checkUnnamed477(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -787,7 +787,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed462(); + o.items = buildUnnamed477(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -799,60 +799,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed462(o.items); + checkUnnamed477(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed463() { +buildUnnamed478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed463(core.List<core.String> o) { +checkUnnamed478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed464() { +buildUnnamed479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed464(core.List<core.String> o) { +checkUnnamed479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed465() { +buildUnnamed480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed465(core.List<core.String> o) { +checkUnnamed480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed466() { +buildUnnamed481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed466(core.List<core.String> o) { +checkUnnamed481(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1780,12 +1780,12 @@ api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed463(); - var arg_filter = buildUnnamed464(); + var arg_dimension = buildUnnamed478(); + var arg_filter = buildUnnamed479(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed465(); - var arg_sort = buildUnnamed466(); + var arg_metric = buildUnnamed480(); + var arg_sort = buildUnnamed481(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/adexchangeseller/v2_0_test.dart b/generated/googleapis/test/adexchangeseller/v2_0_test.dart index dce9996..081c9e1 100644 --- a/generated/googleapis/test/adexchangeseller/v2_0_test.dart +++ b/generated/googleapis/test/adexchangeseller/v2_0_test.dart
@@ -74,14 +74,14 @@ buildCounterAccount--; } -buildUnnamed2151() { +buildUnnamed1904() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2151(core.List<api.Account> o) { +checkUnnamed1904(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -93,7 +93,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed2151(); + o.items = buildUnnamed1904(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -105,7 +105,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2151(o.items); + checkUnnamed1904(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -139,14 +139,14 @@ buildCounterAdClient--; } -buildUnnamed2152() { +buildUnnamed1905() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed2152(core.List<api.AdClient> o) { +checkUnnamed1905(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -158,7 +158,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed2152(); + o.items = buildUnnamed1905(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -170,7 +170,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2152(o.items); + checkUnnamed1905(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -204,14 +204,14 @@ buildCounterAlert--; } -buildUnnamed2153() { +buildUnnamed1906() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed2153(core.List<api.Alert> o) { +checkUnnamed1906(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -222,7 +222,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed2153(); + o.items = buildUnnamed1906(); o.kind = "foo"; } buildCounterAlerts--; @@ -232,7 +232,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed2153(o.items); + checkUnnamed1906(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -290,14 +290,14 @@ buildCounterCustomChannel--; } -buildUnnamed2154() { +buildUnnamed1907() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed2154(core.List<api.CustomChannel> o) { +checkUnnamed1907(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -309,7 +309,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed2154(); + o.items = buildUnnamed1907(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -321,21 +321,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2154(o.items); + checkUnnamed1907(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed2155() { +buildUnnamed1908() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed2155(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed1908(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -346,7 +346,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed2155(); + o.items = buildUnnamed1908(); o.kind = "foo"; } buildCounterMetadata--; @@ -356,7 +356,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed2155(o.items); + checkUnnamed1908(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -395,14 +395,14 @@ buildCounterPreferredDeal--; } -buildUnnamed2156() { +buildUnnamed1909() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed2156(core.List<api.PreferredDeal> o) { +checkUnnamed1909(core.List<api.PreferredDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkPreferredDeal(o[0]); checkPreferredDeal(o[1]); @@ -413,7 +413,7 @@ var o = new api.PreferredDeals(); buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - o.items = buildUnnamed2156(); + o.items = buildUnnamed1909(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -423,20 +423,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed2156(o.items); + checkUnnamed1909(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed2157() { +buildUnnamed1910() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2157(core.List<core.String> o) { +checkUnnamed1910(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -465,66 +465,66 @@ buildCounterReportHeaders--; } -buildUnnamed2158() { +buildUnnamed1911() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed2158(core.List<api.ReportHeaders> o) { +checkUnnamed1911(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed2159() { +buildUnnamed1912() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2159(core.List<core.String> o) { +checkUnnamed1912(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2160() { +buildUnnamed1913() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed2159()); - o.add(buildUnnamed2159()); + o.add(buildUnnamed1912()); + o.add(buildUnnamed1912()); return o; } -checkUnnamed2160(core.List<core.List<core.String>> o) { +checkUnnamed1913(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2159(o[0]); - checkUnnamed2159(o[1]); + checkUnnamed1912(o[0]); + checkUnnamed1912(o[1]); } -buildUnnamed2161() { +buildUnnamed1914() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2161(core.List<core.String> o) { +checkUnnamed1914(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2162() { +buildUnnamed1915() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2162(core.List<core.String> o) { +checkUnnamed1915(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -535,13 +535,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed2157(); - o.headers = buildUnnamed2158(); + o.averages = buildUnnamed1910(); + o.headers = buildUnnamed1911(); o.kind = "foo"; - o.rows = buildUnnamed2160(); + o.rows = buildUnnamed1913(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed2161(); - o.warnings = buildUnnamed2162(); + o.totals = buildUnnamed1914(); + o.warnings = buildUnnamed1915(); } buildCounterReport--; return o; @@ -550,77 +550,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed2157(o.averages); - checkUnnamed2158(o.headers); + checkUnnamed1910(o.averages); + checkUnnamed1911(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2160(o.rows); + checkUnnamed1913(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed2161(o.totals); - checkUnnamed2162(o.warnings); + checkUnnamed1914(o.totals); + checkUnnamed1915(o.warnings); } buildCounterReport--; } -buildUnnamed2163() { +buildUnnamed1916() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2163(core.List<core.String> o) { +checkUnnamed1916(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2164() { +buildUnnamed1917() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2164(core.List<core.String> o) { +checkUnnamed1917(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2165() { +buildUnnamed1918() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2165(core.List<core.String> o) { +checkUnnamed1918(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2166() { +buildUnnamed1919() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2166(core.List<core.String> o) { +checkUnnamed1919(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2167() { +buildUnnamed1920() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2167(core.List<core.String> o) { +checkUnnamed1920(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -631,13 +631,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed2163(); - o.compatibleMetrics = buildUnnamed2164(); + o.compatibleDimensions = buildUnnamed1916(); + o.compatibleMetrics = buildUnnamed1917(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed2165(); - o.requiredMetrics = buildUnnamed2166(); - o.supportedProducts = buildUnnamed2167(); + o.requiredDimensions = buildUnnamed1918(); + o.requiredMetrics = buildUnnamed1919(); + o.supportedProducts = buildUnnamed1920(); } buildCounterReportingMetadataEntry--; return o; @@ -646,13 +646,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed2163(o.compatibleDimensions); - checkUnnamed2164(o.compatibleMetrics); + checkUnnamed1916(o.compatibleDimensions); + checkUnnamed1917(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2165(o.requiredDimensions); - checkUnnamed2166(o.requiredMetrics); - checkUnnamed2167(o.supportedProducts); + checkUnnamed1918(o.requiredDimensions); + checkUnnamed1919(o.requiredMetrics); + checkUnnamed1920(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -680,14 +680,14 @@ buildCounterSavedReport--; } -buildUnnamed2168() { +buildUnnamed1921() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed2168(core.List<api.SavedReport> o) { +checkUnnamed1921(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -699,7 +699,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed2168(); + o.items = buildUnnamed1921(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -711,7 +711,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2168(o.items); + checkUnnamed1921(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -741,14 +741,14 @@ buildCounterUrlChannel--; } -buildUnnamed2169() { +buildUnnamed1922() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed2169(core.List<api.UrlChannel> o) { +checkUnnamed1922(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -760,7 +760,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed2169(); + o.items = buildUnnamed1922(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -772,60 +772,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2169(o.items); + checkUnnamed1922(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed2170() { +buildUnnamed1923() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2170(core.List<core.String> o) { +checkUnnamed1923(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2171() { +buildUnnamed1924() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2171(core.List<core.String> o) { +checkUnnamed1924(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2172() { +buildUnnamed1925() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2172(core.List<core.String> o) { +checkUnnamed1925(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2173() { +buildUnnamed1926() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2173(core.List<core.String> o) { +checkUnnamed1926(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1598,12 +1598,12 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed2170(); - var arg_filter = buildUnnamed2171(); + var arg_dimension = buildUnnamed1923(); + var arg_filter = buildUnnamed1924(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2172(); - var arg_sort = buildUnnamed2173(); + var arg_metric = buildUnnamed1925(); + var arg_sort = buildUnnamed1926(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart index bcfbea2..d886494 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -78,14 +78,14 @@ buildCounterAlias--; } -buildUnnamed916() { +buildUnnamed941() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed916(core.List<core.Object> o) { +checkUnnamed941(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -96,7 +96,7 @@ var o = new api.Aliases(); buildCounterAliases++; if (buildCounterAliases < 3) { - o.aliases = buildUnnamed916(); + o.aliases = buildUnnamed941(); o.etag = "foo"; o.kind = "foo"; } @@ -107,7 +107,7 @@ checkAliases(api.Aliases o) { buildCounterAliases++; if (buildCounterAliases < 3) { - checkUnnamed916(o.aliases); + checkUnnamed941(o.aliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -145,14 +145,14 @@ buildCounterAsp--; } -buildUnnamed917() { +buildUnnamed942() { var o = new core.List<api.Asp>(); o.add(buildAsp()); o.add(buildAsp()); return o; } -checkUnnamed917(core.List<api.Asp> o) { +checkUnnamed942(core.List<api.Asp> o) { unittest.expect(o, unittest.hasLength(2)); checkAsp(o[0]); checkAsp(o[1]); @@ -164,7 +164,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { o.etag = "foo"; - o.items = buildUnnamed917(); + o.items = buildUnnamed942(); o.kind = "foo"; } buildCounterAsps--; @@ -175,7 +175,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed917(o.items); + checkUnnamed942(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAsps--; @@ -212,14 +212,14 @@ buildCounterCalendarResource--; } -buildUnnamed918() { +buildUnnamed943() { var o = new core.List<api.CalendarResource>(); o.add(buildCalendarResource()); o.add(buildCalendarResource()); return o; } -checkUnnamed918(core.List<api.CalendarResource> o) { +checkUnnamed943(core.List<api.CalendarResource> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarResource(o[0]); checkCalendarResource(o[1]); @@ -231,7 +231,7 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { o.etag = "foo"; - o.items = buildUnnamed918(); + o.items = buildUnnamed943(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -243,21 +243,21 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed918(o.items); + checkUnnamed943(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCalendarResources--; } -buildUnnamed919() { +buildUnnamed944() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed919(core.Map<core.String, core.String> o) { +checkUnnamed944(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -272,7 +272,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed919(); + o.params = buildUnnamed944(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -290,7 +290,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed919(o.params); + checkUnnamed944(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -321,14 +321,14 @@ buildCounterChromeOsDeviceActiveTimeRanges--; } -buildUnnamed920() { +buildUnnamed945() { var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); o.add(buildChromeOsDeviceActiveTimeRanges()); o.add(buildChromeOsDeviceActiveTimeRanges()); return o; } -checkUnnamed920(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { +checkUnnamed945(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceActiveTimeRanges(o[0]); checkChromeOsDeviceActiveTimeRanges(o[1]); @@ -355,14 +355,14 @@ buildCounterChromeOsDeviceRecentUsers--; } -buildUnnamed921() { +buildUnnamed946() { var o = new core.List<api.ChromeOsDeviceRecentUsers>(); o.add(buildChromeOsDeviceRecentUsers()); o.add(buildChromeOsDeviceRecentUsers()); return o; } -checkUnnamed921(core.List<api.ChromeOsDeviceRecentUsers> o) { +checkUnnamed946(core.List<api.ChromeOsDeviceRecentUsers> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceRecentUsers(o[0]); checkChromeOsDeviceRecentUsers(o[1]); @@ -373,7 +373,7 @@ var o = new api.ChromeOsDevice(); buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - o.activeTimeRanges = buildUnnamed920(); + o.activeTimeRanges = buildUnnamed945(); o.annotatedAssetId = "foo"; o.annotatedLocation = "foo"; o.annotatedUser = "foo"; @@ -393,7 +393,7 @@ o.orgUnitPath = "foo"; o.osVersion = "foo"; o.platformVersion = "foo"; - o.recentUsers = buildUnnamed921(); + o.recentUsers = buildUnnamed946(); o.serialNumber = "foo"; o.status = "foo"; o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); @@ -406,7 +406,7 @@ checkChromeOsDevice(api.ChromeOsDevice o) { buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - checkUnnamed920(o.activeTimeRanges); + checkUnnamed945(o.activeTimeRanges); unittest.expect(o.annotatedAssetId, unittest.equals('foo')); unittest.expect(o.annotatedLocation, unittest.equals('foo')); unittest.expect(o.annotatedUser, unittest.equals('foo')); @@ -426,7 +426,7 @@ unittest.expect(o.orgUnitPath, unittest.equals('foo')); unittest.expect(o.osVersion, unittest.equals('foo')); unittest.expect(o.platformVersion, unittest.equals('foo')); - checkUnnamed921(o.recentUsers); + checkUnnamed946(o.recentUsers); unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -435,14 +435,35 @@ buildCounterChromeOsDevice--; } -buildUnnamed922() { +core.int buildCounterChromeOsDeviceAction = 0; +buildChromeOsDeviceAction() { + var o = new api.ChromeOsDeviceAction(); + buildCounterChromeOsDeviceAction++; + if (buildCounterChromeOsDeviceAction < 3) { + o.action = "foo"; + o.deprovisionReason = "foo"; + } + buildCounterChromeOsDeviceAction--; + return o; +} + +checkChromeOsDeviceAction(api.ChromeOsDeviceAction o) { + buildCounterChromeOsDeviceAction++; + if (buildCounterChromeOsDeviceAction < 3) { + unittest.expect(o.action, unittest.equals('foo')); + unittest.expect(o.deprovisionReason, unittest.equals('foo')); + } + buildCounterChromeOsDeviceAction--; +} + +buildUnnamed947() { var o = new core.List<api.ChromeOsDevice>(); o.add(buildChromeOsDevice()); o.add(buildChromeOsDevice()); return o; } -checkUnnamed922(core.List<api.ChromeOsDevice> o) { +checkUnnamed947(core.List<api.ChromeOsDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDevice(o[0]); checkChromeOsDevice(o[1]); @@ -453,7 +474,7 @@ var o = new api.ChromeOsDevices(); buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - o.chromeosdevices = buildUnnamed922(); + o.chromeosdevices = buildUnnamed947(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -465,7 +486,7 @@ checkChromeOsDevices(api.ChromeOsDevices o) { buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - checkUnnamed922(o.chromeosdevices); + checkUnnamed947(o.chromeosdevices); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -572,14 +593,14 @@ buildCounterDomainAlias--; } -buildUnnamed923() { +buildUnnamed948() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed923(core.List<api.DomainAlias> o) { +checkUnnamed948(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -590,7 +611,7 @@ var o = new api.DomainAliases(); buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - o.domainAliases = buildUnnamed923(); + o.domainAliases = buildUnnamed948(); o.etag = "foo"; o.kind = "foo"; } @@ -601,21 +622,21 @@ checkDomainAliases(api.DomainAliases o) { buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - checkUnnamed923(o.domainAliases); + checkUnnamed948(o.domainAliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomainAliases--; } -buildUnnamed924() { +buildUnnamed949() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed924(core.List<api.DomainAlias> o) { +checkUnnamed949(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -627,7 +648,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { o.creationTime = "foo"; - o.domainAliases = buildUnnamed924(); + o.domainAliases = buildUnnamed949(); o.domainName = "foo"; o.etag = "foo"; o.isPrimary = true; @@ -642,7 +663,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed924(o.domainAliases); + checkUnnamed949(o.domainAliases); unittest.expect(o.domainName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isPrimary, unittest.isTrue); @@ -652,14 +673,14 @@ buildCounterDomains--; } -buildUnnamed925() { +buildUnnamed950() { var o = new core.List<api.Domains>(); o.add(buildDomains()); o.add(buildDomains()); return o; } -checkUnnamed925(core.List<api.Domains> o) { +checkUnnamed950(core.List<api.Domains> o) { unittest.expect(o, unittest.hasLength(2)); checkDomains(o[0]); checkDomains(o[1]); @@ -670,7 +691,7 @@ var o = new api.Domains2(); buildCounterDomains2++; if (buildCounterDomains2 < 3) { - o.domains = buildUnnamed925(); + o.domains = buildUnnamed950(); o.etag = "foo"; o.kind = "foo"; } @@ -681,34 +702,34 @@ checkDomains2(api.Domains2 o) { buildCounterDomains2++; if (buildCounterDomains2 < 3) { - checkUnnamed925(o.domains); + checkUnnamed950(o.domains); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomains2--; } -buildUnnamed926() { +buildUnnamed951() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed926(core.List<core.String> o) { +checkUnnamed951(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed927() { +buildUnnamed952() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed927(core.List<core.String> o) { +checkUnnamed952(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -720,7 +741,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { o.adminCreated = true; - o.aliases = buildUnnamed926(); + o.aliases = buildUnnamed951(); o.description = "foo"; o.directMembersCount = "foo"; o.email = "foo"; @@ -728,7 +749,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nonEditableAliases = buildUnnamed927(); + o.nonEditableAliases = buildUnnamed952(); } buildCounterGroup--; return o; @@ -738,7 +759,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { unittest.expect(o.adminCreated, unittest.isTrue); - checkUnnamed926(o.aliases); + checkUnnamed951(o.aliases); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.directMembersCount, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -746,19 +767,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed927(o.nonEditableAliases); + checkUnnamed952(o.nonEditableAliases); } buildCounterGroup--; } -buildUnnamed928() { +buildUnnamed953() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed928(core.List<api.Group> o) { +checkUnnamed953(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -770,7 +791,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { o.etag = "foo"; - o.groups = buildUnnamed928(); + o.groups = buildUnnamed953(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -782,7 +803,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed928(o.groups); + checkUnnamed953(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -820,14 +841,14 @@ buildCounterMember--; } -buildUnnamed929() { +buildUnnamed954() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed929(core.List<api.Member> o) { +checkUnnamed954(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -840,7 +861,7 @@ if (buildCounterMembers < 3) { o.etag = "foo"; o.kind = "foo"; - o.members = buildUnnamed929(); + o.members = buildUnnamed954(); o.nextPageToken = "foo"; } buildCounterMembers--; @@ -852,20 +873,20 @@ if (buildCounterMembers < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed929(o.members); + checkUnnamed954(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMembers--; } -buildUnnamed930() { +buildUnnamed955() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed930(core.List<core.String> o) { +checkUnnamed955(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -878,7 +899,7 @@ if (buildCounterMobileDeviceApplications < 3) { o.displayName = "foo"; o.packageName = "foo"; - o.permission = buildUnnamed930(); + o.permission = buildUnnamed955(); o.versionCode = 42; o.versionName = "foo"; } @@ -891,60 +912,60 @@ if (buildCounterMobileDeviceApplications < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed930(o.permission); + checkUnnamed955(o.permission); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterMobileDeviceApplications--; } -buildUnnamed931() { +buildUnnamed956() { var o = new core.List<api.MobileDeviceApplications>(); o.add(buildMobileDeviceApplications()); o.add(buildMobileDeviceApplications()); return o; } -checkUnnamed931(core.List<api.MobileDeviceApplications> o) { +checkUnnamed956(core.List<api.MobileDeviceApplications> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDeviceApplications(o[0]); checkMobileDeviceApplications(o[1]); } -buildUnnamed932() { +buildUnnamed957() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed932(core.List<core.String> o) { +checkUnnamed957(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed933() { +buildUnnamed958() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed933(core.List<core.String> o) { +checkUnnamed958(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed934() { +buildUnnamed959() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed934(core.List<core.String> o) { +checkUnnamed959(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -956,29 +977,38 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { o.adbStatus = true; - o.applications = buildUnnamed931(); + o.applications = buildUnnamed956(); o.basebandVersion = "foo"; + o.bootloaderVersion = "foo"; + o.brand = "foo"; o.buildNumber = "foo"; o.defaultLanguage = "foo"; o.developerOptionsStatus = true; o.deviceCompromisedStatus = "foo"; o.deviceId = "foo"; - o.email = buildUnnamed932(); + o.devicePasswordStatus = "foo"; + o.email = buildUnnamed957(); + o.encryptionStatus = "foo"; o.etag = "foo"; o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); + o.hardware = "foo"; o.hardwareId = "foo"; o.imei = "foo"; o.kernelVersion = "foo"; o.kind = "foo"; o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); o.managedAccountIsOnOwnerProfile = true; + o.manufacturer = "foo"; o.meid = "foo"; o.model = "foo"; - o.name = buildUnnamed933(); + o.name = buildUnnamed958(); o.networkOperator = "foo"; o.os = "foo"; - o.otherAccountsInfo = buildUnnamed934(); + o.otherAccountsInfo = buildUnnamed959(); + o.privilege = "foo"; + o.releaseVersion = "foo"; o.resourceId = "foo"; + o.securityPatchLevel = "foo"; o.serialNumber = "foo"; o.status = "foo"; o.supportsWorkProfile = true; @@ -995,29 +1025,38 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { unittest.expect(o.adbStatus, unittest.isTrue); - checkUnnamed931(o.applications); + checkUnnamed956(o.applications); unittest.expect(o.basebandVersion, unittest.equals('foo')); + unittest.expect(o.bootloaderVersion, unittest.equals('foo')); + unittest.expect(o.brand, unittest.equals('foo')); unittest.expect(o.buildNumber, unittest.equals('foo')); unittest.expect(o.defaultLanguage, unittest.equals('foo')); unittest.expect(o.developerOptionsStatus, unittest.isTrue); unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); - checkUnnamed932(o.email); + unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); + checkUnnamed957(o.email); + unittest.expect(o.encryptionStatus, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.hardware, unittest.equals('foo')); unittest.expect(o.hardwareId, unittest.equals('foo')); unittest.expect(o.imei, unittest.equals('foo')); unittest.expect(o.kernelVersion, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); + unittest.expect(o.manufacturer, unittest.equals('foo')); unittest.expect(o.meid, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed933(o.name); + checkUnnamed958(o.name); unittest.expect(o.networkOperator, unittest.equals('foo')); unittest.expect(o.os, unittest.equals('foo')); - checkUnnamed934(o.otherAccountsInfo); + checkUnnamed959(o.otherAccountsInfo); + unittest.expect(o.privilege, unittest.equals('foo')); + unittest.expect(o.releaseVersion, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); + unittest.expect(o.securityPatchLevel, unittest.equals('foo')); unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.supportsWorkProfile, unittest.isTrue); @@ -1048,14 +1087,14 @@ buildCounterMobileDeviceAction--; } -buildUnnamed935() { +buildUnnamed960() { var o = new core.List<api.MobileDevice>(); o.add(buildMobileDevice()); o.add(buildMobileDevice()); return o; } -checkUnnamed935(core.List<api.MobileDevice> o) { +checkUnnamed960(core.List<api.MobileDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDevice(o[0]); checkMobileDevice(o[1]); @@ -1068,7 +1107,7 @@ if (buildCounterMobileDevices < 3) { o.etag = "foo"; o.kind = "foo"; - o.mobiledevices = buildUnnamed935(); + o.mobiledevices = buildUnnamed960(); o.nextPageToken = "foo"; } buildCounterMobileDevices--; @@ -1080,7 +1119,7 @@ if (buildCounterMobileDevices < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed935(o.mobiledevices); + checkUnnamed960(o.mobiledevices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileDevices--; @@ -1119,14 +1158,14 @@ buildCounterNotification--; } -buildUnnamed936() { +buildUnnamed961() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed936(core.List<api.Notification> o) { +checkUnnamed961(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1138,7 +1177,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { o.etag = "foo"; - o.items = buildUnnamed936(); + o.items = buildUnnamed961(); o.kind = "foo"; o.nextPageToken = "foo"; o.unreadNotificationsCount = 42; @@ -1151,7 +1190,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed936(o.items); + checkUnnamed961(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); @@ -1194,14 +1233,14 @@ buildCounterOrgUnit--; } -buildUnnamed937() { +buildUnnamed962() { var o = new core.List<api.OrgUnit>(); o.add(buildOrgUnit()); o.add(buildOrgUnit()); return o; } -checkUnnamed937(core.List<api.OrgUnit> o) { +checkUnnamed962(core.List<api.OrgUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgUnit(o[0]); checkOrgUnit(o[1]); @@ -1214,7 +1253,7 @@ if (buildCounterOrgUnits < 3) { o.etag = "foo"; o.kind = "foo"; - o.organizationUnits = buildUnnamed937(); + o.organizationUnits = buildUnnamed962(); } buildCounterOrgUnits--; return o; @@ -1225,19 +1264,19 @@ if (buildCounterOrgUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed937(o.organizationUnits); + checkUnnamed962(o.organizationUnits); } buildCounterOrgUnits--; } -buildUnnamed938() { +buildUnnamed963() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed938(core.List<api.Privilege> o) { +checkUnnamed963(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1248,7 +1287,7 @@ var o = new api.Privilege(); buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - o.childPrivileges = buildUnnamed938(); + o.childPrivileges = buildUnnamed963(); o.etag = "foo"; o.isOuScopable = true; o.kind = "foo"; @@ -1263,7 +1302,7 @@ checkPrivilege(api.Privilege o) { buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - checkUnnamed938(o.childPrivileges); + checkUnnamed963(o.childPrivileges); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isOuScopable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1274,14 +1313,14 @@ buildCounterPrivilege--; } -buildUnnamed939() { +buildUnnamed964() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed939(core.List<api.Privilege> o) { +checkUnnamed964(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1293,7 +1332,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { o.etag = "foo"; - o.items = buildUnnamed939(); + o.items = buildUnnamed964(); o.kind = "foo"; } buildCounterPrivileges--; @@ -1304,7 +1343,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed939(o.items); + checkUnnamed964(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPrivileges--; @@ -1331,14 +1370,14 @@ buildCounterRoleRolePrivileges--; } -buildUnnamed940() { +buildUnnamed965() { var o = new core.List<api.RoleRolePrivileges>(); o.add(buildRoleRolePrivileges()); o.add(buildRoleRolePrivileges()); return o; } -checkUnnamed940(core.List<api.RoleRolePrivileges> o) { +checkUnnamed965(core.List<api.RoleRolePrivileges> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleRolePrivileges(o[0]); checkRoleRolePrivileges(o[1]); @@ -1356,7 +1395,7 @@ o.roleDescription = "foo"; o.roleId = "foo"; o.roleName = "foo"; - o.rolePrivileges = buildUnnamed940(); + o.rolePrivileges = buildUnnamed965(); } buildCounterRole--; return o; @@ -1372,7 +1411,7 @@ unittest.expect(o.roleDescription, unittest.equals('foo')); unittest.expect(o.roleId, unittest.equals('foo')); unittest.expect(o.roleName, unittest.equals('foo')); - checkUnnamed940(o.rolePrivileges); + checkUnnamed965(o.rolePrivileges); } buildCounterRole--; } @@ -1408,14 +1447,14 @@ buildCounterRoleAssignment--; } -buildUnnamed941() { +buildUnnamed966() { var o = new core.List<api.RoleAssignment>(); o.add(buildRoleAssignment()); o.add(buildRoleAssignment()); return o; } -checkUnnamed941(core.List<api.RoleAssignment> o) { +checkUnnamed966(core.List<api.RoleAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleAssignment(o[0]); checkRoleAssignment(o[1]); @@ -1427,7 +1466,7 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { o.etag = "foo"; - o.items = buildUnnamed941(); + o.items = buildUnnamed966(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1439,21 +1478,21 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed941(o.items); + checkUnnamed966(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoleAssignments--; } -buildUnnamed942() { +buildUnnamed967() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed942(core.List<api.Role> o) { +checkUnnamed967(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -1465,7 +1504,7 @@ buildCounterRoles++; if (buildCounterRoles < 3) { o.etag = "foo"; - o.items = buildUnnamed942(); + o.items = buildUnnamed967(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1477,21 +1516,21 @@ buildCounterRoles++; if (buildCounterRoles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed942(o.items); + checkUnnamed967(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoles--; } -buildUnnamed943() { +buildUnnamed968() { var o = new core.List<api.SchemaFieldSpec>(); o.add(buildSchemaFieldSpec()); o.add(buildSchemaFieldSpec()); return o; } -checkUnnamed943(core.List<api.SchemaFieldSpec> o) { +checkUnnamed968(core.List<api.SchemaFieldSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaFieldSpec(o[0]); checkSchemaFieldSpec(o[1]); @@ -1503,7 +1542,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { o.etag = "foo"; - o.fields = buildUnnamed943(); + o.fields = buildUnnamed968(); o.kind = "foo"; o.schemaId = "foo"; o.schemaName = "foo"; @@ -1516,7 +1555,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed943(o.fields); + checkUnnamed968(o.fields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.schemaId, unittest.equals('foo')); unittest.expect(o.schemaName, unittest.equals('foo')); @@ -1580,14 +1619,14 @@ buildCounterSchemaFieldSpec--; } -buildUnnamed944() { +buildUnnamed969() { var o = new core.List<api.Schema>(); o.add(buildSchema()); o.add(buildSchema()); return o; } -checkUnnamed944(core.List<api.Schema> o) { +checkUnnamed969(core.List<api.Schema> o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); @@ -1600,7 +1639,7 @@ if (buildCounterSchemas < 3) { o.etag = "foo"; o.kind = "foo"; - o.schemas = buildUnnamed944(); + o.schemas = buildUnnamed969(); } buildCounterSchemas--; return o; @@ -1611,19 +1650,19 @@ if (buildCounterSchemas < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed944(o.schemas); + checkUnnamed969(o.schemas); } buildCounterSchemas--; } -buildUnnamed945() { +buildUnnamed970() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed945(core.List<core.String> o) { +checkUnnamed970(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1640,7 +1679,7 @@ o.etag = "foo"; o.kind = "foo"; o.nativeApp = true; - o.scopes = buildUnnamed945(); + o.scopes = buildUnnamed970(); o.userKey = "foo"; } buildCounterToken--; @@ -1656,20 +1695,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nativeApp, unittest.isTrue); - checkUnnamed945(o.scopes); + checkUnnamed970(o.scopes); unittest.expect(o.userKey, unittest.equals('foo')); } buildCounterToken--; } -buildUnnamed946() { +buildUnnamed971() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed946(core.List<api.Token> o) { +checkUnnamed971(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -1681,7 +1720,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { o.etag = "foo"; - o.items = buildUnnamed946(); + o.items = buildUnnamed971(); o.kind = "foo"; } buildCounterTokens--; @@ -1692,46 +1731,46 @@ buildCounterTokens++; if (buildCounterTokens < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed946(o.items); + checkUnnamed971(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTokens--; } -buildUnnamed947() { +buildUnnamed972() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed947(core.List<core.String> o) { +checkUnnamed972(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed948() { +buildUnnamed973() { var o = new core.Map<core.String, api.UserCustomProperties>(); o["x"] = buildUserCustomProperties(); o["y"] = buildUserCustomProperties(); return o; } -checkUnnamed948(core.Map<core.String, api.UserCustomProperties> o) { +checkUnnamed973(core.Map<core.String, api.UserCustomProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkUserCustomProperties(o["x"]); checkUserCustomProperties(o["y"]); } -buildUnnamed949() { +buildUnnamed974() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed949(core.List<core.String> o) { +checkUnnamed974(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1744,10 +1783,10 @@ if (buildCounterUser < 3) { o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.agreedToTerms = true; - o.aliases = buildUnnamed947(); + o.aliases = buildUnnamed972(); o.changePasswordAtNextLogin = true; o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.customSchemas = buildUnnamed948(); + o.customSchemas = buildUnnamed973(); o.customerId = "foo"; o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1764,7 +1803,7 @@ o.kind = "foo"; o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); o.name = buildUserName(); - o.nonEditableAliases = buildUnnamed949(); + o.nonEditableAliases = buildUnnamed974(); o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.orgUnitPath = "foo"; o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1787,10 +1826,10 @@ if (buildCounterUser < 3) { var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.agreedToTerms, unittest.isTrue); - checkUnnamed947(o.aliases); + checkUnnamed972(o.aliases); unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed948(o.customSchemas); + checkUnnamed973(o.customSchemas); unittest.expect(o.customerId, unittest.equals('foo')); unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1807,7 +1846,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUserName(o.name); - checkUnnamed949(o.nonEditableAliases); + checkUnnamed974(o.nonEditableAliases); var casted7 = (o.notes) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); unittest.expect(o.orgUnitPath, unittest.equals('foo')); var casted8 = (o.organizations) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -2184,14 +2223,14 @@ buildCounterUserWebsite--; } -buildUnnamed950() { +buildUnnamed975() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed950(core.List<api.User> o) { +checkUnnamed975(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -2206,7 +2245,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.triggerEvent = "foo"; - o.users = buildUnnamed950(); + o.users = buildUnnamed975(); } buildCounterUsers--; return o; @@ -2219,7 +2258,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.triggerEvent, unittest.equals('foo')); - checkUnnamed950(o.users); + checkUnnamed975(o.users); } buildCounterUsers--; } @@ -2249,14 +2288,14 @@ buildCounterVerificationCode--; } -buildUnnamed951() { +buildUnnamed976() { var o = new core.List<api.VerificationCode>(); o.add(buildVerificationCode()); o.add(buildVerificationCode()); return o; } -checkUnnamed951(core.List<api.VerificationCode> o) { +checkUnnamed976(core.List<api.VerificationCode> o) { unittest.expect(o, unittest.hasLength(2)); checkVerificationCode(o[0]); checkVerificationCode(o[1]); @@ -2268,7 +2307,7 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { o.etag = "foo"; - o.items = buildUnnamed951(); + o.items = buildUnnamed976(); o.kind = "foo"; } buildCounterVerificationCodes--; @@ -2279,59 +2318,59 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed951(o.items); + checkUnnamed976(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterVerificationCodes--; } -buildUnnamed952() { +buildUnnamed977() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed952(core.List<core.String> o) { +checkUnnamed977(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed953() { +buildUnnamed978() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed953(core.List<core.String> o) { +checkUnnamed978(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed954() { +buildUnnamed979() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed954(core.List<core.String> o) { +checkUnnamed979(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed955() { +buildUnnamed980() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed955(core.List<core.String> o) { +checkUnnamed980(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2429,6 +2468,15 @@ }); + unittest.group("obj-schema-ChromeOsDeviceAction", () { + unittest.test("to-json--from-json", () { + var o = buildChromeOsDeviceAction(); + var od = new api.ChromeOsDeviceAction.fromJson(o.toJson()); + checkChromeOsDeviceAction(od); + }); + }); + + unittest.group("obj-schema-ChromeOsDevices", () { unittest.test("to-json--from-json", () { var o = buildChromeOsDevices(); @@ -3098,6 +3146,69 @@ unittest.group("resource-ChromeosdevicesResourceApi", () { + unittest.test("method--action", () { + + var mock = new HttpServerMock(); + api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevices; + var arg_request = buildChromeOsDeviceAction(); + var arg_customerId = "foo"; + var arg_resourceId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ChromeOsDeviceAction.fromJson(json); + checkChromeOsDeviceAction(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("admin/directory/v1/")); + pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("customer/")); + pathOffset += 9; + index = path.indexOf("/devices/chromeos/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_customerId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/devices/chromeos/")); + pathOffset += 18; + index = path.indexOf("/action", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_resourceId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/action")); + pathOffset += 7; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expectAsync((_) {})); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -5346,7 +5457,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed952(); + var arg_orgUnitPath = buildUnnamed977(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5400,7 +5511,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed953(); + var arg_orgUnitPath = buildUnnamed978(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5571,7 +5682,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed954(); + var arg_orgUnitPath = buildUnnamed979(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj); @@ -5631,7 +5742,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed955(); + var arg_orgUnitPath = buildUnnamed980(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj);
diff --git a/generated/googleapis/test/admin/reports_v1_test.dart b/generated/googleapis/test/admin/reports_v1_test.dart index f399758..868b649 100644 --- a/generated/googleapis/test/admin/reports_v1_test.dart +++ b/generated/googleapis/test/admin/reports_v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed810() { +buildUnnamed834() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed810(core.List<api.Activity> o) { +checkUnnamed834(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -70,7 +70,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { o.etag = "foo"; - o.items = buildUnnamed810(); + o.items = buildUnnamed834(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -82,7 +82,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed810(o.items); + checkUnnamed834(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -114,27 +114,27 @@ buildCounterActivityActor--; } -buildUnnamed811() { +buildUnnamed835() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed811(core.List<core.String> o) { +checkUnnamed835(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed812() { +buildUnnamed836() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed812(core.List<core.String> o) { +checkUnnamed836(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -147,8 +147,8 @@ if (buildCounterActivityEventsParameters < 3) { o.boolValue = true; o.intValue = "foo"; - o.multiIntValue = buildUnnamed811(); - o.multiValue = buildUnnamed812(); + o.multiIntValue = buildUnnamed835(); + o.multiValue = buildUnnamed836(); o.name = "foo"; o.value = "foo"; } @@ -161,22 +161,22 @@ if (buildCounterActivityEventsParameters < 3) { unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed811(o.multiIntValue); - checkUnnamed812(o.multiValue); + checkUnnamed835(o.multiIntValue); + checkUnnamed836(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterActivityEventsParameters--; } -buildUnnamed813() { +buildUnnamed837() { var o = new core.List<api.ActivityEventsParameters>(); o.add(buildActivityEventsParameters()); o.add(buildActivityEventsParameters()); return o; } -checkUnnamed813(core.List<api.ActivityEventsParameters> o) { +checkUnnamed837(core.List<api.ActivityEventsParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEventsParameters(o[0]); checkActivityEventsParameters(o[1]); @@ -188,7 +188,7 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { o.name = "foo"; - o.parameters = buildUnnamed813(); + o.parameters = buildUnnamed837(); o.type = "foo"; } buildCounterActivityEvents--; @@ -199,20 +199,20 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed813(o.parameters); + checkUnnamed837(o.parameters); unittest.expect(o.type, unittest.equals('foo')); } buildCounterActivityEvents--; } -buildUnnamed814() { +buildUnnamed838() { var o = new core.List<api.ActivityEvents>(); o.add(buildActivityEvents()); o.add(buildActivityEvents()); return o; } -checkUnnamed814(core.List<api.ActivityEvents> o) { +checkUnnamed838(core.List<api.ActivityEvents> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEvents(o[0]); checkActivityEvents(o[1]); @@ -250,7 +250,7 @@ if (buildCounterActivity < 3) { o.actor = buildActivityActor(); o.etag = "foo"; - o.events = buildUnnamed814(); + o.events = buildUnnamed838(); o.id = buildActivityId(); o.ipAddress = "foo"; o.kind = "foo"; @@ -265,7 +265,7 @@ if (buildCounterActivity < 3) { checkActivityActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed814(o.events); + checkUnnamed838(o.events); checkActivityId(o.id); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -274,14 +274,14 @@ buildCounterActivity--; } -buildUnnamed815() { +buildUnnamed839() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed815(core.Map<core.String, core.String> o) { +checkUnnamed839(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -296,7 +296,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed815(); + o.params = buildUnnamed839(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -314,7 +314,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed815(o.params); + checkUnnamed839(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -349,30 +349,30 @@ buildCounterUsageReportEntity--; } -buildUnnamed816() { +buildUnnamed840() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed816(core.Map<core.String, core.Object> o) { +checkUnnamed840(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed817() { +buildUnnamed841() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed816()); - o.add(buildUnnamed816()); + o.add(buildUnnamed840()); + o.add(buildUnnamed840()); return o; } -checkUnnamed817(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed841(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed816(o[0]); - checkUnnamed816(o[1]); + checkUnnamed840(o[0]); + checkUnnamed840(o[1]); } core.int buildCounterUsageReportParameters = 0; @@ -383,7 +383,7 @@ o.boolValue = true; o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); o.intValue = "foo"; - o.msgValue = buildUnnamed817(); + o.msgValue = buildUnnamed841(); o.name = "foo"; o.stringValue = "foo"; } @@ -397,21 +397,21 @@ unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed817(o.msgValue); + checkUnnamed841(o.msgValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterUsageReportParameters--; } -buildUnnamed818() { +buildUnnamed842() { var o = new core.List<api.UsageReportParameters>(); o.add(buildUsageReportParameters()); o.add(buildUsageReportParameters()); return o; } -checkUnnamed818(core.List<api.UsageReportParameters> o) { +checkUnnamed842(core.List<api.UsageReportParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportParameters(o[0]); checkUsageReportParameters(o[1]); @@ -426,7 +426,7 @@ o.entity = buildUsageReportEntity(); o.etag = "foo"; o.kind = "foo"; - o.parameters = buildUnnamed818(); + o.parameters = buildUnnamed842(); } buildCounterUsageReport--; return o; @@ -439,19 +439,19 @@ checkUsageReportEntity(o.entity); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed818(o.parameters); + checkUnnamed842(o.parameters); } buildCounterUsageReport--; } -buildUnnamed819() { +buildUnnamed843() { var o = new core.List<api.UsageReport>(); o.add(buildUsageReport()); o.add(buildUsageReport()); return o; } -checkUnnamed819(core.List<api.UsageReport> o) { +checkUnnamed843(core.List<api.UsageReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReport(o[0]); checkUsageReport(o[1]); @@ -478,14 +478,14 @@ buildCounterUsageReportsWarningsData--; } -buildUnnamed820() { +buildUnnamed844() { var o = new core.List<api.UsageReportsWarningsData>(); o.add(buildUsageReportsWarningsData()); o.add(buildUsageReportsWarningsData()); return o; } -checkUnnamed820(core.List<api.UsageReportsWarningsData> o) { +checkUnnamed844(core.List<api.UsageReportsWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarningsData(o[0]); checkUsageReportsWarningsData(o[1]); @@ -497,7 +497,7 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed820(); + o.data = buildUnnamed844(); o.message = "foo"; } buildCounterUsageReportsWarnings--; @@ -508,20 +508,20 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed820(o.data); + checkUnnamed844(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsageReportsWarnings--; } -buildUnnamed821() { +buildUnnamed845() { var o = new core.List<api.UsageReportsWarnings>(); o.add(buildUsageReportsWarnings()); o.add(buildUsageReportsWarnings()); return o; } -checkUnnamed821(core.List<api.UsageReportsWarnings> o) { +checkUnnamed845(core.List<api.UsageReportsWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarnings(o[0]); checkUsageReportsWarnings(o[1]); @@ -535,8 +535,8 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.usageReports = buildUnnamed819(); - o.warnings = buildUnnamed821(); + o.usageReports = buildUnnamed843(); + o.warnings = buildUnnamed845(); } buildCounterUsageReports--; return o; @@ -548,8 +548,8 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed819(o.usageReports); - checkUnnamed821(o.warnings); + checkUnnamed843(o.usageReports); + checkUnnamed845(o.warnings); } buildCounterUsageReports--; }
diff --git a/generated/googleapis/test/adsense/v1_4_test.dart b/generated/googleapis/test/adsense/v1_4_test.dart index b4ee4a7..8ee6071 100644 --- a/generated/googleapis/test/adsense/v1_4_test.dart +++ b/generated/googleapis/test/adsense/v1_4_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2213() { +buildUnnamed1967() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2213(core.List<api.Account> o) { +checkUnnamed1967(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -74,7 +74,7 @@ o.kind = "foo"; o.name = "foo"; o.premium = true; - o.subAccounts = buildUnnamed2213(); + o.subAccounts = buildUnnamed1967(); o.timezone = "foo"; } buildCounterAccount--; @@ -89,20 +89,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.premium, unittest.isTrue); - checkUnnamed2213(o.subAccounts); + checkUnnamed1967(o.subAccounts); unittest.expect(o.timezone, unittest.equals('foo')); } buildCounterAccount--; } -buildUnnamed2214() { +buildUnnamed1968() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2214(core.List<api.Account> o) { +checkUnnamed1968(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -114,7 +114,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed2214(); + o.items = buildUnnamed1968(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -126,7 +126,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2214(o.items); + checkUnnamed1968(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -160,14 +160,14 @@ buildCounterAdClient--; } -buildUnnamed2215() { +buildUnnamed1969() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed2215(core.List<api.AdClient> o) { +checkUnnamed1969(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -179,7 +179,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed2215(); + o.items = buildUnnamed1969(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -191,7 +191,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2215(o.items); + checkUnnamed1969(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -425,14 +425,14 @@ buildCounterAdUnit--; } -buildUnnamed2216() { +buildUnnamed1970() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed2216(core.List<api.AdUnit> o) { +checkUnnamed1970(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -444,7 +444,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed2216(); + o.items = buildUnnamed1970(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -456,21 +456,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2216(o.items); + checkUnnamed1970(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed2217() { +buildUnnamed1971() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2217(core.List<core.String> o) { +checkUnnamed1971(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -499,66 +499,66 @@ buildCounterAdsenseReportsGenerateResponseHeaders--; } -buildUnnamed2218() { +buildUnnamed1972() { var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); o.add(buildAdsenseReportsGenerateResponseHeaders()); o.add(buildAdsenseReportsGenerateResponseHeaders()); return o; } -checkUnnamed2218(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { +checkUnnamed1972(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkAdsenseReportsGenerateResponseHeaders(o[0]); checkAdsenseReportsGenerateResponseHeaders(o[1]); } -buildUnnamed2219() { +buildUnnamed1973() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2219(core.List<core.String> o) { +checkUnnamed1973(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2220() { +buildUnnamed1974() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed2219()); - o.add(buildUnnamed2219()); + o.add(buildUnnamed1973()); + o.add(buildUnnamed1973()); return o; } -checkUnnamed2220(core.List<core.List<core.String>> o) { +checkUnnamed1974(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2219(o[0]); - checkUnnamed2219(o[1]); + checkUnnamed1973(o[0]); + checkUnnamed1973(o[1]); } -buildUnnamed2221() { +buildUnnamed1975() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2221(core.List<core.String> o) { +checkUnnamed1975(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2222() { +buildUnnamed1976() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2222(core.List<core.String> o) { +checkUnnamed1976(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -569,15 +569,15 @@ var o = new api.AdsenseReportsGenerateResponse(); buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - o.averages = buildUnnamed2217(); + o.averages = buildUnnamed1971(); o.endDate = "foo"; - o.headers = buildUnnamed2218(); + o.headers = buildUnnamed1972(); o.kind = "foo"; - o.rows = buildUnnamed2220(); + o.rows = buildUnnamed1974(); o.startDate = "foo"; o.totalMatchedRows = "foo"; - o.totals = buildUnnamed2221(); - o.warnings = buildUnnamed2222(); + o.totals = buildUnnamed1975(); + o.warnings = buildUnnamed1976(); } buildCounterAdsenseReportsGenerateResponse--; return o; @@ -586,15 +586,15 @@ checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - checkUnnamed2217(o.averages); + checkUnnamed1971(o.averages); unittest.expect(o.endDate, unittest.equals('foo')); - checkUnnamed2218(o.headers); + checkUnnamed1972(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2220(o.rows); + checkUnnamed1974(o.rows); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed2221(o.totals); - checkUnnamed2222(o.warnings); + checkUnnamed1975(o.totals); + checkUnnamed1976(o.warnings); } buildCounterAdsenseReportsGenerateResponse--; } @@ -628,14 +628,14 @@ buildCounterAlert--; } -buildUnnamed2223() { +buildUnnamed1977() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed2223(core.List<api.Alert> o) { +checkUnnamed1977(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -646,7 +646,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed2223(); + o.items = buildUnnamed1977(); o.kind = "foo"; } buildCounterAlerts--; @@ -656,7 +656,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed2223(o.items); + checkUnnamed1977(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -714,14 +714,14 @@ buildCounterCustomChannel--; } -buildUnnamed2224() { +buildUnnamed1978() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed2224(core.List<api.CustomChannel> o) { +checkUnnamed1978(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -733,7 +733,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed2224(); + o.items = buildUnnamed1978(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -745,21 +745,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2224(o.items); + checkUnnamed1978(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed2225() { +buildUnnamed1979() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed2225(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed1979(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -770,7 +770,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed2225(); + o.items = buildUnnamed1979(); o.kind = "foo"; } buildCounterMetadata--; @@ -780,7 +780,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed2225(o.items); + checkUnnamed1979(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -813,14 +813,14 @@ buildCounterPayment--; } -buildUnnamed2226() { +buildUnnamed1980() { var o = new core.List<api.Payment>(); o.add(buildPayment()); o.add(buildPayment()); return o; } -checkUnnamed2226(core.List<api.Payment> o) { +checkUnnamed1980(core.List<api.Payment> o) { unittest.expect(o, unittest.hasLength(2)); checkPayment(o[0]); checkPayment(o[1]); @@ -831,7 +831,7 @@ var o = new api.Payments(); buildCounterPayments++; if (buildCounterPayments < 3) { - o.items = buildUnnamed2226(); + o.items = buildUnnamed1980(); o.kind = "foo"; } buildCounterPayments--; @@ -841,72 +841,72 @@ checkPayments(api.Payments o) { buildCounterPayments++; if (buildCounterPayments < 3) { - checkUnnamed2226(o.items); + checkUnnamed1980(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPayments--; } -buildUnnamed2227() { +buildUnnamed1981() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2227(core.List<core.String> o) { +checkUnnamed1981(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2228() { +buildUnnamed1982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2228(core.List<core.String> o) { +checkUnnamed1982(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2229() { +buildUnnamed1983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2229(core.List<core.String> o) { +checkUnnamed1983(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2230() { +buildUnnamed1984() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2230(core.List<core.String> o) { +checkUnnamed1984(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2231() { +buildUnnamed1985() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2231(core.List<core.String> o) { +checkUnnamed1985(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -917,13 +917,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed2227(); - o.compatibleMetrics = buildUnnamed2228(); + o.compatibleDimensions = buildUnnamed1981(); + o.compatibleMetrics = buildUnnamed1982(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed2229(); - o.requiredMetrics = buildUnnamed2230(); - o.supportedProducts = buildUnnamed2231(); + o.requiredDimensions = buildUnnamed1983(); + o.requiredMetrics = buildUnnamed1984(); + o.supportedProducts = buildUnnamed1985(); } buildCounterReportingMetadataEntry--; return o; @@ -932,13 +932,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed2227(o.compatibleDimensions); - checkUnnamed2228(o.compatibleMetrics); + checkUnnamed1981(o.compatibleDimensions); + checkUnnamed1982(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2229(o.requiredDimensions); - checkUnnamed2230(o.requiredMetrics); - checkUnnamed2231(o.supportedProducts); + checkUnnamed1983(o.requiredDimensions); + checkUnnamed1984(o.requiredMetrics); + checkUnnamed1985(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -968,14 +968,14 @@ buildCounterSavedAdStyle--; } -buildUnnamed2232() { +buildUnnamed1986() { var o = new core.List<api.SavedAdStyle>(); o.add(buildSavedAdStyle()); o.add(buildSavedAdStyle()); return o; } -checkUnnamed2232(core.List<api.SavedAdStyle> o) { +checkUnnamed1986(core.List<api.SavedAdStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedAdStyle(o[0]); checkSavedAdStyle(o[1]); @@ -987,7 +987,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { o.etag = "foo"; - o.items = buildUnnamed2232(); + o.items = buildUnnamed1986(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -999,7 +999,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2232(o.items); + checkUnnamed1986(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1029,14 +1029,14 @@ buildCounterSavedReport--; } -buildUnnamed2233() { +buildUnnamed1987() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed2233(core.List<api.SavedReport> o) { +checkUnnamed1987(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -1048,7 +1048,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed2233(); + o.items = buildUnnamed1987(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1060,7 +1060,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2233(o.items); + checkUnnamed1987(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1090,14 +1090,14 @@ buildCounterUrlChannel--; } -buildUnnamed2234() { +buildUnnamed1988() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed2234(core.List<api.UrlChannel> o) { +checkUnnamed1988(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -1109,7 +1109,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed2234(); + o.items = buildUnnamed1988(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1121,125 +1121,125 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2234(o.items); + checkUnnamed1988(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed2235() { +buildUnnamed1989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2235(core.List<core.String> o) { +checkUnnamed1989(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2236() { +buildUnnamed1990() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2236(core.List<core.String> o) { +checkUnnamed1990(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2237() { +buildUnnamed1991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2237(core.List<core.String> o) { +checkUnnamed1991(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2238() { +buildUnnamed1992() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2238(core.List<core.String> o) { +checkUnnamed1992(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2239() { +buildUnnamed1993() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2239(core.List<core.String> o) { +checkUnnamed1993(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2240() { +buildUnnamed1994() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2240(core.List<core.String> o) { +checkUnnamed1994(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2241() { +buildUnnamed1995() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2241(core.List<core.String> o) { +checkUnnamed1995(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2242() { +buildUnnamed1996() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2242(core.List<core.String> o) { +checkUnnamed1996(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2243() { +buildUnnamed1997() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2243(core.List<core.String> o) { +checkUnnamed1997(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2368,12 +2368,12 @@ var arg_startDate = "foo"; var arg_endDate = "foo"; var arg_currency = "foo"; - var arg_dimension = buildUnnamed2235(); - var arg_filter = buildUnnamed2236(); + var arg_dimension = buildUnnamed1989(); + var arg_filter = buildUnnamed1990(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2237(); - var arg_sort = buildUnnamed2238(); + var arg_metric = buildUnnamed1991(); + var arg_sort = buildUnnamed1992(); var arg_startIndex = 42; var arg_useTimezoneReporting = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -3495,14 +3495,14 @@ api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_accountId = buildUnnamed2239(); + var arg_accountId = buildUnnamed1993(); var arg_currency = "foo"; - var arg_dimension = buildUnnamed2240(); - var arg_filter = buildUnnamed2241(); + var arg_dimension = buildUnnamed1994(); + var arg_filter = buildUnnamed1995(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2242(); - var arg_sort = buildUnnamed2243(); + var arg_metric = buildUnnamed1996(); + var arg_sort = buildUnnamed1997(); var arg_startIndex = 42; var arg_useTimezoneReporting = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/adsensehost/v4_1_test.dart b/generated/googleapis/test/adsensehost/v4_1_test.dart index 4ce5c48..1d411d5 100644 --- a/generated/googleapis/test/adsensehost/v4_1_test.dart +++ b/generated/googleapis/test/adsensehost/v4_1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccount--; } -buildUnnamed3304() { +buildUnnamed3117() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3304(core.List<api.Account> o) { +checkUnnamed3117(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -95,7 +95,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed3304(); + o.items = buildUnnamed3117(); o.kind = "foo"; } buildCounterAccounts--; @@ -106,7 +106,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3304(o.items); + checkUnnamed3117(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounts--; @@ -139,14 +139,14 @@ buildCounterAdClient--; } -buildUnnamed3305() { +buildUnnamed3118() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed3305(core.List<api.AdClient> o) { +checkUnnamed3118(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -158,7 +158,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed3305(); + o.items = buildUnnamed3118(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -170,7 +170,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3305(o.items); + checkUnnamed3118(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -375,14 +375,14 @@ buildCounterAdUnit--; } -buildUnnamed3306() { +buildUnnamed3119() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed3306(core.List<api.AdUnit> o) { +checkUnnamed3119(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -394,7 +394,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed3306(); + o.items = buildUnnamed3119(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,21 +406,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3306(o.items); + checkUnnamed3119(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed3307() { +buildUnnamed3120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3307(core.List<core.String> o) { +checkUnnamed3120(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -434,7 +434,7 @@ o.accountId = "foo"; o.id = "foo"; o.kind = "foo"; - o.productCodes = buildUnnamed3307(); + o.productCodes = buildUnnamed3120(); o.redirectUrl = "foo"; o.status = "foo"; o.userLocale = "foo"; @@ -451,7 +451,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3307(o.productCodes); + checkUnnamed3120(o.productCodes); unittest.expect(o.redirectUrl, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.userLocale, unittest.equals('foo')); @@ -486,14 +486,14 @@ buildCounterCustomChannel--; } -buildUnnamed3308() { +buildUnnamed3121() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed3308(core.List<api.CustomChannel> o) { +checkUnnamed3121(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -505,7 +505,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed3308(); + o.items = buildUnnamed3121(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -517,21 +517,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3308(o.items); + checkUnnamed3121(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed3309() { +buildUnnamed3122() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3309(core.List<core.String> o) { +checkUnnamed3122(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -560,66 +560,66 @@ buildCounterReportHeaders--; } -buildUnnamed3310() { +buildUnnamed3123() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed3310(core.List<api.ReportHeaders> o) { +checkUnnamed3123(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed3311() { +buildUnnamed3124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3311(core.List<core.String> o) { +checkUnnamed3124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3312() { +buildUnnamed3125() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed3311()); - o.add(buildUnnamed3311()); + o.add(buildUnnamed3124()); + o.add(buildUnnamed3124()); return o; } -checkUnnamed3312(core.List<core.List<core.String>> o) { +checkUnnamed3125(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3311(o[0]); - checkUnnamed3311(o[1]); + checkUnnamed3124(o[0]); + checkUnnamed3124(o[1]); } -buildUnnamed3313() { +buildUnnamed3126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3313(core.List<core.String> o) { +checkUnnamed3126(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3314() { +buildUnnamed3127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3314(core.List<core.String> o) { +checkUnnamed3127(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -630,13 +630,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed3309(); - o.headers = buildUnnamed3310(); + o.averages = buildUnnamed3122(); + o.headers = buildUnnamed3123(); o.kind = "foo"; - o.rows = buildUnnamed3312(); + o.rows = buildUnnamed3125(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed3313(); - o.warnings = buildUnnamed3314(); + o.totals = buildUnnamed3126(); + o.warnings = buildUnnamed3127(); } buildCounterReport--; return o; @@ -645,13 +645,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed3309(o.averages); - checkUnnamed3310(o.headers); + checkUnnamed3122(o.averages); + checkUnnamed3123(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3312(o.rows); + checkUnnamed3125(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed3313(o.totals); - checkUnnamed3314(o.warnings); + checkUnnamed3126(o.totals); + checkUnnamed3127(o.warnings); } buildCounterReport--; } @@ -679,14 +679,14 @@ buildCounterUrlChannel--; } -buildUnnamed3315() { +buildUnnamed3128() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed3315(core.List<api.UrlChannel> o) { +checkUnnamed3128(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -698,7 +698,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed3315(); + o.items = buildUnnamed3128(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -710,151 +710,151 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3315(o.items); + checkUnnamed3128(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed3316() { +buildUnnamed3129() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3316(core.List<core.String> o) { +checkUnnamed3129(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3317() { +buildUnnamed3130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3317(core.List<core.String> o) { +checkUnnamed3130(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3318() { +buildUnnamed3131() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3318(core.List<core.String> o) { +checkUnnamed3131(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3319() { +buildUnnamed3132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3319(core.List<core.String> o) { +checkUnnamed3132(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3320() { +buildUnnamed3133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3320(core.List<core.String> o) { +checkUnnamed3133(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3321() { +buildUnnamed3134() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3321(core.List<core.String> o) { +checkUnnamed3134(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3322() { +buildUnnamed3135() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3322(core.List<core.String> o) { +checkUnnamed3135(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3323() { +buildUnnamed3136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3323(core.List<core.String> o) { +checkUnnamed3136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3324() { +buildUnnamed3137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3324(core.List<core.String> o) { +checkUnnamed3137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3325() { +buildUnnamed3138() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3325(core.List<core.String> o) { +checkUnnamed3138(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3326() { +buildUnnamed3139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3326(core.List<core.String> o) { +checkUnnamed3139(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1096,7 +1096,7 @@ var mock = new HttpServerMock(); api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts; - var arg_filterAdClientId = buildUnnamed3316(); + var arg_filterAdClientId = buildUnnamed3129(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1398,7 +1398,7 @@ var arg_accountId = "foo"; var arg_adClientId = "foo"; var arg_adUnitId = "foo"; - var arg_hostCustomChannelId = buildUnnamed3317(); + var arg_hostCustomChannelId = buildUnnamed3130(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1737,12 +1737,12 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed3318(); - var arg_filter = buildUnnamed3319(); + var arg_dimension = buildUnnamed3131(); + var arg_filter = buildUnnamed3132(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3320(); - var arg_sort = buildUnnamed3321(); + var arg_metric = buildUnnamed3133(); + var arg_sort = buildUnnamed3134(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1911,7 +1911,7 @@ var mock = new HttpServerMock(); api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).associationsessions; - var arg_productCode = buildUnnamed3322(); + var arg_productCode = buildUnnamed3135(); var arg_websiteUrl = "foo"; var arg_userLocale = "foo"; var arg_websiteLocale = "foo"; @@ -2365,12 +2365,12 @@ api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed3323(); - var arg_filter = buildUnnamed3324(); + var arg_dimension = buildUnnamed3136(); + var arg_filter = buildUnnamed3137(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3325(); - var arg_sort = buildUnnamed3326(); + var arg_metric = buildUnnamed3138(); + var arg_sort = buildUnnamed3139(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/analytics/v3_test.dart b/generated/googleapis/test/analytics/v3_test.dart index e149a78..39d04e7 100644 --- a/generated/googleapis/test/analytics/v3_test.dart +++ b/generated/googleapis/test/analytics/v3_test.dart
@@ -72,14 +72,14 @@ buildCounterAccountChildLink--; } -buildUnnamed1088() { +buildUnnamed1114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1088(core.List<core.String> o) { +checkUnnamed1114(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -90,7 +90,7 @@ var o = new api.AccountPermissions(); buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - o.effective = buildUnnamed1088(); + o.effective = buildUnnamed1114(); } buildCounterAccountPermissions--; return o; @@ -99,7 +99,7 @@ checkAccountPermissions(api.AccountPermissions o) { buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - checkUnnamed1088(o.effective); + checkUnnamed1114(o.effective); } buildCounterAccountPermissions--; } @@ -164,14 +164,14 @@ buildCounterAccountRef--; } -buildUnnamed1089() { +buildUnnamed1115() { var o = new core.List<api.AccountSummary>(); o.add(buildAccountSummary()); o.add(buildAccountSummary()); return o; } -checkUnnamed1089(core.List<api.AccountSummary> o) { +checkUnnamed1115(core.List<api.AccountSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountSummary(o[0]); checkAccountSummary(o[1]); @@ -182,7 +182,7 @@ var o = new api.AccountSummaries(); buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - o.items = buildUnnamed1089(); + o.items = buildUnnamed1115(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -198,7 +198,7 @@ checkAccountSummaries(api.AccountSummaries o) { buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - checkUnnamed1089(o.items); + checkUnnamed1115(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -210,14 +210,14 @@ buildCounterAccountSummaries--; } -buildUnnamed1090() { +buildUnnamed1116() { var o = new core.List<api.WebPropertySummary>(); o.add(buildWebPropertySummary()); o.add(buildWebPropertySummary()); return o; } -checkUnnamed1090(core.List<api.WebPropertySummary> o) { +checkUnnamed1116(core.List<api.WebPropertySummary> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPropertySummary(o[0]); checkWebPropertySummary(o[1]); @@ -232,7 +232,7 @@ o.kind = "foo"; o.name = "foo"; o.starred = true; - o.webProperties = buildUnnamed1090(); + o.webProperties = buildUnnamed1116(); } buildCounterAccountSummary--; return o; @@ -245,7 +245,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.starred, unittest.isTrue); - checkUnnamed1090(o.webProperties); + checkUnnamed1116(o.webProperties); } buildCounterAccountSummary--; } @@ -279,14 +279,14 @@ buildCounterAccountTicket--; } -buildUnnamed1091() { +buildUnnamed1117() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1091(core.List<api.Account> o) { +checkUnnamed1117(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -297,7 +297,7 @@ var o = new api.Accounts(); buildCounterAccounts++; if (buildCounterAccounts < 3) { - o.items = buildUnnamed1091(); + o.items = buildUnnamed1117(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -313,7 +313,7 @@ checkAccounts(api.Accounts o) { buildCounterAccounts++; if (buildCounterAccounts < 3) { - checkUnnamed1091(o.items); + checkUnnamed1117(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -348,14 +348,14 @@ buildCounterAdWordsAccount--; } -buildUnnamed1092() { +buildUnnamed1118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1092(core.List<core.String> o) { +checkUnnamed1118(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -366,7 +366,7 @@ var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - o.customDataImportUids = buildUnnamed1092(); + o.customDataImportUids = buildUnnamed1118(); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; return o; @@ -375,19 +375,19 @@ checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUploadDataRequest o) { buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - checkUnnamed1092(o.customDataImportUids); + checkUnnamed1118(o.customDataImportUids); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; } -buildUnnamed1093() { +buildUnnamed1119() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1093(core.Map<core.String, core.String> o) { +checkUnnamed1119(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -398,7 +398,7 @@ var o = new api.Column(); buildCounterColumn++; if (buildCounterColumn < 3) { - o.attributes = buildUnnamed1093(); + o.attributes = buildUnnamed1119(); o.id = "foo"; o.kind = "foo"; } @@ -409,34 +409,34 @@ checkColumn(api.Column o) { buildCounterColumn++; if (buildCounterColumn < 3) { - checkUnnamed1093(o.attributes); + checkUnnamed1119(o.attributes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterColumn--; } -buildUnnamed1094() { +buildUnnamed1120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1094(core.List<core.String> o) { +checkUnnamed1120(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1095() { +buildUnnamed1121() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1095(core.List<api.Column> o) { +checkUnnamed1121(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -447,9 +447,9 @@ var o = new api.Columns(); buildCounterColumns++; if (buildCounterColumns < 3) { - o.attributeNames = buildUnnamed1094(); + o.attributeNames = buildUnnamed1120(); o.etag = "foo"; - o.items = buildUnnamed1095(); + o.items = buildUnnamed1121(); o.kind = "foo"; o.totalResults = 42; } @@ -460,9 +460,9 @@ checkColumns(api.Columns o) { buildCounterColumns++; if (buildCounterColumns < 3) { - checkUnnamed1094(o.attributeNames); + checkUnnamed1120(o.attributeNames); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1095(o.items); + checkUnnamed1121(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); } @@ -511,14 +511,14 @@ buildCounterCustomDataSourceParentLink--; } -buildUnnamed1096() { +buildUnnamed1122() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1096(core.List<core.String> o) { +checkUnnamed1122(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -538,7 +538,7 @@ o.kind = "foo"; o.name = "foo"; o.parentLink = buildCustomDataSourceParentLink(); - o.profilesLinked = buildUnnamed1096(); + o.profilesLinked = buildUnnamed1122(); o.selfLink = "foo"; o.type = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -561,7 +561,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkCustomDataSourceParentLink(o.parentLink); - checkUnnamed1096(o.profilesLinked); + checkUnnamed1122(o.profilesLinked); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -571,14 +571,14 @@ buildCounterCustomDataSource--; } -buildUnnamed1097() { +buildUnnamed1123() { var o = new core.List<api.CustomDataSource>(); o.add(buildCustomDataSource()); o.add(buildCustomDataSource()); return o; } -checkUnnamed1097(core.List<api.CustomDataSource> o) { +checkUnnamed1123(core.List<api.CustomDataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDataSource(o[0]); checkCustomDataSource(o[1]); @@ -589,7 +589,7 @@ var o = new api.CustomDataSources(); buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - o.items = buildUnnamed1097(); + o.items = buildUnnamed1123(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -605,7 +605,7 @@ checkCustomDataSources(api.CustomDataSources o) { buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - checkUnnamed1097(o.items); + checkUnnamed1123(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -679,14 +679,14 @@ buildCounterCustomDimension--; } -buildUnnamed1098() { +buildUnnamed1124() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1098(core.List<api.CustomDimension> o) { +checkUnnamed1124(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); @@ -697,7 +697,7 @@ var o = new api.CustomDimensions(); buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - o.items = buildUnnamed1098(); + o.items = buildUnnamed1124(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -713,7 +713,7 @@ checkCustomDimensions(api.CustomDimensions o) { buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - checkUnnamed1098(o.items); + checkUnnamed1124(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -793,14 +793,14 @@ buildCounterCustomMetric--; } -buildUnnamed1099() { +buildUnnamed1125() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1099(core.List<api.CustomMetric> o) { +checkUnnamed1125(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -811,7 +811,7 @@ var o = new api.CustomMetrics(); buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - o.items = buildUnnamed1099(); + o.items = buildUnnamed1125(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -827,7 +827,7 @@ checkCustomMetrics(api.CustomMetrics o) { buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - checkUnnamed1099(o.items); + checkUnnamed1125(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -839,14 +839,14 @@ buildCounterCustomMetrics--; } -buildUnnamed1100() { +buildUnnamed1126() { var o = new core.List<api.AdWordsAccount>(); o.add(buildAdWordsAccount()); o.add(buildAdWordsAccount()); return o; } -checkUnnamed1100(core.List<api.AdWordsAccount> o) { +checkUnnamed1126(core.List<api.AdWordsAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsAccount(o[0]); checkAdWordsAccount(o[1]); @@ -871,14 +871,14 @@ buildCounterEntityAdWordsLinkEntity--; } -buildUnnamed1101() { +buildUnnamed1127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1101(core.List<core.String> o) { +checkUnnamed1127(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -889,12 +889,12 @@ var o = new api.EntityAdWordsLink(); buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - o.adWordsAccounts = buildUnnamed1100(); + o.adWordsAccounts = buildUnnamed1126(); o.entity = buildEntityAdWordsLinkEntity(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.profileIds = buildUnnamed1101(); + o.profileIds = buildUnnamed1127(); o.selfLink = "foo"; } buildCounterEntityAdWordsLink--; @@ -904,25 +904,25 @@ checkEntityAdWordsLink(api.EntityAdWordsLink o) { buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - checkUnnamed1100(o.adWordsAccounts); + checkUnnamed1126(o.adWordsAccounts); checkEntityAdWordsLinkEntity(o.entity); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1101(o.profileIds); + checkUnnamed1127(o.profileIds); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterEntityAdWordsLink--; } -buildUnnamed1102() { +buildUnnamed1128() { var o = new core.List<api.EntityAdWordsLink>(); o.add(buildEntityAdWordsLink()); o.add(buildEntityAdWordsLink()); return o; } -checkUnnamed1102(core.List<api.EntityAdWordsLink> o) { +checkUnnamed1128(core.List<api.EntityAdWordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAdWordsLink(o[0]); checkEntityAdWordsLink(o[1]); @@ -933,7 +933,7 @@ var o = new api.EntityAdWordsLinks(); buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - o.items = buildUnnamed1102(); + o.items = buildUnnamed1128(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -948,7 +948,7 @@ checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - checkUnnamed1102(o.items); + checkUnnamed1128(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -982,27 +982,27 @@ buildCounterEntityUserLinkEntity--; } -buildUnnamed1103() { +buildUnnamed1129() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1103(core.List<core.String> o) { +checkUnnamed1129(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1104() { +buildUnnamed1130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1104(core.List<core.String> o) { +checkUnnamed1130(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1013,8 +1013,8 @@ var o = new api.EntityUserLinkPermissions(); buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - o.effective = buildUnnamed1103(); - o.local = buildUnnamed1104(); + o.effective = buildUnnamed1129(); + o.local = buildUnnamed1130(); } buildCounterEntityUserLinkPermissions--; return o; @@ -1023,8 +1023,8 @@ checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - checkUnnamed1103(o.effective); - checkUnnamed1104(o.local); + checkUnnamed1129(o.effective); + checkUnnamed1130(o.local); } buildCounterEntityUserLinkPermissions--; } @@ -1058,14 +1058,14 @@ buildCounterEntityUserLink--; } -buildUnnamed1105() { +buildUnnamed1131() { var o = new core.List<api.EntityUserLink>(); o.add(buildEntityUserLink()); o.add(buildEntityUserLink()); return o; } -checkUnnamed1105(core.List<api.EntityUserLink> o) { +checkUnnamed1131(core.List<api.EntityUserLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityUserLink(o[0]); checkEntityUserLink(o[1]); @@ -1076,7 +1076,7 @@ var o = new api.EntityUserLinks(); buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - o.items = buildUnnamed1105(); + o.items = buildUnnamed1131(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1091,7 +1091,7 @@ checkEntityUserLinks(api.EntityUserLinks o) { buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - checkUnnamed1105(o.items); + checkUnnamed1131(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1150,14 +1150,14 @@ buildCounterExperimentVariations--; } -buildUnnamed1106() { +buildUnnamed1132() { var o = new core.List<api.ExperimentVariations>(); o.add(buildExperimentVariations()); o.add(buildExperimentVariations()); return o; } -checkUnnamed1106(core.List<api.ExperimentVariations> o) { +checkUnnamed1132(core.List<api.ExperimentVariations> o) { unittest.expect(o, unittest.hasLength(2)); checkExperimentVariations(o[0]); checkExperimentVariations(o[1]); @@ -1192,7 +1192,7 @@ o.status = "foo"; o.trafficCoverage = 42.0; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.variations = buildUnnamed1106(); + o.variations = buildUnnamed1132(); o.webPropertyId = "foo"; o.winnerConfidenceLevel = 42.0; o.winnerFound = true; @@ -1228,7 +1228,7 @@ unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trafficCoverage, unittest.equals(42.0)); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1106(o.variations); + checkUnnamed1132(o.variations); unittest.expect(o.webPropertyId, unittest.equals('foo')); unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); unittest.expect(o.winnerFound, unittest.isTrue); @@ -1236,14 +1236,14 @@ buildCounterExperiment--; } -buildUnnamed1107() { +buildUnnamed1133() { var o = new core.List<api.Experiment>(); o.add(buildExperiment()); o.add(buildExperiment()); return o; } -checkUnnamed1107(core.List<api.Experiment> o) { +checkUnnamed1133(core.List<api.Experiment> o) { unittest.expect(o, unittest.hasLength(2)); checkExperiment(o[0]); checkExperiment(o[1]); @@ -1254,7 +1254,7 @@ var o = new api.Experiments(); buildCounterExperiments++; if (buildCounterExperiments < 3) { - o.items = buildUnnamed1107(); + o.items = buildUnnamed1133(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1270,7 +1270,7 @@ checkExperiments(api.Experiments o) { buildCounterExperiments++; if (buildCounterExperiments < 3) { - checkUnnamed1107(o.items); + checkUnnamed1133(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1518,14 +1518,14 @@ buildCounterFilterRef--; } -buildUnnamed1108() { +buildUnnamed1134() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed1108(core.List<api.Filter> o) { +checkUnnamed1134(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -1536,7 +1536,7 @@ var o = new api.Filters(); buildCounterFilters++; if (buildCounterFilters < 3) { - o.items = buildUnnamed1108(); + o.items = buildUnnamed1134(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1552,7 +1552,7 @@ checkFilters(api.Filters o) { buildCounterFilters++; if (buildCounterFilters < 3) { - checkUnnamed1108(o.items); + checkUnnamed1134(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1587,14 +1587,14 @@ buildCounterGaDataColumnHeaders--; } -buildUnnamed1109() { +buildUnnamed1135() { var o = new core.List<api.GaDataColumnHeaders>(); o.add(buildGaDataColumnHeaders()); o.add(buildGaDataColumnHeaders()); return o; } -checkUnnamed1109(core.List<api.GaDataColumnHeaders> o) { +checkUnnamed1135(core.List<api.GaDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataColumnHeaders(o[0]); checkGaDataColumnHeaders(o[1]); @@ -1623,14 +1623,14 @@ buildCounterGaDataDataTableCols--; } -buildUnnamed1110() { +buildUnnamed1136() { var o = new core.List<api.GaDataDataTableCols>(); o.add(buildGaDataDataTableCols()); o.add(buildGaDataDataTableCols()); return o; } -checkUnnamed1110(core.List<api.GaDataDataTableCols> o) { +checkUnnamed1136(core.List<api.GaDataDataTableCols> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableCols(o[0]); checkGaDataDataTableCols(o[1]); @@ -1655,14 +1655,14 @@ buildCounterGaDataDataTableRowsC--; } -buildUnnamed1111() { +buildUnnamed1137() { var o = new core.List<api.GaDataDataTableRowsC>(); o.add(buildGaDataDataTableRowsC()); o.add(buildGaDataDataTableRowsC()); return o; } -checkUnnamed1111(core.List<api.GaDataDataTableRowsC> o) { +checkUnnamed1137(core.List<api.GaDataDataTableRowsC> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRowsC(o[0]); checkGaDataDataTableRowsC(o[1]); @@ -1673,7 +1673,7 @@ var o = new api.GaDataDataTableRows(); buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - o.c = buildUnnamed1111(); + o.c = buildUnnamed1137(); } buildCounterGaDataDataTableRows--; return o; @@ -1682,19 +1682,19 @@ checkGaDataDataTableRows(api.GaDataDataTableRows o) { buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - checkUnnamed1111(o.c); + checkUnnamed1137(o.c); } buildCounterGaDataDataTableRows--; } -buildUnnamed1112() { +buildUnnamed1138() { var o = new core.List<api.GaDataDataTableRows>(); o.add(buildGaDataDataTableRows()); o.add(buildGaDataDataTableRows()); return o; } -checkUnnamed1112(core.List<api.GaDataDataTableRows> o) { +checkUnnamed1138(core.List<api.GaDataDataTableRows> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRows(o[0]); checkGaDataDataTableRows(o[1]); @@ -1705,8 +1705,8 @@ var o = new api.GaDataDataTable(); buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - o.cols = buildUnnamed1110(); - o.rows = buildUnnamed1112(); + o.cols = buildUnnamed1136(); + o.rows = buildUnnamed1138(); } buildCounterGaDataDataTable--; return o; @@ -1715,8 +1715,8 @@ checkGaDataDataTable(api.GaDataDataTable o) { buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - checkUnnamed1110(o.cols); - checkUnnamed1112(o.rows); + checkUnnamed1136(o.cols); + checkUnnamed1138(o.rows); } buildCounterGaDataDataTable--; } @@ -1750,27 +1750,27 @@ buildCounterGaDataProfileInfo--; } -buildUnnamed1113() { +buildUnnamed1139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1113(core.List<core.String> o) { +checkUnnamed1139(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1114() { +buildUnnamed1140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1114(core.List<core.String> o) { +checkUnnamed1140(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1786,10 +1786,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1113(); + o.metrics = buildUnnamed1139(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1114(); + o.sort = buildUnnamed1140(); o.start_date = "foo"; o.start_index = 42; } @@ -1805,50 +1805,50 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1113(o.metrics); + checkUnnamed1139(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1114(o.sort); + checkUnnamed1140(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } buildCounterGaDataQuery--; } -buildUnnamed1115() { +buildUnnamed1141() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1115(core.List<core.String> o) { +checkUnnamed1141(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1116() { +buildUnnamed1142() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1115()); - o.add(buildUnnamed1115()); + o.add(buildUnnamed1141()); + o.add(buildUnnamed1141()); return o; } -checkUnnamed1116(core.List<core.List<core.String>> o) { +checkUnnamed1142(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1115(o[0]); - checkUnnamed1115(o[1]); + checkUnnamed1141(o[0]); + checkUnnamed1141(o[1]); } -buildUnnamed1117() { +buildUnnamed1143() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1117(core.Map<core.String, core.String> o) { +checkUnnamed1143(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1859,8 +1859,9 @@ var o = new api.GaData(); buildCounterGaData++; if (buildCounterGaData < 3) { - o.columnHeaders = buildUnnamed1109(); + o.columnHeaders = buildUnnamed1135(); o.containsSampledData = true; + o.dataLastRefreshed = "foo"; o.dataTable = buildGaDataDataTable(); o.id = "foo"; o.itemsPerPage = 42; @@ -1869,12 +1870,12 @@ o.previousLink = "foo"; o.profileInfo = buildGaDataProfileInfo(); o.query = buildGaDataQuery(); - o.rows = buildUnnamed1116(); + o.rows = buildUnnamed1142(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1117(); + o.totalsForAllResults = buildUnnamed1143(); } buildCounterGaData--; return o; @@ -1883,8 +1884,9 @@ checkGaData(api.GaData o) { buildCounterGaData++; if (buildCounterGaData < 3) { - checkUnnamed1109(o.columnHeaders); + checkUnnamed1135(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); + unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); checkGaDataDataTable(o.dataTable); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -1893,12 +1895,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkGaDataProfileInfo(o.profileInfo); checkGaDataQuery(o.query); - checkUnnamed1116(o.rows); + checkUnnamed1142(o.rows); unittest.expect(o.sampleSize, unittest.equals('foo')); unittest.expect(o.sampleSpace, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1117(o.totalsForAllResults); + checkUnnamed1143(o.totalsForAllResults); } buildCounterGaData--; } @@ -1930,14 +1932,14 @@ buildCounterGoalEventDetailsEventConditions--; } -buildUnnamed1118() { +buildUnnamed1144() { var o = new core.List<api.GoalEventDetailsEventConditions>(); o.add(buildGoalEventDetailsEventConditions()); o.add(buildGoalEventDetailsEventConditions()); return o; } -checkUnnamed1118(core.List<api.GoalEventDetailsEventConditions> o) { +checkUnnamed1144(core.List<api.GoalEventDetailsEventConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalEventDetailsEventConditions(o[0]); checkGoalEventDetailsEventConditions(o[1]); @@ -1948,7 +1950,7 @@ var o = new api.GoalEventDetails(); buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - o.eventConditions = buildUnnamed1118(); + o.eventConditions = buildUnnamed1144(); o.useEventValue = true; } buildCounterGoalEventDetails--; @@ -1958,7 +1960,7 @@ checkGoalEventDetails(api.GoalEventDetails o) { buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - checkUnnamed1118(o.eventConditions); + checkUnnamed1144(o.eventConditions); unittest.expect(o.useEventValue, unittest.isTrue); } buildCounterGoalEventDetails--; @@ -2008,14 +2010,14 @@ buildCounterGoalUrlDestinationDetailsSteps--; } -buildUnnamed1119() { +buildUnnamed1145() { var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); o.add(buildGoalUrlDestinationDetailsSteps()); o.add(buildGoalUrlDestinationDetailsSteps()); return o; } -checkUnnamed1119(core.List<api.GoalUrlDestinationDetailsSteps> o) { +checkUnnamed1145(core.List<api.GoalUrlDestinationDetailsSteps> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalUrlDestinationDetailsSteps(o[0]); checkGoalUrlDestinationDetailsSteps(o[1]); @@ -2029,7 +2031,7 @@ o.caseSensitive = true; o.firstStepRequired = true; o.matchType = "foo"; - o.steps = buildUnnamed1119(); + o.steps = buildUnnamed1145(); o.url = "foo"; } buildCounterGoalUrlDestinationDetails--; @@ -2042,7 +2044,7 @@ unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.firstStepRequired, unittest.isTrue); unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed1119(o.steps); + checkUnnamed1145(o.steps); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoalUrlDestinationDetails--; @@ -2143,14 +2145,14 @@ buildCounterGoal--; } -buildUnnamed1120() { +buildUnnamed1146() { var o = new core.List<api.Goal>(); o.add(buildGoal()); o.add(buildGoal()); return o; } -checkUnnamed1120(core.List<api.Goal> o) { +checkUnnamed1146(core.List<api.Goal> o) { unittest.expect(o, unittest.hasLength(2)); checkGoal(o[0]); checkGoal(o[1]); @@ -2161,7 +2163,7 @@ var o = new api.Goals(); buildCounterGoals++; if (buildCounterGoals < 3) { - o.items = buildUnnamed1120(); + o.items = buildUnnamed1146(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2177,7 +2179,7 @@ checkGoals(api.Goals o) { buildCounterGoals++; if (buildCounterGoals < 3) { - checkUnnamed1120(o.items); + checkUnnamed1146(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2276,14 +2278,14 @@ buildCounterMcfDataColumnHeaders--; } -buildUnnamed1121() { +buildUnnamed1147() { var o = new core.List<api.McfDataColumnHeaders>(); o.add(buildMcfDataColumnHeaders()); o.add(buildMcfDataColumnHeaders()); return o; } -checkUnnamed1121(core.List<api.McfDataColumnHeaders> o) { +checkUnnamed1147(core.List<api.McfDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataColumnHeaders(o[0]); checkMcfDataColumnHeaders(o[1]); @@ -2318,27 +2320,27 @@ buildCounterMcfDataProfileInfo--; } -buildUnnamed1122() { +buildUnnamed1148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1122(core.List<core.String> o) { +checkUnnamed1148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1123() { +buildUnnamed1149() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1123(core.List<core.String> o) { +checkUnnamed1149(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2354,10 +2356,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1122(); + o.metrics = buildUnnamed1148(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1123(); + o.sort = buildUnnamed1149(); o.start_date = "foo"; o.start_index = 42; } @@ -2373,10 +2375,10 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1122(o.metrics); + checkUnnamed1148(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1123(o.sort); + checkUnnamed1149(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } @@ -2404,14 +2406,14 @@ buildCounterMcfDataRowsConversionPathValue--; } -buildUnnamed1124() { +buildUnnamed1150() { var o = new core.List<api.McfDataRowsConversionPathValue>(); o.add(buildMcfDataRowsConversionPathValue()); o.add(buildMcfDataRowsConversionPathValue()); return o; } -checkUnnamed1124(core.List<api.McfDataRowsConversionPathValue> o) { +checkUnnamed1150(core.List<api.McfDataRowsConversionPathValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRowsConversionPathValue(o[0]); checkMcfDataRowsConversionPathValue(o[1]); @@ -2422,7 +2424,7 @@ var o = new api.McfDataRows(); buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - o.conversionPathValue = buildUnnamed1124(); + o.conversionPathValue = buildUnnamed1150(); o.primitiveValue = "foo"; } buildCounterMcfDataRows--; @@ -2432,46 +2434,46 @@ checkMcfDataRows(api.McfDataRows o) { buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - checkUnnamed1124(o.conversionPathValue); + checkUnnamed1150(o.conversionPathValue); unittest.expect(o.primitiveValue, unittest.equals('foo')); } buildCounterMcfDataRows--; } -buildUnnamed1125() { +buildUnnamed1151() { var o = new core.List<api.McfDataRows>(); o.add(buildMcfDataRows()); o.add(buildMcfDataRows()); return o; } -checkUnnamed1125(core.List<api.McfDataRows> o) { +checkUnnamed1151(core.List<api.McfDataRows> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRows(o[0]); checkMcfDataRows(o[1]); } -buildUnnamed1126() { +buildUnnamed1152() { var o = new core.List<core.List<api.McfDataRows>>(); - o.add(buildUnnamed1125()); - o.add(buildUnnamed1125()); + o.add(buildUnnamed1151()); + o.add(buildUnnamed1151()); return o; } -checkUnnamed1126(core.List<core.List<api.McfDataRows>> o) { +checkUnnamed1152(core.List<core.List<api.McfDataRows>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1125(o[0]); - checkUnnamed1125(o[1]); + checkUnnamed1151(o[0]); + checkUnnamed1151(o[1]); } -buildUnnamed1127() { +buildUnnamed1153() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1127(core.Map<core.String, core.String> o) { +checkUnnamed1153(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2482,7 +2484,7 @@ var o = new api.McfData(); buildCounterMcfData++; if (buildCounterMcfData < 3) { - o.columnHeaders = buildUnnamed1121(); + o.columnHeaders = buildUnnamed1147(); o.containsSampledData = true; o.id = "foo"; o.itemsPerPage = 42; @@ -2491,12 +2493,12 @@ o.previousLink = "foo"; o.profileInfo = buildMcfDataProfileInfo(); o.query = buildMcfDataQuery(); - o.rows = buildUnnamed1126(); + o.rows = buildUnnamed1152(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1127(); + o.totalsForAllResults = buildUnnamed1153(); } buildCounterMcfData--; return o; @@ -2505,7 +2507,7 @@ checkMcfData(api.McfData o) { buildCounterMcfData++; if (buildCounterMcfData < 3) { - checkUnnamed1121(o.columnHeaders); + checkUnnamed1147(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -2514,12 +2516,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkMcfDataProfileInfo(o.profileInfo); checkMcfDataQuery(o.query); - checkUnnamed1126(o.rows); + checkUnnamed1152(o.rows); unittest.expect(o.sampleSize, unittest.equals('foo')); unittest.expect(o.sampleSpace, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1127(o.totalsForAllResults); + checkUnnamed1153(o.totalsForAllResults); } buildCounterMcfData--; } @@ -2566,14 +2568,14 @@ buildCounterProfileParentLink--; } -buildUnnamed1128() { +buildUnnamed1154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1128(core.List<core.String> o) { +checkUnnamed1154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2584,7 +2586,7 @@ var o = new api.ProfilePermissions(); buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - o.effective = buildUnnamed1128(); + o.effective = buildUnnamed1154(); } buildCounterProfilePermissions--; return o; @@ -2593,7 +2595,7 @@ checkProfilePermissions(api.ProfilePermissions o) { buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - checkUnnamed1128(o.effective); + checkUnnamed1154(o.effective); } buildCounterProfilePermissions--; } @@ -2696,14 +2698,14 @@ buildCounterProfileFilterLink--; } -buildUnnamed1129() { +buildUnnamed1155() { var o = new core.List<api.ProfileFilterLink>(); o.add(buildProfileFilterLink()); o.add(buildProfileFilterLink()); return o; } -checkUnnamed1129(core.List<api.ProfileFilterLink> o) { +checkUnnamed1155(core.List<api.ProfileFilterLink> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileFilterLink(o[0]); checkProfileFilterLink(o[1]); @@ -2714,7 +2716,7 @@ var o = new api.ProfileFilterLinks(); buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - o.items = buildUnnamed1129(); + o.items = buildUnnamed1155(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2730,7 +2732,7 @@ checkProfileFilterLinks(api.ProfileFilterLinks o) { buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - checkUnnamed1129(o.items); + checkUnnamed1155(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2800,14 +2802,14 @@ buildCounterProfileSummary--; } -buildUnnamed1130() { +buildUnnamed1156() { var o = new core.List<api.Profile>(); o.add(buildProfile()); o.add(buildProfile()); return o; } -checkUnnamed1130(core.List<api.Profile> o) { +checkUnnamed1156(core.List<api.Profile> o) { unittest.expect(o, unittest.hasLength(2)); checkProfile(o[0]); checkProfile(o[1]); @@ -2818,7 +2820,7 @@ var o = new api.Profiles(); buildCounterProfiles++; if (buildCounterProfiles < 3) { - o.items = buildUnnamed1130(); + o.items = buildUnnamed1156(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2834,7 +2836,7 @@ checkProfiles(api.Profiles o) { buildCounterProfiles++; if (buildCounterProfiles < 3) { - checkUnnamed1130(o.items); + checkUnnamed1156(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2869,14 +2871,14 @@ buildCounterRealtimeDataColumnHeaders--; } -buildUnnamed1131() { +buildUnnamed1157() { var o = new core.List<api.RealtimeDataColumnHeaders>(); o.add(buildRealtimeDataColumnHeaders()); o.add(buildRealtimeDataColumnHeaders()); return o; } -checkUnnamed1131(core.List<api.RealtimeDataColumnHeaders> o) { +checkUnnamed1157(core.List<api.RealtimeDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkRealtimeDataColumnHeaders(o[0]); checkRealtimeDataColumnHeaders(o[1]); @@ -2911,27 +2913,27 @@ buildCounterRealtimeDataProfileInfo--; } -buildUnnamed1132() { +buildUnnamed1158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1132(core.List<core.String> o) { +checkUnnamed1158(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1133() { +buildUnnamed1159() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1133(core.List<core.String> o) { +checkUnnamed1159(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2946,8 +2948,8 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1132(); - o.sort = buildUnnamed1133(); + o.metrics = buildUnnamed1158(); + o.sort = buildUnnamed1159(); } buildCounterRealtimeDataQuery--; return o; @@ -2960,46 +2962,46 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1132(o.metrics); - checkUnnamed1133(o.sort); + checkUnnamed1158(o.metrics); + checkUnnamed1159(o.sort); } buildCounterRealtimeDataQuery--; } -buildUnnamed1134() { +buildUnnamed1160() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1134(core.List<core.String> o) { +checkUnnamed1160(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1135() { +buildUnnamed1161() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1134()); - o.add(buildUnnamed1134()); + o.add(buildUnnamed1160()); + o.add(buildUnnamed1160()); return o; } -checkUnnamed1135(core.List<core.List<core.String>> o) { +checkUnnamed1161(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1134(o[0]); - checkUnnamed1134(o[1]); + checkUnnamed1160(o[0]); + checkUnnamed1160(o[1]); } -buildUnnamed1136() { +buildUnnamed1162() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1136(core.Map<core.String, core.String> o) { +checkUnnamed1162(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3010,15 +3012,15 @@ var o = new api.RealtimeData(); buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - o.columnHeaders = buildUnnamed1131(); + o.columnHeaders = buildUnnamed1157(); o.id = "foo"; o.kind = "foo"; o.profileInfo = buildRealtimeDataProfileInfo(); o.query = buildRealtimeDataQuery(); - o.rows = buildUnnamed1135(); + o.rows = buildUnnamed1161(); o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1136(); + o.totalsForAllResults = buildUnnamed1162(); } buildCounterRealtimeData--; return o; @@ -3027,15 +3029,15 @@ checkRealtimeData(api.RealtimeData o) { buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - checkUnnamed1131(o.columnHeaders); + checkUnnamed1157(o.columnHeaders); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRealtimeDataProfileInfo(o.profileInfo); checkRealtimeDataQuery(o.query); - checkUnnamed1135(o.rows); + checkUnnamed1161(o.rows); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1136(o.totalsForAllResults); + checkUnnamed1162(o.totalsForAllResults); } buildCounterRealtimeData--; } @@ -3059,27 +3061,27 @@ buildCounterRemarketingAudienceAudienceDefinition--; } -buildUnnamed1137() { +buildUnnamed1163() { var o = new core.List<api.LinkedForeignAccount>(); o.add(buildLinkedForeignAccount()); o.add(buildLinkedForeignAccount()); return o; } -checkUnnamed1137(core.List<api.LinkedForeignAccount> o) { +checkUnnamed1163(core.List<api.LinkedForeignAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedForeignAccount(o[0]); checkLinkedForeignAccount(o[1]); } -buildUnnamed1138() { +buildUnnamed1164() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1138(core.List<core.String> o) { +checkUnnamed1164(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3140,8 +3142,8 @@ o.id = "foo"; o.internalWebPropertyId = "foo"; o.kind = "foo"; - o.linkedAdAccounts = buildUnnamed1137(); - o.linkedViews = buildUnnamed1138(); + o.linkedAdAccounts = buildUnnamed1163(); + o.linkedViews = buildUnnamed1164(); o.name = "foo"; o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceDefinition(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -3162,8 +3164,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1137(o.linkedAdAccounts); - checkUnnamed1138(o.linkedViews); + checkUnnamed1163(o.linkedAdAccounts); + checkUnnamed1164(o.linkedViews); unittest.expect(o.name, unittest.equals('foo')); checkRemarketingAudienceStateBasedAudienceDefinition(o.stateBasedAudienceDefinition); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3172,14 +3174,14 @@ buildCounterRemarketingAudience--; } -buildUnnamed1139() { +buildUnnamed1165() { var o = new core.List<api.RemarketingAudience>(); o.add(buildRemarketingAudience()); o.add(buildRemarketingAudience()); return o; } -checkUnnamed1139(core.List<api.RemarketingAudience> o) { +checkUnnamed1165(core.List<api.RemarketingAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingAudience(o[0]); checkRemarketingAudience(o[1]); @@ -3190,7 +3192,7 @@ var o = new api.RemarketingAudiences(); buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - o.items = buildUnnamed1139(); + o.items = buildUnnamed1165(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3206,7 +3208,7 @@ checkRemarketingAudiences(api.RemarketingAudiences o) { buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - checkUnnamed1139(o.items); + checkUnnamed1165(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3253,14 +3255,14 @@ buildCounterSegment--; } -buildUnnamed1140() { +buildUnnamed1166() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed1140(core.List<api.Segment> o) { +checkUnnamed1166(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -3271,7 +3273,7 @@ var o = new api.Segments(); buildCounterSegments++; if (buildCounterSegments < 3) { - o.items = buildUnnamed1140(); + o.items = buildUnnamed1166(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3287,7 +3289,7 @@ checkSegments(api.Segments o) { buildCounterSegments++; if (buildCounterSegments < 3) { - checkUnnamed1140(o.items); + checkUnnamed1166(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3394,14 +3396,14 @@ buildCounterUnsampledReport--; } -buildUnnamed1141() { +buildUnnamed1167() { var o = new core.List<api.UnsampledReport>(); o.add(buildUnsampledReport()); o.add(buildUnsampledReport()); return o; } -checkUnnamed1141(core.List<api.UnsampledReport> o) { +checkUnnamed1167(core.List<api.UnsampledReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUnsampledReport(o[0]); checkUnsampledReport(o[1]); @@ -3412,7 +3414,7 @@ var o = new api.UnsampledReports(); buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - o.items = buildUnnamed1141(); + o.items = buildUnnamed1167(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3428,7 +3430,7 @@ checkUnsampledReports(api.UnsampledReports o) { buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - checkUnnamed1141(o.items); + checkUnnamed1167(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3440,14 +3442,14 @@ buildCounterUnsampledReports--; } -buildUnnamed1142() { +buildUnnamed1168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1142(core.List<core.String> o) { +checkUnnamed1168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3460,7 +3462,7 @@ if (buildCounterUpload < 3) { o.accountId = "foo"; o.customDataSourceId = "foo"; - o.errors = buildUnnamed1142(); + o.errors = buildUnnamed1168(); o.id = "foo"; o.kind = "foo"; o.status = "foo"; @@ -3474,7 +3476,7 @@ if (buildCounterUpload < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.customDataSourceId, unittest.equals('foo')); - checkUnnamed1142(o.errors); + checkUnnamed1168(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -3482,14 +3484,14 @@ buildCounterUpload--; } -buildUnnamed1143() { +buildUnnamed1169() { var o = new core.List<api.Upload>(); o.add(buildUpload()); o.add(buildUpload()); return o; } -checkUnnamed1143(core.List<api.Upload> o) { +checkUnnamed1169(core.List<api.Upload> o) { unittest.expect(o, unittest.hasLength(2)); checkUpload(o[0]); checkUpload(o[1]); @@ -3500,7 +3502,7 @@ var o = new api.Uploads(); buildCounterUploads++; if (buildCounterUploads < 3) { - o.items = buildUnnamed1143(); + o.items = buildUnnamed1169(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3515,7 +3517,7 @@ checkUploads(api.Uploads o) { buildCounterUploads++; if (buildCounterUploads < 3) { - checkUnnamed1143(o.items); + checkUnnamed1169(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3578,14 +3580,14 @@ buildCounterWebPropertyRef--; } -buildUnnamed1144() { +buildUnnamed1170() { var o = new core.List<api.ProfileSummary>(); o.add(buildProfileSummary()); o.add(buildProfileSummary()); return o; } -checkUnnamed1144(core.List<api.ProfileSummary> o) { +checkUnnamed1170(core.List<api.ProfileSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileSummary(o[0]); checkProfileSummary(o[1]); @@ -3601,7 +3603,7 @@ o.kind = "foo"; o.level = "foo"; o.name = "foo"; - o.profiles = buildUnnamed1144(); + o.profiles = buildUnnamed1170(); o.starred = true; o.websiteUrl = "foo"; } @@ -3617,21 +3619,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1144(o.profiles); + checkUnnamed1170(o.profiles); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterWebPropertySummary--; } -buildUnnamed1145() { +buildUnnamed1171() { var o = new core.List<api.Webproperty>(); o.add(buildWebproperty()); o.add(buildWebproperty()); return o; } -checkUnnamed1145(core.List<api.Webproperty> o) { +checkUnnamed1171(core.List<api.Webproperty> o) { unittest.expect(o, unittest.hasLength(2)); checkWebproperty(o[0]); checkWebproperty(o[1]); @@ -3642,7 +3644,7 @@ var o = new api.Webproperties(); buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - o.items = buildUnnamed1145(); + o.items = buildUnnamed1171(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3658,7 +3660,7 @@ checkWebproperties(api.Webproperties o) { buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - checkUnnamed1145(o.items); + checkUnnamed1171(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3712,14 +3714,14 @@ buildCounterWebpropertyParentLink--; } -buildUnnamed1146() { +buildUnnamed1172() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1146(core.List<core.String> o) { +checkUnnamed1172(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3730,7 +3732,7 @@ var o = new api.WebpropertyPermissions(); buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - o.effective = buildUnnamed1146(); + o.effective = buildUnnamed1172(); } buildCounterWebpropertyPermissions--; return o; @@ -3739,7 +3741,7 @@ checkWebpropertyPermissions(api.WebpropertyPermissions o) { buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - checkUnnamed1146(o.effective); + checkUnnamed1172(o.effective); } buildCounterWebpropertyPermissions--; }
diff --git a/generated/googleapis/test/androidenterprise/v1_test.dart b/generated/googleapis/test/androidenterprise/v1_test.dart index 77b2dfd..aa7f8ed 100644 --- a/generated/googleapis/test/androidenterprise/v1_test.dart +++ b/generated/googleapis/test/androidenterprise/v1_test.dart
@@ -70,14 +70,71 @@ buildCounterAdministrator--; } -buildUnnamed2372() { +core.int buildCounterAdministratorWebToken = 0; +buildAdministratorWebToken() { + var o = new api.AdministratorWebToken(); + buildCounterAdministratorWebToken++; + if (buildCounterAdministratorWebToken < 3) { + o.kind = "foo"; + o.token = "foo"; + } + buildCounterAdministratorWebToken--; + return o; +} + +checkAdministratorWebToken(api.AdministratorWebToken o) { + buildCounterAdministratorWebToken++; + if (buildCounterAdministratorWebToken < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.token, unittest.equals('foo')); + } + buildCounterAdministratorWebToken--; +} + +buildUnnamed2134() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2134(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterAdministratorWebTokenSpec = 0; +buildAdministratorWebTokenSpec() { + var o = new api.AdministratorWebTokenSpec(); + buildCounterAdministratorWebTokenSpec++; + if (buildCounterAdministratorWebTokenSpec < 3) { + o.kind = "foo"; + o.parent = "foo"; + o.permission = buildUnnamed2134(); + } + buildCounterAdministratorWebTokenSpec--; + return o; +} + +checkAdministratorWebTokenSpec(api.AdministratorWebTokenSpec o) { + buildCounterAdministratorWebTokenSpec++; + if (buildCounterAdministratorWebTokenSpec < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.parent, unittest.equals('foo')); + checkUnnamed2134(o.permission); + } + buildCounterAdministratorWebTokenSpec--; +} + +buildUnnamed2135() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2372(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2135(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -89,7 +146,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { o.kind = "foo"; - o.restrictions = buildUnnamed2372(); + o.restrictions = buildUnnamed2135(); } buildCounterAppRestrictionsSchema--; return o; @@ -99,7 +156,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2372(o.restrictions); + checkUnnamed2135(o.restrictions); } buildCounterAppRestrictionsSchema--; } @@ -123,40 +180,40 @@ buildCounterAppRestrictionsSchemaChangeEvent--; } -buildUnnamed2373() { +buildUnnamed2136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2373(core.List<core.String> o) { +checkUnnamed2136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2374() { +buildUnnamed2137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2374(core.List<core.String> o) { +checkUnnamed2137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2375() { +buildUnnamed2138() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2375(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2138(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -169,10 +226,10 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); o.description = "foo"; - o.entry = buildUnnamed2373(); - o.entryValue = buildUnnamed2374(); + o.entry = buildUnnamed2136(); + o.entryValue = buildUnnamed2137(); o.key = "foo"; - o.nestedRestriction = buildUnnamed2375(); + o.nestedRestriction = buildUnnamed2138(); o.restrictionType = "foo"; o.title = "foo"; } @@ -185,24 +242,24 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2373(o.entry); - checkUnnamed2374(o.entryValue); + checkUnnamed2136(o.entry); + checkUnnamed2137(o.entryValue); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2375(o.nestedRestriction); + checkUnnamed2138(o.nestedRestriction); unittest.expect(o.restrictionType, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestriction--; } -buildUnnamed2376() { +buildUnnamed2139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2376(core.List<core.String> o) { +checkUnnamed2139(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -216,7 +273,7 @@ o.type = "foo"; o.valueBool = true; o.valueInteger = 42; - o.valueMultiselect = buildUnnamed2376(); + o.valueMultiselect = buildUnnamed2139(); o.valueString = "foo"; } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -229,7 +286,7 @@ unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); unittest.expect(o.valueInteger, unittest.equals(42)); - checkUnnamed2376(o.valueMultiselect); + checkUnnamed2139(o.valueMultiselect); unittest.expect(o.valueString, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -317,14 +374,14 @@ buildCounterAuthenticationToken--; } -buildUnnamed2377() { +buildUnnamed2140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2377(core.List<core.String> o) { +checkUnnamed2140(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -338,7 +395,7 @@ o.collectionId = "foo"; o.kind = "foo"; o.name = "foo"; - o.productId = buildUnnamed2377(); + o.productId = buildUnnamed2140(); o.visibility = "foo"; } buildCounterCollection--; @@ -351,20 +408,20 @@ unittest.expect(o.collectionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2377(o.productId); + checkUnnamed2140(o.productId); unittest.expect(o.visibility, unittest.equals('foo')); } buildCounterCollection--; } -buildUnnamed2378() { +buildUnnamed2141() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2378(core.List<api.User> o) { +checkUnnamed2141(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -376,7 +433,7 @@ buildCounterCollectionViewersListResponse++; if (buildCounterCollectionViewersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2378(); + o.user = buildUnnamed2141(); } buildCounterCollectionViewersListResponse--; return o; @@ -386,19 +443,19 @@ buildCounterCollectionViewersListResponse++; if (buildCounterCollectionViewersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2378(o.user); + checkUnnamed2141(o.user); } buildCounterCollectionViewersListResponse--; } -buildUnnamed2379() { +buildUnnamed2142() { var o = new core.List<api.Collection>(); o.add(buildCollection()); o.add(buildCollection()); return o; } -checkUnnamed2379(core.List<api.Collection> o) { +checkUnnamed2142(core.List<api.Collection> o) { unittest.expect(o, unittest.hasLength(2)); checkCollection(o[0]); checkCollection(o[1]); @@ -409,7 +466,7 @@ var o = new api.CollectionsListResponse(); buildCounterCollectionsListResponse++; if (buildCounterCollectionsListResponse < 3) { - o.collection = buildUnnamed2379(); + o.collection = buildUnnamed2142(); o.kind = "foo"; } buildCounterCollectionsListResponse--; @@ -419,7 +476,7 @@ checkCollectionsListResponse(api.CollectionsListResponse o) { buildCounterCollectionsListResponse++; if (buildCounterCollectionsListResponse < 3) { - checkUnnamed2379(o.collection); + checkUnnamed2142(o.collection); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCollectionsListResponse--; @@ -469,14 +526,14 @@ buildCounterDeviceState--; } -buildUnnamed2380() { +buildUnnamed2143() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2380(core.List<api.Device> o) { +checkUnnamed2143(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -487,7 +544,7 @@ var o = new api.DevicesListResponse(); buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - o.device = buildUnnamed2380(); + o.device = buildUnnamed2143(); o.kind = "foo"; } buildCounterDevicesListResponse--; @@ -497,20 +554,20 @@ checkDevicesListResponse(api.DevicesListResponse o) { buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - checkUnnamed2380(o.device); + checkUnnamed2143(o.device); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDevicesListResponse--; } -buildUnnamed2381() { +buildUnnamed2144() { var o = new core.List<api.Administrator>(); o.add(buildAdministrator()); o.add(buildAdministrator()); return o; } -checkUnnamed2381(core.List<api.Administrator> o) { +checkUnnamed2144(core.List<api.Administrator> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrator(o[0]); checkAdministrator(o[1]); @@ -521,7 +578,7 @@ var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - o.administrator = buildUnnamed2381(); + o.administrator = buildUnnamed2144(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -534,7 +591,7 @@ checkEnterprise(api.Enterprise o) { buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - checkUnnamed2381(o.administrator); + checkUnnamed2144(o.administrator); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -564,14 +621,14 @@ buildCounterEnterpriseAccount--; } -buildUnnamed2382() { +buildUnnamed2145() { var o = new core.List<api.Enterprise>(); o.add(buildEnterprise()); o.add(buildEnterprise()); return o; } -checkUnnamed2382(core.List<api.Enterprise> o) { +checkUnnamed2145(core.List<api.Enterprise> o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -582,7 +639,7 @@ var o = new api.EnterprisesListResponse(); buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - o.enterprise = buildUnnamed2382(); + o.enterprise = buildUnnamed2145(); o.kind = "foo"; } buildCounterEnterprisesListResponse--; @@ -592,7 +649,7 @@ checkEnterprisesListResponse(api.EnterprisesListResponse o) { buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - checkUnnamed2382(o.enterprise); + checkUnnamed2145(o.enterprise); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEnterprisesListResponse--; @@ -642,14 +699,14 @@ buildCounterEntitlement--; } -buildUnnamed2383() { +buildUnnamed2146() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2383(core.List<api.Entitlement> o) { +checkUnnamed2146(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -660,7 +717,7 @@ var o = new api.EntitlementsListResponse(); buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - o.entitlement = buildUnnamed2383(); + o.entitlement = buildUnnamed2146(); o.kind = "foo"; } buildCounterEntitlementsListResponse--; @@ -670,7 +727,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) { buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - checkUnnamed2383(o.entitlement); + checkUnnamed2146(o.entitlement); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEntitlementsListResponse--; @@ -705,14 +762,14 @@ buildCounterGroupLicense--; } -buildUnnamed2384() { +buildUnnamed2147() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2384(core.List<api.User> o) { +checkUnnamed2147(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -724,7 +781,7 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2384(); + o.user = buildUnnamed2147(); } buildCounterGroupLicenseUsersListResponse--; return o; @@ -734,19 +791,19 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2384(o.user); + checkUnnamed2147(o.user); } buildCounterGroupLicenseUsersListResponse--; } -buildUnnamed2385() { +buildUnnamed2148() { var o = new core.List<api.GroupLicense>(); o.add(buildGroupLicense()); o.add(buildGroupLicense()); return o; } -checkUnnamed2385(core.List<api.GroupLicense> o) { +checkUnnamed2148(core.List<api.GroupLicense> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupLicense(o[0]); checkGroupLicense(o[1]); @@ -757,7 +814,7 @@ var o = new api.GroupLicensesListResponse(); buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - o.groupLicense = buildUnnamed2385(); + o.groupLicense = buildUnnamed2148(); o.kind = "foo"; } buildCounterGroupLicensesListResponse--; @@ -767,7 +824,7 @@ checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - checkUnnamed2385(o.groupLicense); + checkUnnamed2148(o.groupLicense); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupLicensesListResponse--; @@ -825,14 +882,14 @@ buildCounterInstallFailureEvent--; } -buildUnnamed2386() { +buildUnnamed2149() { var o = new core.List<api.Install>(); o.add(buildInstall()); o.add(buildInstall()); return o; } -checkUnnamed2386(core.List<api.Install> o) { +checkUnnamed2149(core.List<api.Install> o) { unittest.expect(o, unittest.hasLength(2)); checkInstall(o[0]); checkInstall(o[1]); @@ -843,7 +900,7 @@ var o = new api.InstallsListResponse(); buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - o.install = buildUnnamed2386(); + o.install = buildUnnamed2149(); o.kind = "foo"; } buildCounterInstallsListResponse--; @@ -853,7 +910,7 @@ checkInstallsListResponse(api.InstallsListResponse o) { buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - checkUnnamed2386(o.install); + checkUnnamed2149(o.install); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInstallsListResponse--; @@ -880,14 +937,14 @@ buildCounterLocalizedText--; } -buildUnnamed2387() { +buildUnnamed2150() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2387(core.List<api.ManagedProperty> o) { +checkUnnamed2150(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -899,7 +956,7 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { o.kind = "foo"; - o.managedProperty = buildUnnamed2387(); + o.managedProperty = buildUnnamed2150(); o.productId = "foo"; } buildCounterManagedConfiguration--; @@ -910,20 +967,20 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2387(o.managedProperty); + checkUnnamed2150(o.managedProperty); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterManagedConfiguration--; } -buildUnnamed2388() { +buildUnnamed2151() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2388(core.List<api.ManagedConfiguration> o) { +checkUnnamed2151(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -935,7 +992,7 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForDevice = buildUnnamed2388(); + o.managedConfigurationForDevice = buildUnnamed2151(); } buildCounterManagedConfigurationsForDeviceListResponse--; return o; @@ -945,19 +1002,19 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2388(o.managedConfigurationForDevice); + checkUnnamed2151(o.managedConfigurationForDevice); } buildCounterManagedConfigurationsForDeviceListResponse--; } -buildUnnamed2389() { +buildUnnamed2152() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2389(core.List<api.ManagedConfiguration> o) { +checkUnnamed2152(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -969,7 +1026,7 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForUser = buildUnnamed2389(); + o.managedConfigurationForUser = buildUnnamed2152(); } buildCounterManagedConfigurationsForUserListResponse--; return o; @@ -979,32 +1036,32 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2389(o.managedConfigurationForUser); + checkUnnamed2152(o.managedConfigurationForUser); } buildCounterManagedConfigurationsForUserListResponse--; } -buildUnnamed2390() { +buildUnnamed2153() { var o = new core.List<api.ManagedPropertyBundle>(); o.add(buildManagedPropertyBundle()); o.add(buildManagedPropertyBundle()); return o; } -checkUnnamed2390(core.List<api.ManagedPropertyBundle> o) { +checkUnnamed2153(core.List<api.ManagedPropertyBundle> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyBundle(o[0]); checkManagedPropertyBundle(o[1]); } -buildUnnamed2391() { +buildUnnamed2154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2391(core.List<core.String> o) { +checkUnnamed2154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1018,10 +1075,10 @@ o.key = "foo"; o.valueBool = true; o.valueBundle = buildManagedPropertyBundle(); - o.valueBundleArray = buildUnnamed2390(); + o.valueBundleArray = buildUnnamed2153(); o.valueInteger = 42; o.valueString = "foo"; - o.valueStringArray = buildUnnamed2391(); + o.valueStringArray = buildUnnamed2154(); } buildCounterManagedProperty--; return o; @@ -1033,22 +1090,22 @@ unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); checkManagedPropertyBundle(o.valueBundle); - checkUnnamed2390(o.valueBundleArray); + checkUnnamed2153(o.valueBundleArray); unittest.expect(o.valueInteger, unittest.equals(42)); unittest.expect(o.valueString, unittest.equals('foo')); - checkUnnamed2391(o.valueStringArray); + checkUnnamed2154(o.valueStringArray); } buildCounterManagedProperty--; } -buildUnnamed2392() { +buildUnnamed2155() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2392(core.List<api.ManagedProperty> o) { +checkUnnamed2155(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1059,7 +1116,7 @@ var o = new api.ManagedPropertyBundle(); buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - o.managedProperty = buildUnnamed2392(); + o.managedProperty = buildUnnamed2155(); } buildCounterManagedPropertyBundle--; return o; @@ -1068,32 +1125,32 @@ checkManagedPropertyBundle(api.ManagedPropertyBundle o) { buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - checkUnnamed2392(o.managedProperty); + checkUnnamed2155(o.managedProperty); } buildCounterManagedPropertyBundle--; } -buildUnnamed2393() { +buildUnnamed2156() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2393(core.List<core.String> o) { +checkUnnamed2156(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2394() { +buildUnnamed2157() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2394(core.List<core.String> o) { +checkUnnamed2157(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1104,9 +1161,9 @@ var o = new api.NewPermissionsEvent(); buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - o.approvedPermissions = buildUnnamed2393(); + o.approvedPermissions = buildUnnamed2156(); o.productId = "foo"; - o.requestedPermissions = buildUnnamed2394(); + o.requestedPermissions = buildUnnamed2157(); } buildCounterNewPermissionsEvent--; return o; @@ -1115,9 +1172,9 @@ checkNewPermissionsEvent(api.NewPermissionsEvent o) { buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - checkUnnamed2393(o.approvedPermissions); + checkUnnamed2156(o.approvedPermissions); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2394(o.requestedPermissions); + checkUnnamed2157(o.requestedPermissions); } buildCounterNewPermissionsEvent--; } @@ -1155,14 +1212,14 @@ buildCounterNotification--; } -buildUnnamed2395() { +buildUnnamed2158() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed2395(core.List<api.Notification> o) { +checkUnnamed2158(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1174,7 +1231,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { o.kind = "foo"; - o.notification = buildUnnamed2395(); + o.notification = buildUnnamed2158(); o.notificationSetId = "foo"; } buildCounterNotificationSet--; @@ -1185,7 +1242,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2395(o.notification); + checkUnnamed2158(o.notification); unittest.expect(o.notificationSetId, unittest.equals('foo')); } buildCounterNotificationSet--; @@ -1239,14 +1296,14 @@ buildCounterPermission--; } -buildUnnamed2396() { +buildUnnamed2159() { var o = new core.List<api.AppVersion>(); o.add(buildAppVersion()); o.add(buildAppVersion()); return o; } -checkUnnamed2396(core.List<api.AppVersion> o) { +checkUnnamed2159(core.List<api.AppVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAppVersion(o[0]); checkAppVersion(o[1]); @@ -1257,7 +1314,7 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.appVersion = buildUnnamed2396(); + o.appVersion = buildUnnamed2159(); o.authorName = "foo"; o.detailsUrl = "foo"; o.distributionChannel = "foo"; @@ -1277,7 +1334,7 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed2396(o.appVersion); + checkUnnamed2159(o.appVersion); unittest.expect(o.authorName, unittest.equals('foo')); unittest.expect(o.detailsUrl, unittest.equals('foo')); unittest.expect(o.distributionChannel, unittest.equals('foo')); @@ -1356,14 +1413,14 @@ buildCounterProductPermission--; } -buildUnnamed2397() { +buildUnnamed2160() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed2397(core.List<api.ProductPermission> o) { +checkUnnamed2160(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); @@ -1375,7 +1432,7 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { o.kind = "foo"; - o.permission = buildUnnamed2397(); + o.permission = buildUnnamed2160(); o.productId = "foo"; } buildCounterProductPermissions--; @@ -1386,20 +1443,20 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2397(o.permission); + checkUnnamed2160(o.permission); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterProductPermissions--; } -buildUnnamed2398() { +buildUnnamed2161() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2398(core.List<core.String> o) { +checkUnnamed2161(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1411,7 +1468,8 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { o.kind = "foo"; - o.productId = buildUnnamed2398(); + o.productId = buildUnnamed2161(); + o.productSetBehavior = "foo"; } buildCounterProductSet--; return o; @@ -1421,7 +1479,8 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2398(o.productId); + checkUnnamed2161(o.productId); + unittest.expect(o.productSetBehavior, unittest.equals('foo')); } buildCounterProductSet--; } @@ -1464,14 +1523,14 @@ buildCounterProductsGenerateApprovalUrlResponse--; } -buildUnnamed2399() { +buildUnnamed2162() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2399(core.List<api.Product> o) { +checkUnnamed2162(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1484,7 +1543,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.pageInfo = buildPageInfo(); - o.product = buildUnnamed2399(); + o.product = buildUnnamed2162(); o.tokenPagination = buildTokenPagination(); } buildCounterProductsListResponse--; @@ -1496,7 +1555,7 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); - checkUnnamed2399(o.product); + checkUnnamed2162(o.product); checkTokenPagination(o.tokenPagination); } buildCounterProductsListResponse--; @@ -1550,14 +1609,14 @@ buildCounterServiceAccountKey--; } -buildUnnamed2400() { +buildUnnamed2163() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed2400(core.List<api.ServiceAccountKey> o) { +checkUnnamed2163(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -1568,7 +1627,7 @@ var o = new api.ServiceAccountKeysListResponse(); buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - o.serviceAccountKey = buildUnnamed2400(); + o.serviceAccountKey = buildUnnamed2163(); } buildCounterServiceAccountKeysListResponse--; return o; @@ -1577,7 +1636,7 @@ checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - checkUnnamed2400(o.serviceAccountKey); + checkUnnamed2163(o.serviceAccountKey); } buildCounterServiceAccountKeysListResponse--; } @@ -1605,27 +1664,27 @@ buildCounterSignupInfo--; } -buildUnnamed2401() { +buildUnnamed2164() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2401(core.List<api.LocalizedText> o) { +checkUnnamed2164(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed2402() { +buildUnnamed2165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2402(core.List<core.String> o) { +checkUnnamed2165(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1638,9 +1697,9 @@ if (buildCounterStoreCluster < 3) { o.id = "foo"; o.kind = "foo"; - o.name = buildUnnamed2401(); + o.name = buildUnnamed2164(); o.orderInPage = "foo"; - o.productId = buildUnnamed2402(); + o.productId = buildUnnamed2165(); } buildCounterStoreCluster--; return o; @@ -1651,9 +1710,9 @@ if (buildCounterStoreCluster < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2401(o.name); + checkUnnamed2164(o.name); unittest.expect(o.orderInPage, unittest.equals('foo')); - checkUnnamed2402(o.productId); + checkUnnamed2165(o.productId); } buildCounterStoreCluster--; } @@ -1665,6 +1724,7 @@ if (buildCounterStoreLayout < 3) { o.homepageId = "foo"; o.kind = "foo"; + o.storeLayoutType = "foo"; } buildCounterStoreLayout--; return o; @@ -1675,18 +1735,19 @@ if (buildCounterStoreLayout < 3) { unittest.expect(o.homepageId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.storeLayoutType, unittest.equals('foo')); } buildCounterStoreLayout--; } -buildUnnamed2403() { +buildUnnamed2166() { var o = new core.List<api.StoreCluster>(); o.add(buildStoreCluster()); o.add(buildStoreCluster()); return o; } -checkUnnamed2403(core.List<api.StoreCluster> o) { +checkUnnamed2166(core.List<api.StoreCluster> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreCluster(o[0]); checkStoreCluster(o[1]); @@ -1697,7 +1758,7 @@ var o = new api.StoreLayoutClustersListResponse(); buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - o.cluster = buildUnnamed2403(); + o.cluster = buildUnnamed2166(); o.kind = "foo"; } buildCounterStoreLayoutClustersListResponse--; @@ -1707,20 +1768,20 @@ checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - checkUnnamed2403(o.cluster); + checkUnnamed2166(o.cluster); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterStoreLayoutClustersListResponse--; } -buildUnnamed2404() { +buildUnnamed2167() { var o = new core.List<api.StorePage>(); o.add(buildStorePage()); o.add(buildStorePage()); return o; } -checkUnnamed2404(core.List<api.StorePage> o) { +checkUnnamed2167(core.List<api.StorePage> o) { unittest.expect(o, unittest.hasLength(2)); checkStorePage(o[0]); checkStorePage(o[1]); @@ -1732,7 +1793,7 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { o.kind = "foo"; - o.page = buildUnnamed2404(); + o.page = buildUnnamed2167(); } buildCounterStoreLayoutPagesListResponse--; return o; @@ -1742,32 +1803,32 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2404(o.page); + checkUnnamed2167(o.page); } buildCounterStoreLayoutPagesListResponse--; } -buildUnnamed2405() { +buildUnnamed2168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2405(core.List<core.String> o) { +checkUnnamed2168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2406() { +buildUnnamed2169() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2406(core.List<api.LocalizedText> o) { +checkUnnamed2169(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); @@ -1780,8 +1841,8 @@ if (buildCounterStorePage < 3) { o.id = "foo"; o.kind = "foo"; - o.link = buildUnnamed2405(); - o.name = buildUnnamed2406(); + o.link = buildUnnamed2168(); + o.name = buildUnnamed2169(); } buildCounterStorePage--; return o; @@ -1792,8 +1853,8 @@ if (buildCounterStorePage < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2405(o.link); - checkUnnamed2406(o.name); + checkUnnamed2168(o.link); + checkUnnamed2169(o.name); } buildCounterStorePage--; } @@ -1873,14 +1934,14 @@ buildCounterUserToken--; } -buildUnnamed2407() { +buildUnnamed2170() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2407(core.List<api.User> o) { +checkUnnamed2170(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1892,7 +1953,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2407(); + o.user = buildUnnamed2170(); } buildCounterUsersListResponse--; return o; @@ -1902,7 +1963,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2407(o.user); + checkUnnamed2170(o.user); } buildCounterUsersListResponse--; } @@ -1918,6 +1979,24 @@ }); + unittest.group("obj-schema-AdministratorWebToken", () { + unittest.test("to-json--from-json", () { + var o = buildAdministratorWebToken(); + var od = new api.AdministratorWebToken.fromJson(o.toJson()); + checkAdministratorWebToken(od); + }); + }); + + + unittest.group("obj-schema-AdministratorWebTokenSpec", () { + unittest.test("to-json--from-json", () { + var o = buildAdministratorWebTokenSpec(); + var od = new api.AdministratorWebTokenSpec.fromJson(o.toJson()); + checkAdministratorWebTokenSpec(od); + }); + }); + + unittest.group("obj-schema-AppRestrictionsSchema", () { unittest.test("to-json--from-json", () { var o = buildAppRestrictionsSchema(); @@ -3495,6 +3574,63 @@ }))); }); + unittest.test("method--createWebToken", () { + + var mock = new HttpServerMock(); + api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; + var arg_request = buildAdministratorWebTokenSpec(); + var arg_enterpriseId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.AdministratorWebTokenSpec.fromJson(json); + checkAdministratorWebTokenSpec(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("androidenterprise/v1/")); + pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("enterprises/")); + pathOffset += 12; + index = path.indexOf("/createWebToken", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/createWebToken")); + pathOffset += 15; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAdministratorWebToken()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.createWebToken(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.AdministratorWebToken response) { + checkAdministratorWebToken(response); + }))); + }); + unittest.test("method--delete", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart index 26450be..a5bfbde 100644 --- a/generated/googleapis/test/androidpublisher/v2_test.dart +++ b/generated/googleapis/test/androidpublisher/v2_test.dart
@@ -112,14 +112,14 @@ buildCounterApkListing--; } -buildUnnamed2929() { +buildUnnamed3003() { var o = new core.List<api.ApkListing>(); o.add(buildApkListing()); o.add(buildApkListing()); return o; } -checkUnnamed2929(core.List<api.ApkListing> o) { +checkUnnamed3003(core.List<api.ApkListing> o) { unittest.expect(o, unittest.hasLength(2)); checkApkListing(o[0]); checkApkListing(o[1]); @@ -131,7 +131,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed2929(); + o.listings = buildUnnamed3003(); } buildCounterApkListingsListResponse--; return o; @@ -141,7 +141,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2929(o.listings); + checkUnnamed3003(o.listings); } buildCounterApkListingsListResponse--; } @@ -184,14 +184,14 @@ buildCounterApksAddExternallyHostedResponse--; } -buildUnnamed2930() { +buildUnnamed3004() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed2930(core.List<api.Apk> o) { +checkUnnamed3004(core.List<api.Apk> o) { unittest.expect(o, unittest.hasLength(2)); checkApk(o[0]); checkApk(o[1]); @@ -202,7 +202,7 @@ var o = new api.ApksListResponse(); buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - o.apks = buildUnnamed2930(); + o.apks = buildUnnamed3004(); o.kind = "foo"; } buildCounterApksListResponse--; @@ -212,7 +212,7 @@ checkApksListResponse(api.ApksListResponse o) { buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - checkUnnamed2930(o.apks); + checkUnnamed3004(o.apks); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApksListResponse--; @@ -285,6 +285,44 @@ buildCounterComment--; } +core.int buildCounterDeobfuscationFile = 0; +buildDeobfuscationFile() { + var o = new api.DeobfuscationFile(); + buildCounterDeobfuscationFile++; + if (buildCounterDeobfuscationFile < 3) { + o.symbolType = "foo"; + } + buildCounterDeobfuscationFile--; + return o; +} + +checkDeobfuscationFile(api.DeobfuscationFile o) { + buildCounterDeobfuscationFile++; + if (buildCounterDeobfuscationFile < 3) { + unittest.expect(o.symbolType, unittest.equals('foo')); + } + buildCounterDeobfuscationFile--; +} + +core.int buildCounterDeobfuscationFilesUploadResponse = 0; +buildDeobfuscationFilesUploadResponse() { + var o = new api.DeobfuscationFilesUploadResponse(); + buildCounterDeobfuscationFilesUploadResponse++; + if (buildCounterDeobfuscationFilesUploadResponse < 3) { + o.deobfuscationFile = buildDeobfuscationFile(); + } + buildCounterDeobfuscationFilesUploadResponse--; + return o; +} + +checkDeobfuscationFilesUploadResponse(api.DeobfuscationFilesUploadResponse o) { + buildCounterDeobfuscationFilesUploadResponse++; + if (buildCounterDeobfuscationFilesUploadResponse < 3) { + checkDeobfuscationFile(o.deobfuscationFile); + } + buildCounterDeobfuscationFilesUploadResponse--; +} + core.int buildCounterDeveloperComment = 0; buildDeveloperComment() { var o = new api.DeveloperComment(); @@ -331,14 +369,14 @@ buildCounterEntitlement--; } -buildUnnamed2931() { +buildUnnamed3005() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2931(core.List<api.Entitlement> o) { +checkUnnamed3005(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -350,7 +388,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.resources = buildUnnamed2931(); + o.resources = buildUnnamed3005(); o.tokenPagination = buildTokenPagination(); } buildCounterEntitlementsListResponse--; @@ -361,7 +399,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2931(o.resources); + checkUnnamed3005(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterEntitlementsListResponse--; @@ -407,53 +445,53 @@ buildCounterExpansionFilesUploadResponse--; } -buildUnnamed2932() { +buildUnnamed3006() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2932(core.List<core.String> o) { +checkUnnamed3006(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2933() { +buildUnnamed3007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2933(core.List<core.String> o) { +checkUnnamed3007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2934() { +buildUnnamed3008() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2934(core.List<core.String> o) { +checkUnnamed3008(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2935() { +buildUnnamed3009() { var o = new core.List<api.ExternallyHostedApkUsesPermission>(); o.add(buildExternallyHostedApkUsesPermission()); o.add(buildExternallyHostedApkUsesPermission()); return o; } -checkUnnamed2935(core.List<api.ExternallyHostedApkUsesPermission> o) { +checkUnnamed3009(core.List<api.ExternallyHostedApkUsesPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkExternallyHostedApkUsesPermission(o[0]); checkExternallyHostedApkUsesPermission(o[1]); @@ -465,7 +503,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { o.applicationLabel = "foo"; - o.certificateBase64s = buildUnnamed2932(); + o.certificateBase64s = buildUnnamed3006(); o.externallyHostedUrl = "foo"; o.fileSha1Base64 = "foo"; o.fileSha256Base64 = "foo"; @@ -473,10 +511,10 @@ o.iconBase64 = "foo"; o.maximumSdk = 42; o.minimumSdk = 42; - o.nativeCodes = buildUnnamed2933(); + o.nativeCodes = buildUnnamed3007(); o.packageName = "foo"; - o.usesFeatures = buildUnnamed2934(); - o.usesPermissions = buildUnnamed2935(); + o.usesFeatures = buildUnnamed3008(); + o.usesPermissions = buildUnnamed3009(); o.versionCode = 42; o.versionName = "foo"; } @@ -488,7 +526,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed2932(o.certificateBase64s); + checkUnnamed3006(o.certificateBase64s); unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); unittest.expect(o.fileSha1Base64, unittest.equals('foo')); unittest.expect(o.fileSha256Base64, unittest.equals('foo')); @@ -496,10 +534,10 @@ unittest.expect(o.iconBase64, unittest.equals('foo')); unittest.expect(o.maximumSdk, unittest.equals(42)); unittest.expect(o.minimumSdk, unittest.equals(42)); - checkUnnamed2933(o.nativeCodes); + checkUnnamed3007(o.nativeCodes); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2934(o.usesFeatures); - checkUnnamed2935(o.usesPermissions); + checkUnnamed3008(o.usesFeatures); + checkUnnamed3009(o.usesPermissions); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } @@ -550,14 +588,14 @@ buildCounterImage--; } -buildUnnamed2936() { +buildUnnamed3010() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2936(core.List<api.Image> o) { +checkUnnamed3010(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -568,7 +606,7 @@ var o = new api.ImagesDeleteAllResponse(); buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - o.deleted = buildUnnamed2936(); + o.deleted = buildUnnamed3010(); } buildCounterImagesDeleteAllResponse--; return o; @@ -577,19 +615,19 @@ checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - checkUnnamed2936(o.deleted); + checkUnnamed3010(o.deleted); } buildCounterImagesDeleteAllResponse--; } -buildUnnamed2937() { +buildUnnamed3011() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2937(core.List<api.Image> o) { +checkUnnamed3011(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -600,7 +638,7 @@ var o = new api.ImagesListResponse(); buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - o.images = buildUnnamed2937(); + o.images = buildUnnamed3011(); } buildCounterImagesListResponse--; return o; @@ -609,7 +647,7 @@ checkImagesListResponse(api.ImagesListResponse o) { buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - checkUnnamed2937(o.images); + checkUnnamed3011(o.images); } buildCounterImagesListResponse--; } @@ -633,27 +671,27 @@ buildCounterImagesUploadResponse--; } -buildUnnamed2938() { +buildUnnamed3012() { var o = new core.Map<core.String, api.InAppProductListing>(); o["x"] = buildInAppProductListing(); o["y"] = buildInAppProductListing(); return o; } -checkUnnamed2938(core.Map<core.String, api.InAppProductListing> o) { +checkUnnamed3012(core.Map<core.String, api.InAppProductListing> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProductListing(o["x"]); checkInAppProductListing(o["y"]); } -buildUnnamed2939() { +buildUnnamed3013() { var o = new core.Map<core.String, api.Price>(); o["x"] = buildPrice(); o["y"] = buildPrice(); return o; } -checkUnnamed2939(core.Map<core.String, api.Price> o) { +checkUnnamed3013(core.Map<core.String, api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o["x"]); checkPrice(o["y"]); @@ -666,9 +704,9 @@ if (buildCounterInAppProduct < 3) { o.defaultLanguage = "foo"; o.defaultPrice = buildPrice(); - o.listings = buildUnnamed2938(); + o.listings = buildUnnamed3012(); o.packageName = "foo"; - o.prices = buildUnnamed2939(); + o.prices = buildUnnamed3013(); o.purchaseType = "foo"; o.season = buildSeason(); o.sku = "foo"; @@ -685,9 +723,9 @@ if (buildCounterInAppProduct < 3) { unittest.expect(o.defaultLanguage, unittest.equals('foo')); checkPrice(o.defaultPrice); - checkUnnamed2938(o.listings); + checkUnnamed3012(o.listings); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2939(o.prices); + checkUnnamed3013(o.prices); unittest.expect(o.purchaseType, unittest.equals('foo')); checkSeason(o.season); unittest.expect(o.sku, unittest.equals('foo')); @@ -719,14 +757,14 @@ buildCounterInAppProductListing--; } -buildUnnamed2940() { +buildUnnamed3014() { var o = new core.List<api.InappproductsBatchRequestEntry>(); o.add(buildInappproductsBatchRequestEntry()); o.add(buildInappproductsBatchRequestEntry()); return o; } -checkUnnamed2940(core.List<api.InappproductsBatchRequestEntry> o) { +checkUnnamed3014(core.List<api.InappproductsBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchRequestEntry(o[0]); checkInappproductsBatchRequestEntry(o[1]); @@ -737,7 +775,7 @@ var o = new api.InappproductsBatchRequest(); buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - o.entrys = buildUnnamed2940(); + o.entrys = buildUnnamed3014(); } buildCounterInappproductsBatchRequest--; return o; @@ -746,7 +784,7 @@ checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - checkUnnamed2940(o.entrys); + checkUnnamed3014(o.entrys); } buildCounterInappproductsBatchRequest--; } @@ -776,14 +814,14 @@ buildCounterInappproductsBatchRequestEntry--; } -buildUnnamed2941() { +buildUnnamed3015() { var o = new core.List<api.InappproductsBatchResponseEntry>(); o.add(buildInappproductsBatchResponseEntry()); o.add(buildInappproductsBatchResponseEntry()); return o; } -checkUnnamed2941(core.List<api.InappproductsBatchResponseEntry> o) { +checkUnnamed3015(core.List<api.InappproductsBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchResponseEntry(o[0]); checkInappproductsBatchResponseEntry(o[1]); @@ -794,7 +832,7 @@ var o = new api.InappproductsBatchResponse(); buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - o.entrys = buildUnnamed2941(); + o.entrys = buildUnnamed3015(); o.kind = "foo"; } buildCounterInappproductsBatchResponse--; @@ -804,7 +842,7 @@ checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - checkUnnamed2941(o.entrys); + checkUnnamed3015(o.entrys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInappproductsBatchResponse--; @@ -871,14 +909,14 @@ buildCounterInappproductsInsertResponse--; } -buildUnnamed2942() { +buildUnnamed3016() { var o = new core.List<api.InAppProduct>(); o.add(buildInAppProduct()); o.add(buildInAppProduct()); return o; } -checkUnnamed2942(core.List<api.InAppProduct> o) { +checkUnnamed3016(core.List<api.InAppProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProduct(o[0]); checkInAppProduct(o[1]); @@ -889,7 +927,7 @@ var o = new api.InappproductsListResponse(); buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - o.inappproduct = buildUnnamed2942(); + o.inappproduct = buildUnnamed3016(); o.kind = "foo"; o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); @@ -901,7 +939,7 @@ checkInappproductsListResponse(api.InappproductsListResponse o) { buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - checkUnnamed2942(o.inappproduct); + checkUnnamed3016(o.inappproduct); unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); @@ -974,14 +1012,14 @@ buildCounterListing--; } -buildUnnamed2943() { +buildUnnamed3017() { var o = new core.List<api.Listing>(); o.add(buildListing()); o.add(buildListing()); return o; } -checkUnnamed2943(core.List<api.Listing> o) { +checkUnnamed3017(core.List<api.Listing> o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -993,7 +1031,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed2943(); + o.listings = buildUnnamed3017(); } buildCounterListingsListResponse--; return o; @@ -1003,7 +1041,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2943(o.listings); + checkUnnamed3017(o.listings); } buildCounterListingsListResponse--; } @@ -1121,14 +1159,14 @@ buildCounterProrate--; } -buildUnnamed2944() { +buildUnnamed3018() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed2944(core.List<api.Comment> o) { +checkUnnamed3018(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1140,7 +1178,7 @@ buildCounterReview++; if (buildCounterReview < 3) { o.authorName = "foo"; - o.comments = buildUnnamed2944(); + o.comments = buildUnnamed3018(); o.reviewId = "foo"; } buildCounterReview--; @@ -1151,7 +1189,7 @@ buildCounterReview++; if (buildCounterReview < 3) { unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed2944(o.comments); + checkUnnamed3018(o.comments); unittest.expect(o.reviewId, unittest.equals('foo')); } buildCounterReview--; @@ -1178,14 +1216,14 @@ buildCounterReviewReplyResult--; } -buildUnnamed2945() { +buildUnnamed3019() { var o = new core.List<api.Review>(); o.add(buildReview()); o.add(buildReview()); return o; } -checkUnnamed2945(core.List<api.Review> o) { +checkUnnamed3019(core.List<api.Review> o) { unittest.expect(o, unittest.hasLength(2)); checkReview(o[0]); checkReview(o[1]); @@ -1197,7 +1235,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.reviews = buildUnnamed2945(); + o.reviews = buildUnnamed3019(); o.tokenPagination = buildTokenPagination(); } buildCounterReviewsListResponse--; @@ -1208,7 +1246,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2945(o.reviews); + checkUnnamed3019(o.reviews); checkTokenPagination(o.tokenPagination); } buildCounterReviewsListResponse--; @@ -1252,14 +1290,14 @@ buildCounterReviewsReplyResponse--; } -buildUnnamed2946() { +buildUnnamed3020() { var o = new core.List<api.Prorate>(); o.add(buildProrate()); o.add(buildProrate()); return o; } -checkUnnamed2946(core.List<api.Prorate> o) { +checkUnnamed3020(core.List<api.Prorate> o) { unittest.expect(o, unittest.hasLength(2)); checkProrate(o[0]); checkProrate(o[1]); @@ -1271,7 +1309,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { o.end = buildMonthDay(); - o.prorations = buildUnnamed2946(); + o.prorations = buildUnnamed3020(); o.start = buildMonthDay(); } buildCounterSeason--; @@ -1282,7 +1320,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { checkMonthDay(o.end); - checkUnnamed2946(o.prorations); + checkUnnamed3020(o.prorations); checkMonthDay(o.start); } buildCounterSeason--; @@ -1384,27 +1422,27 @@ buildCounterSubscriptionPurchasesDeferResponse--; } -buildUnnamed2947() { +buildUnnamed3021() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2947(core.List<core.String> o) { +checkUnnamed3021(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2948() { +buildUnnamed3022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2948(core.List<core.String> o) { +checkUnnamed3022(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1415,8 +1453,8 @@ var o = new api.Testers(); buildCounterTesters++; if (buildCounterTesters < 3) { - o.googleGroups = buildUnnamed2947(); - o.googlePlusCommunities = buildUnnamed2948(); + o.googleGroups = buildUnnamed3021(); + o.googlePlusCommunities = buildUnnamed3022(); } buildCounterTesters--; return o; @@ -1425,8 +1463,8 @@ checkTesters(api.Testers o) { buildCounterTesters++; if (buildCounterTesters < 3) { - checkUnnamed2947(o.googleGroups); - checkUnnamed2948(o.googlePlusCommunities); + checkUnnamed3021(o.googleGroups); + checkUnnamed3022(o.googlePlusCommunities); } buildCounterTesters--; } @@ -1473,14 +1511,14 @@ buildCounterTokenPagination--; } -buildUnnamed2949() { +buildUnnamed3023() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2949(core.List<core.int> o) { +checkUnnamed3023(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -1493,7 +1531,7 @@ if (buildCounterTrack < 3) { o.track = "foo"; o.userFraction = 42.0; - o.versionCodes = buildUnnamed2949(); + o.versionCodes = buildUnnamed3023(); } buildCounterTrack--; return o; @@ -1504,19 +1542,19 @@ if (buildCounterTrack < 3) { unittest.expect(o.track, unittest.equals('foo')); unittest.expect(o.userFraction, unittest.equals(42.0)); - checkUnnamed2949(o.versionCodes); + checkUnnamed3023(o.versionCodes); } buildCounterTrack--; } -buildUnnamed2950() { +buildUnnamed3024() { var o = new core.List<api.Track>(); o.add(buildTrack()); o.add(buildTrack()); return o; } -checkUnnamed2950(core.List<api.Track> o) { +checkUnnamed3024(core.List<api.Track> o) { unittest.expect(o, unittest.hasLength(2)); checkTrack(o[0]); checkTrack(o[1]); @@ -1528,7 +1566,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { o.kind = "foo"; - o.tracks = buildUnnamed2950(); + o.tracks = buildUnnamed3024(); } buildCounterTracksListResponse--; return o; @@ -1538,7 +1576,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2950(o.tracks); + checkUnnamed3024(o.tracks); } buildCounterTracksListResponse--; } @@ -1668,6 +1706,24 @@ }); + unittest.group("obj-schema-DeobfuscationFile", () { + unittest.test("to-json--from-json", () { + var o = buildDeobfuscationFile(); + var od = new api.DeobfuscationFile.fromJson(o.toJson()); + checkDeobfuscationFile(od); + }); + }); + + + unittest.group("obj-schema-DeobfuscationFilesUploadResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDeobfuscationFilesUploadResponse(); + var od = new api.DeobfuscationFilesUploadResponse.fromJson(o.toJson()); + checkDeobfuscationFilesUploadResponse(od); + }); + }); + + unittest.group("obj-schema-DeveloperComment", () { unittest.test("to-json--from-json", () { var o = buildDeveloperComment(); @@ -2708,6 +2764,57 @@ }); + unittest.group("resource-EditsDeobfuscationfilesResourceApi", () { + unittest.test("method--upload", () { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + + var mock = new HttpServerMock(); + api.EditsDeobfuscationfilesResourceApi res = new api.AndroidpublisherApi(mock).edits.deobfuscationfiles; + var arg_packageName = "foo"; + var arg_editId = "foo"; + var arg_apkVersionCode = 42; + var arg_deobfuscationFileType = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildDeobfuscationFilesUploadResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_deobfuscationFileType).then(unittest.expectAsync(((api.DeobfuscationFilesUploadResponse response) { + checkDeobfuscationFilesUploadResponse(response); + }))); + }); + + }); + + unittest.group("resource-EditsDetailsResourceApi", () { unittest.test("method--get", () {
diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart index a81b012..32cb262 100644 --- a/generated/googleapis/test/appengine/v1_test.dart +++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3347() { +buildUnnamed3160() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3347(core.List<api.UrlDispatchRule> o) { +checkUnnamed3160(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3347(); + o.dispatchRules = buildUnnamed3160(); o.id = "foo"; o.locationId = "foo"; o.name = "foo"; @@ -137,7 +137,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3347(o.dispatchRules); + checkUnnamed3160(o.dispatchRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.locationId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -252,6 +252,7 @@ var o = new api.DebugInstanceRequest(); buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + o.sshKey = "foo"; } buildCounterDebugInstanceRequest--; return o; @@ -260,18 +261,19 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) { buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + unittest.expect(o.sshKey, unittest.equals('foo')); } buildCounterDebugInstanceRequest--; } -buildUnnamed3348() { +buildUnnamed3161() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3348(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3161(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -283,7 +285,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3348(); + o.files = buildUnnamed3161(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -294,7 +296,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3348(o.files); + checkUnnamed3161(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -419,6 +421,7 @@ o.startTime = "foo"; o.vmDebugEnabled = true; o.vmId = "foo"; + o.vmIp = "foo"; o.vmName = "foo"; o.vmStatus = "foo"; o.vmZoneName = "foo"; @@ -442,6 +445,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.vmDebugEnabled, unittest.isTrue); unittest.expect(o.vmId, unittest.equals('foo')); + unittest.expect(o.vmIp, unittest.equals('foo')); unittest.expect(o.vmName, unittest.equals('foo')); unittest.expect(o.vmStatus, unittest.equals('foo')); unittest.expect(o.vmZoneName, unittest.equals('foo')); @@ -470,14 +474,14 @@ buildCounterLibrary--; } -buildUnnamed3349() { +buildUnnamed3162() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3349(core.List<api.Instance> o) { +checkUnnamed3162(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -488,7 +492,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3349(); + o.instances = buildUnnamed3162(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -498,20 +502,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3349(o.instances); + checkUnnamed3162(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3350() { +buildUnnamed3163() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3350(core.List<api.Location> o) { +checkUnnamed3163(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -522,7 +526,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3350(); + o.locations = buildUnnamed3163(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -532,20 +536,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3350(o.locations); + checkUnnamed3163(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3351() { +buildUnnamed3164() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3351(core.List<api.Operation> o) { +checkUnnamed3164(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -557,7 +561,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3351(); + o.operations = buildUnnamed3164(); } buildCounterListOperationsResponse--; return o; @@ -567,19 +571,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3351(o.operations); + checkUnnamed3164(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3352() { +buildUnnamed3165() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3352(core.List<api.Service> o) { +checkUnnamed3165(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -591,7 +595,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3352(); + o.services = buildUnnamed3165(); } buildCounterListServicesResponse--; return o; @@ -601,19 +605,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3352(o.services); + checkUnnamed3165(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3353() { +buildUnnamed3166() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3353(core.List<api.Version> o) { +checkUnnamed3166(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -625,7 +629,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3353(); + o.versions = buildUnnamed3166(); } buildCounterListVersionsResponse--; return o; @@ -635,32 +639,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3353(o.versions); + checkUnnamed3166(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed3354() { +buildUnnamed3167() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3354(core.Map<core.String, core.String> o) { +checkUnnamed3167(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3355() { +buildUnnamed3168() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3355(core.Map<core.String, core.Object> o) { +checkUnnamed3168(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -671,9 +675,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3354(); + o.labels = buildUnnamed3167(); o.locationId = "foo"; - o.metadata = buildUnnamed3355(); + o.metadata = buildUnnamed3168(); o.name = "foo"; } buildCounterLocation--; @@ -683,9 +687,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3354(o.labels); + checkUnnamed3167(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3355(o.metadata); + checkUnnamed3168(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -731,14 +735,14 @@ buildCounterManualScaling--; } -buildUnnamed3356() { +buildUnnamed3169() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3356(core.List<core.String> o) { +checkUnnamed3169(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -749,7 +753,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3356(); + o.forwardedPorts = buildUnnamed3169(); o.instanceTag = "foo"; o.name = "foo"; } @@ -760,7 +764,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3356(o.forwardedPorts); + checkUnnamed3169(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -792,27 +796,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3357() { +buildUnnamed3170() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3357(core.Map<core.String, core.Object> o) { +checkUnnamed3170(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3358() { +buildUnnamed3171() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3358(core.Map<core.String, core.Object> o) { +checkUnnamed3171(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -825,9 +829,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3357(); + o.metadata = buildUnnamed3170(); o.name = "foo"; - o.response = buildUnnamed3358(); + o.response = buildUnnamed3171(); } buildCounterOperation--; return o; @@ -838,9 +842,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3357(o.metadata); + checkUnnamed3170(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3358(o.response); + checkUnnamed3171(o.response); } buildCounterOperation--; } @@ -874,6 +878,33 @@ buildCounterOperationMetadata--; } +core.int buildCounterOperationMetadataExperimental = 0; +buildOperationMetadataExperimental() { + var o = new api.OperationMetadataExperimental(); + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + o.endTime = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + } + buildCounterOperationMetadataExperimental--; + return o; +} + +checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.insertTime, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + unittest.expect(o.user, unittest.equals('foo')); + } + buildCounterOperationMetadataExperimental--; +} + core.int buildCounterOperationMetadataV1 = 0; buildOperationMetadataV1() { var o = new api.OperationMetadataV1(); @@ -1031,14 +1062,14 @@ buildCounterService--; } -buildUnnamed3359() { +buildUnnamed3172() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3359(core.Map<core.String, core.String> o) { +checkUnnamed3172(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1051,7 +1082,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3359(); + o.httpHeaders = buildUnnamed3172(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1066,7 +1097,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3359(o.httpHeaders); + checkUnnamed3172(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1075,30 +1106,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3360() { +buildUnnamed3173() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3360(core.Map<core.String, core.Object> o) { +checkUnnamed3173(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3361() { +buildUnnamed3174() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3360()); - o.add(buildUnnamed3360()); + o.add(buildUnnamed3173()); + o.add(buildUnnamed3173()); return o; } -checkUnnamed3361(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3174(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3360(o[0]); - checkUnnamed3360(o[1]); + checkUnnamed3173(o[0]); + checkUnnamed3173(o[1]); } core.int buildCounterStatus = 0; @@ -1107,7 +1138,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3361(); + o.details = buildUnnamed3174(); o.message = "foo"; } buildCounterStatus--; @@ -1118,20 +1149,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3361(o.details); + checkUnnamed3174(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3362() { +buildUnnamed3175() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3362(core.Map<core.String, core.double> o) { +checkUnnamed3175(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -1142,7 +1173,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3362(); + o.allocations = buildUnnamed3175(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1152,7 +1183,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3362(o.allocations); + checkUnnamed3175(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1214,79 +1245,79 @@ buildCounterUrlMap--; } -buildUnnamed3363() { +buildUnnamed3176() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3363(core.Map<core.String, core.String> o) { +checkUnnamed3176(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3364() { +buildUnnamed3177() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3364(core.Map<core.String, core.String> o) { +checkUnnamed3177(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3365() { +buildUnnamed3178() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3365(core.List<api.ErrorHandler> o) { +checkUnnamed3178(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3366() { +buildUnnamed3179() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3366(core.List<api.UrlMap> o) { +checkUnnamed3179(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3367() { +buildUnnamed3180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3367(core.List<core.String> o) { +checkUnnamed3180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3368() { +buildUnnamed3181() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3368(core.List<api.Library> o) { +checkUnnamed3181(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1300,21 +1331,21 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3363(); + o.betaSettings = buildUnnamed3176(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; o.deployment = buildDeployment(); o.diskUsageBytes = "foo"; o.env = "foo"; - o.envVariables = buildUnnamed3364(); - o.errorHandlers = buildUnnamed3365(); - o.handlers = buildUnnamed3366(); + o.envVariables = buildUnnamed3177(); + o.errorHandlers = buildUnnamed3178(); + o.handlers = buildUnnamed3179(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3367(); + o.inboundServices = buildUnnamed3180(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3368(); + o.libraries = buildUnnamed3181(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); @@ -1336,21 +1367,21 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3363(o.betaSettings); + checkUnnamed3176(o.betaSettings); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); checkDeployment(o.deployment); unittest.expect(o.diskUsageBytes, unittest.equals('foo')); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3364(o.envVariables); - checkUnnamed3365(o.errorHandlers); - checkUnnamed3366(o.handlers); + checkUnnamed3177(o.envVariables); + checkUnnamed3178(o.errorHandlers); + checkUnnamed3179(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3367(o.inboundServices); + checkUnnamed3180(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3368(o.libraries); + checkUnnamed3181(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); @@ -1631,6 +1662,15 @@ }); + unittest.group("obj-schema-OperationMetadataExperimental", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataExperimental(); + var od = new api.OperationMetadataExperimental.fromJson(o.toJson()); + checkOperationMetadataExperimental(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1(); @@ -1758,6 +1798,53 @@ unittest.group("resource-AppsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.AppsResourceApi res = new api.AppengineApi(mock).apps; + var arg_request = buildApplication(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Application.fromJson(json); + checkApplication(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("v1/apps")); + pathOffset += 7; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -1805,6 +1892,59 @@ }))); }); + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.AppsResourceApi res = new api.AppengineApi(mock).apps; + var arg_request = buildApplication(); + var arg_appsId = "foo"; + var arg_updateMask = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Application.fromJson(json); + checkApplication(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_appsId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--repair", () { var mock = new HttpServerMock(); @@ -2952,5 +3092,121 @@ }); + unittest.group("resource-ExperimentalAppsOperationsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ExperimentalAppsOperationsResourceApi res = new api.AppengineApi(mock).experimental.apps.operations; + var arg_appsId = "foo"; + var arg_operationsId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("experimental/apps/")); + pathOffset += 18; + index = path.indexOf("/operations/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_appsId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/operations/")); + pathOffset += 12; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_operationsId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ExperimentalAppsOperationsResourceApi res = new api.AppengineApi(mock).experimental.apps.operations; + var arg_appsId = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("experimental/apps/")); + pathOffset += 18; + index = path.indexOf("/operations", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_appsId")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/operations")); + pathOffset += 11; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListOperationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { + checkListOperationsResponse(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis/test/appsactivity/v1_test.dart b/generated/googleapis/test/appsactivity/v1_test.dart index c2b0026..4a5b668 100644 --- a/generated/googleapis/test/appsactivity/v1_test.dart +++ b/generated/googleapis/test/appsactivity/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1184() { +buildUnnamed1210() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1184(core.List<api.Event> o) { +checkUnnamed1210(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -70,7 +70,7 @@ buildCounterActivity++; if (buildCounterActivity < 3) { o.combinedEvent = buildEvent(); - o.singleEvents = buildUnnamed1184(); + o.singleEvents = buildUnnamed1210(); } buildCounterActivity--; return o; @@ -80,32 +80,32 @@ buildCounterActivity++; if (buildCounterActivity < 3) { checkEvent(o.combinedEvent); - checkUnnamed1184(o.singleEvents); + checkUnnamed1210(o.singleEvents); } buildCounterActivity--; } -buildUnnamed1185() { +buildUnnamed1211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1185(core.List<core.String> o) { +checkUnnamed1211(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1186() { +buildUnnamed1212() { var o = new core.List<api.PermissionChange>(); o.add(buildPermissionChange()); o.add(buildPermissionChange()); return o; } -checkUnnamed1186(core.List<api.PermissionChange> o) { +checkUnnamed1212(core.List<api.PermissionChange> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionChange(o[0]); checkPermissionChange(o[1]); @@ -116,11 +116,11 @@ var o = new api.Event(); buildCounterEvent++; if (buildCounterEvent < 3) { - o.additionalEventTypes = buildUnnamed1185(); + o.additionalEventTypes = buildUnnamed1211(); o.eventTimeMillis = "foo"; o.fromUserDeletion = true; o.move = buildMove(); - o.permissionChanges = buildUnnamed1186(); + o.permissionChanges = buildUnnamed1212(); o.primaryEventType = "foo"; o.rename = buildRename(); o.target = buildTarget(); @@ -133,11 +133,11 @@ checkEvent(api.Event o) { buildCounterEvent++; if (buildCounterEvent < 3) { - checkUnnamed1185(o.additionalEventTypes); + checkUnnamed1211(o.additionalEventTypes); unittest.expect(o.eventTimeMillis, unittest.equals('foo')); unittest.expect(o.fromUserDeletion, unittest.isTrue); checkMove(o.move); - checkUnnamed1186(o.permissionChanges); + checkUnnamed1212(o.permissionChanges); unittest.expect(o.primaryEventType, unittest.equals('foo')); checkRename(o.rename); checkTarget(o.target); @@ -146,14 +146,14 @@ buildCounterEvent--; } -buildUnnamed1187() { +buildUnnamed1213() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1187(core.List<api.Activity> o) { +checkUnnamed1213(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -164,7 +164,7 @@ var o = new api.ListActivitiesResponse(); buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - o.activities = buildUnnamed1187(); + o.activities = buildUnnamed1213(); o.nextPageToken = "foo"; } buildCounterListActivitiesResponse--; @@ -174,33 +174,33 @@ checkListActivitiesResponse(api.ListActivitiesResponse o) { buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - checkUnnamed1187(o.activities); + checkUnnamed1213(o.activities); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListActivitiesResponse--; } -buildUnnamed1188() { +buildUnnamed1214() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1188(core.List<api.Parent> o) { +checkUnnamed1214(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); } -buildUnnamed1189() { +buildUnnamed1215() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1189(core.List<api.Parent> o) { +checkUnnamed1215(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); @@ -211,8 +211,8 @@ var o = new api.Move(); buildCounterMove++; if (buildCounterMove < 3) { - o.addedParents = buildUnnamed1188(); - o.removedParents = buildUnnamed1189(); + o.addedParents = buildUnnamed1214(); + o.removedParents = buildUnnamed1215(); } buildCounterMove--; return o; @@ -221,8 +221,8 @@ checkMove(api.Move o) { buildCounterMove++; if (buildCounterMove < 3) { - checkUnnamed1188(o.addedParents); - checkUnnamed1189(o.removedParents); + checkUnnamed1214(o.addedParents); + checkUnnamed1215(o.removedParents); } buildCounterMove--; } @@ -279,27 +279,27 @@ buildCounterPermission--; } -buildUnnamed1190() { +buildUnnamed1216() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1190(core.List<api.Permission> o) { +checkUnnamed1216(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1191() { +buildUnnamed1217() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1191(core.List<api.Permission> o) { +checkUnnamed1217(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -310,8 +310,8 @@ var o = new api.PermissionChange(); buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - o.addedPermissions = buildUnnamed1190(); - o.removedPermissions = buildUnnamed1191(); + o.addedPermissions = buildUnnamed1216(); + o.removedPermissions = buildUnnamed1217(); } buildCounterPermissionChange--; return o; @@ -320,8 +320,8 @@ checkPermissionChange(api.PermissionChange o) { buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - checkUnnamed1190(o.addedPermissions); - checkUnnamed1191(o.removedPermissions); + checkUnnamed1216(o.addedPermissions); + checkUnnamed1217(o.removedPermissions); } buildCounterPermissionChange--; } @@ -395,6 +395,7 @@ buildCounterUser++; if (buildCounterUser < 3) { o.isDeleted = true; + o.isMe = true; o.name = "foo"; o.permissionId = "foo"; o.photo = buildPhoto(); @@ -407,6 +408,7 @@ buildCounterUser++; if (buildCounterUser < 3) { unittest.expect(o.isDeleted, unittest.isTrue); + unittest.expect(o.isMe, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); checkPhoto(o.photo);
diff --git a/generated/googleapis/test/appstate/v1_test.dart b/generated/googleapis/test/appstate/v1_test.dart index 2831ca4..4f1c5fc 100644 --- a/generated/googleapis/test/appstate/v1_test.dart +++ b/generated/googleapis/test/appstate/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterGetResponse--; } -buildUnnamed2918() { +buildUnnamed2992() { var o = new core.List<api.GetResponse>(); o.add(buildGetResponse()); o.add(buildGetResponse()); return o; } -checkUnnamed2918(core.List<api.GetResponse> o) { +checkUnnamed2992(core.List<api.GetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGetResponse(o[0]); checkGetResponse(o[1]); @@ -94,7 +94,7 @@ var o = new api.ListResponse(); buildCounterListResponse++; if (buildCounterListResponse < 3) { - o.items = buildUnnamed2918(); + o.items = buildUnnamed2992(); o.kind = "foo"; o.maximumKeyCount = 42; } @@ -105,7 +105,7 @@ checkListResponse(api.ListResponse o) { buildCounterListResponse++; if (buildCounterListResponse < 3) { - checkUnnamed2918(o.items); + checkUnnamed2992(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maximumKeyCount, unittest.equals(42)); }
diff --git a/generated/googleapis/test/bigquery/v2_test.dart b/generated/googleapis/test/bigquery/v2_test.dart index 308bf3d..1cc3d88 100644 --- a/generated/googleapis/test/bigquery/v2_test.dart +++ b/generated/googleapis/test/bigquery/v2_test.dart
@@ -80,14 +80,14 @@ buildCounterBigtableColumn--; } -buildUnnamed3372() { +buildUnnamed3185() { var o = new core.List<api.BigtableColumn>(); o.add(buildBigtableColumn()); o.add(buildBigtableColumn()); return o; } -checkUnnamed3372(core.List<api.BigtableColumn> o) { +checkUnnamed3185(core.List<api.BigtableColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumn(o[0]); checkBigtableColumn(o[1]); @@ -98,7 +98,7 @@ var o = new api.BigtableColumnFamily(); buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - o.columns = buildUnnamed3372(); + o.columns = buildUnnamed3185(); o.encoding = "foo"; o.familyId = "foo"; o.onlyReadLatest = true; @@ -111,7 +111,7 @@ checkBigtableColumnFamily(api.BigtableColumnFamily o) { buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - checkUnnamed3372(o.columns); + checkUnnamed3185(o.columns); unittest.expect(o.encoding, unittest.equals('foo')); unittest.expect(o.familyId, unittest.equals('foo')); unittest.expect(o.onlyReadLatest, unittest.isTrue); @@ -120,14 +120,14 @@ buildCounterBigtableColumnFamily--; } -buildUnnamed3373() { +buildUnnamed3186() { var o = new core.List<api.BigtableColumnFamily>(); o.add(buildBigtableColumnFamily()); o.add(buildBigtableColumnFamily()); return o; } -checkUnnamed3373(core.List<api.BigtableColumnFamily> o) { +checkUnnamed3186(core.List<api.BigtableColumnFamily> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumnFamily(o[0]); checkBigtableColumnFamily(o[1]); @@ -138,7 +138,7 @@ var o = new api.BigtableOptions(); buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - o.columnFamilies = buildUnnamed3373(); + o.columnFamilies = buildUnnamed3186(); o.ignoreUnspecifiedColumnFamilies = true; o.readRowkeyAsString = true; } @@ -149,7 +149,7 @@ checkBigtableOptions(api.BigtableOptions o) { buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - checkUnnamed3373(o.columnFamilies); + checkUnnamed3186(o.columnFamilies); unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); unittest.expect(o.readRowkeyAsString, unittest.isTrue); } @@ -214,27 +214,27 @@ buildCounterDatasetAccess--; } -buildUnnamed3374() { +buildUnnamed3187() { var o = new core.List<api.DatasetAccess>(); o.add(buildDatasetAccess()); o.add(buildDatasetAccess()); return o; } -checkUnnamed3374(core.List<api.DatasetAccess> o) { +checkUnnamed3187(core.List<api.DatasetAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetAccess(o[0]); checkDatasetAccess(o[1]); } -buildUnnamed3375() { +buildUnnamed3188() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3375(core.Map<core.String, core.String> o) { +checkUnnamed3188(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -245,7 +245,7 @@ var o = new api.Dataset(); buildCounterDataset++; if (buildCounterDataset < 3) { - o.access = buildUnnamed3374(); + o.access = buildUnnamed3187(); o.creationTime = "foo"; o.datasetReference = buildDatasetReference(); o.defaultTableExpirationMs = "foo"; @@ -254,7 +254,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3375(); + o.labels = buildUnnamed3188(); o.lastModifiedTime = "foo"; o.location = "foo"; o.selfLink = "foo"; @@ -266,7 +266,7 @@ checkDataset(api.Dataset o) { buildCounterDataset++; if (buildCounterDataset < 3) { - checkUnnamed3374(o.access); + checkUnnamed3187(o.access); unittest.expect(o.creationTime, unittest.equals('foo')); checkDatasetReference(o.datasetReference); unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); @@ -275,7 +275,7 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3375(o.labels); + checkUnnamed3188(o.labels); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -283,14 +283,14 @@ buildCounterDataset--; } -buildUnnamed3376() { +buildUnnamed3189() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3376(core.Map<core.String, core.String> o) { +checkUnnamed3189(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -305,7 +305,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3376(); + o.labels = buildUnnamed3189(); } buildCounterDatasetListDatasets--; return o; @@ -318,19 +318,19 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3376(o.labels); + checkUnnamed3189(o.labels); } buildCounterDatasetListDatasets--; } -buildUnnamed3377() { +buildUnnamed3190() { var o = new core.List<api.DatasetListDatasets>(); o.add(buildDatasetListDatasets()); o.add(buildDatasetListDatasets()); return o; } -checkUnnamed3377(core.List<api.DatasetListDatasets> o) { +checkUnnamed3190(core.List<api.DatasetListDatasets> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetListDatasets(o[0]); checkDatasetListDatasets(o[1]); @@ -341,7 +341,7 @@ var o = new api.DatasetList(); buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - o.datasets = buildUnnamed3377(); + o.datasets = buildUnnamed3190(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -353,7 +353,7 @@ checkDatasetList(api.DatasetList o) { buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - checkUnnamed3377(o.datasets); + checkUnnamed3190(o.datasets); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -407,14 +407,14 @@ buildCounterErrorProto--; } -buildUnnamed3378() { +buildUnnamed3191() { var o = new core.List<api.ExplainQueryStep>(); o.add(buildExplainQueryStep()); o.add(buildExplainQueryStep()); return o; } -checkUnnamed3378(core.List<api.ExplainQueryStep> o) { +checkUnnamed3191(core.List<api.ExplainQueryStep> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStep(o[0]); checkExplainQueryStep(o[1]); @@ -433,7 +433,7 @@ o.readRatioMax = 42.0; o.recordsRead = "foo"; o.recordsWritten = "foo"; - o.steps = buildUnnamed3378(); + o.steps = buildUnnamed3191(); o.waitRatioAvg = 42.0; o.waitRatioMax = 42.0; o.writeRatioAvg = 42.0; @@ -454,7 +454,7 @@ unittest.expect(o.readRatioMax, unittest.equals(42.0)); unittest.expect(o.recordsRead, unittest.equals('foo')); unittest.expect(o.recordsWritten, unittest.equals('foo')); - checkUnnamed3378(o.steps); + checkUnnamed3191(o.steps); unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); unittest.expect(o.waitRatioMax, unittest.equals(42.0)); unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); @@ -463,14 +463,14 @@ buildCounterExplainQueryStage--; } -buildUnnamed3379() { +buildUnnamed3192() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3379(core.List<core.String> o) { +checkUnnamed3192(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -482,7 +482,7 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { o.kind = "foo"; - o.substeps = buildUnnamed3379(); + o.substeps = buildUnnamed3192(); } buildCounterExplainQueryStep--; return o; @@ -492,19 +492,19 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3379(o.substeps); + checkUnnamed3192(o.substeps); } buildCounterExplainQueryStep--; } -buildUnnamed3380() { +buildUnnamed3193() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3380(core.List<core.String> o) { +checkUnnamed3193(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -524,7 +524,7 @@ o.maxBadRecords = 42; o.schema = buildTableSchema(); o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed3380(); + o.sourceUris = buildUnnamed3193(); } buildCounterExternalDataConfiguration--; return o; @@ -542,32 +542,32 @@ unittest.expect(o.maxBadRecords, unittest.equals(42)); checkTableSchema(o.schema); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3380(o.sourceUris); + checkUnnamed3193(o.sourceUris); } buildCounterExternalDataConfiguration--; } -buildUnnamed3381() { +buildUnnamed3194() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3381(core.List<api.ErrorProto> o) { +checkUnnamed3194(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3382() { +buildUnnamed3195() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3382(core.List<api.TableRow> o) { +checkUnnamed3195(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -579,14 +579,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed3381(); + o.errors = buildUnnamed3194(); o.etag = "foo"; o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3382(); + o.rows = buildUnnamed3195(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -599,14 +599,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3381(o.errors); + checkUnnamed3194(o.errors); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.jobComplete, unittest.isTrue); checkJobReference(o.jobReference); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3382(o.rows); + checkUnnamed3195(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -689,6 +689,19 @@ buildCounterJobCancelResponse--; } +buildUnnamed3196() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3196(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + core.int buildCounterJobConfiguration = 0; buildJobConfiguration() { var o = new api.JobConfiguration(); @@ -697,6 +710,7 @@ o.copy = buildJobConfigurationTableCopy(); o.dryRun = true; o.extract = buildJobConfigurationExtract(); + o.labels = buildUnnamed3196(); o.load = buildJobConfigurationLoad(); o.query = buildJobConfigurationQuery(); } @@ -710,20 +724,21 @@ checkJobConfigurationTableCopy(o.copy); unittest.expect(o.dryRun, unittest.isTrue); checkJobConfigurationExtract(o.extract); + checkUnnamed3196(o.labels); checkJobConfigurationLoad(o.load); checkJobConfigurationQuery(o.query); } buildCounterJobConfiguration--; } -buildUnnamed3383() { +buildUnnamed3197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3383(core.List<core.String> o) { +checkUnnamed3197(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -737,7 +752,7 @@ o.compression = "foo"; o.destinationFormat = "foo"; o.destinationUri = "foo"; - o.destinationUris = buildUnnamed3383(); + o.destinationUris = buildUnnamed3197(); o.fieldDelimiter = "foo"; o.printHeader = true; o.sourceTable = buildTableReference(); @@ -752,7 +767,7 @@ unittest.expect(o.compression, unittest.equals('foo')); unittest.expect(o.destinationFormat, unittest.equals('foo')); unittest.expect(o.destinationUri, unittest.equals('foo')); - checkUnnamed3383(o.destinationUris); + checkUnnamed3197(o.destinationUris); unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.printHeader, unittest.isTrue); checkTableReference(o.sourceTable); @@ -760,40 +775,40 @@ buildCounterJobConfigurationExtract--; } -buildUnnamed3384() { +buildUnnamed3198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3384(core.List<core.String> o) { +checkUnnamed3198(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3385() { +buildUnnamed3199() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3385(core.List<core.String> o) { +checkUnnamed3199(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3386() { +buildUnnamed3200() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3386(core.List<core.String> o) { +checkUnnamed3200(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -813,15 +828,15 @@ o.fieldDelimiter = "foo"; o.ignoreUnknownValues = true; o.maxBadRecords = 42; - o.projectionFields = buildUnnamed3384(); + o.projectionFields = buildUnnamed3198(); o.quote = "foo"; o.schema = buildTableSchema(); o.schemaInline = "foo"; o.schemaInlineFormat = "foo"; - o.schemaUpdateOptions = buildUnnamed3385(); + o.schemaUpdateOptions = buildUnnamed3199(); o.skipLeadingRows = 42; o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed3386(); + o.sourceUris = buildUnnamed3200(); o.writeDisposition = "foo"; } buildCounterJobConfigurationLoad--; @@ -840,67 +855,67 @@ unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.maxBadRecords, unittest.equals(42)); - checkUnnamed3384(o.projectionFields); + checkUnnamed3198(o.projectionFields); unittest.expect(o.quote, unittest.equals('foo')); checkTableSchema(o.schema); unittest.expect(o.schemaInline, unittest.equals('foo')); unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); - checkUnnamed3385(o.schemaUpdateOptions); + checkUnnamed3199(o.schemaUpdateOptions); unittest.expect(o.skipLeadingRows, unittest.equals(42)); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3386(o.sourceUris); + checkUnnamed3200(o.sourceUris); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationLoad--; } -buildUnnamed3387() { +buildUnnamed3201() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3387(core.List<api.QueryParameter> o) { +checkUnnamed3201(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); } -buildUnnamed3388() { +buildUnnamed3202() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3388(core.List<core.String> o) { +checkUnnamed3202(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3389() { +buildUnnamed3203() { var o = new core.Map<core.String, api.ExternalDataConfiguration>(); o["x"] = buildExternalDataConfiguration(); o["y"] = buildExternalDataConfiguration(); return o; } -checkUnnamed3389(core.Map<core.String, api.ExternalDataConfiguration> o) { +checkUnnamed3203(core.Map<core.String, api.ExternalDataConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalDataConfiguration(o["x"]); checkExternalDataConfiguration(o["y"]); } -buildUnnamed3390() { +buildUnnamed3204() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3390(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed3204(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -922,12 +937,12 @@ o.preserveNulls = true; o.priority = "foo"; o.query = "foo"; - o.queryParameters = buildUnnamed3387(); - o.schemaUpdateOptions = buildUnnamed3388(); - o.tableDefinitions = buildUnnamed3389(); + o.queryParameters = buildUnnamed3201(); + o.schemaUpdateOptions = buildUnnamed3202(); + o.tableDefinitions = buildUnnamed3203(); o.useLegacySql = true; o.useQueryCache = true; - o.userDefinedFunctionResources = buildUnnamed3390(); + o.userDefinedFunctionResources = buildUnnamed3204(); o.writeDisposition = "foo"; } buildCounterJobConfigurationQuery--; @@ -948,25 +963,25 @@ unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.priority, unittest.equals('foo')); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3387(o.queryParameters); - checkUnnamed3388(o.schemaUpdateOptions); - checkUnnamed3389(o.tableDefinitions); + checkUnnamed3201(o.queryParameters); + checkUnnamed3202(o.schemaUpdateOptions); + checkUnnamed3203(o.tableDefinitions); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); - checkUnnamed3390(o.userDefinedFunctionResources); + checkUnnamed3204(o.userDefinedFunctionResources); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationQuery--; } -buildUnnamed3391() { +buildUnnamed3205() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3391(core.List<api.TableReference> o) { +checkUnnamed3205(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); @@ -980,7 +995,7 @@ o.createDisposition = "foo"; o.destinationTable = buildTableReference(); o.sourceTable = buildTableReference(); - o.sourceTables = buildUnnamed3391(); + o.sourceTables = buildUnnamed3205(); o.writeDisposition = "foo"; } buildCounterJobConfigurationTableCopy--; @@ -993,7 +1008,7 @@ unittest.expect(o.createDisposition, unittest.equals('foo')); checkTableReference(o.destinationTable); checkTableReference(o.sourceTable); - checkUnnamed3391(o.sourceTables); + checkUnnamed3205(o.sourceTables); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationTableCopy--; @@ -1034,14 +1049,14 @@ buildCounterJobListJobs--; } -buildUnnamed3392() { +buildUnnamed3206() { var o = new core.List<api.JobListJobs>(); o.add(buildJobListJobs()); o.add(buildJobListJobs()); return o; } -checkUnnamed3392(core.List<api.JobListJobs> o) { +checkUnnamed3206(core.List<api.JobListJobs> o) { unittest.expect(o, unittest.hasLength(2)); checkJobListJobs(o[0]); checkJobListJobs(o[1]); @@ -1053,7 +1068,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { o.etag = "foo"; - o.jobs = buildUnnamed3392(); + o.jobs = buildUnnamed3206(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1065,7 +1080,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3392(o.jobs); + checkUnnamed3206(o.jobs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1124,40 +1139,40 @@ buildCounterJobStatistics--; } -buildUnnamed3393() { +buildUnnamed3207() { var o = new core.List<api.ExplainQueryStage>(); o.add(buildExplainQueryStage()); o.add(buildExplainQueryStage()); return o; } -checkUnnamed3393(core.List<api.ExplainQueryStage> o) { +checkUnnamed3207(core.List<api.ExplainQueryStage> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStage(o[0]); checkExplainQueryStage(o[1]); } -buildUnnamed3394() { +buildUnnamed3208() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3394(core.List<api.TableReference> o) { +checkUnnamed3208(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); } -buildUnnamed3395() { +buildUnnamed3209() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3395(core.List<api.QueryParameter> o) { +checkUnnamed3209(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1171,12 +1186,12 @@ o.billingTier = 42; o.cacheHit = true; o.numDmlAffectedRows = "foo"; - o.queryPlan = buildUnnamed3393(); - o.referencedTables = buildUnnamed3394(); + o.queryPlan = buildUnnamed3207(); + o.referencedTables = buildUnnamed3208(); o.schema = buildTableSchema(); o.totalBytesBilled = "foo"; o.totalBytesProcessed = "foo"; - o.undeclaredQueryParameters = buildUnnamed3395(); + o.undeclaredQueryParameters = buildUnnamed3209(); } buildCounterJobStatistics2--; return o; @@ -1188,12 +1203,12 @@ unittest.expect(o.billingTier, unittest.equals(42)); unittest.expect(o.cacheHit, unittest.isTrue); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); - checkUnnamed3393(o.queryPlan); - checkUnnamed3394(o.referencedTables); + checkUnnamed3207(o.queryPlan); + checkUnnamed3208(o.referencedTables); checkTableSchema(o.schema); unittest.expect(o.totalBytesBilled, unittest.equals('foo')); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); - checkUnnamed3395(o.undeclaredQueryParameters); + checkUnnamed3209(o.undeclaredQueryParameters); } buildCounterJobStatistics2--; } @@ -1223,14 +1238,14 @@ buildCounterJobStatistics3--; } -buildUnnamed3396() { +buildUnnamed3210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3396(core.List<core.String> o) { +checkUnnamed3210(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1241,7 +1256,7 @@ var o = new api.JobStatistics4(); buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - o.destinationUriFileCounts = buildUnnamed3396(); + o.destinationUriFileCounts = buildUnnamed3210(); } buildCounterJobStatistics4--; return o; @@ -1250,19 +1265,19 @@ checkJobStatistics4(api.JobStatistics4 o) { buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - checkUnnamed3396(o.destinationUriFileCounts); + checkUnnamed3210(o.destinationUriFileCounts); } buildCounterJobStatistics4--; } -buildUnnamed3397() { +buildUnnamed3211() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3397(core.List<api.ErrorProto> o) { +checkUnnamed3211(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -1274,7 +1289,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { o.errorResult = buildErrorProto(); - o.errors = buildUnnamed3397(); + o.errors = buildUnnamed3211(); o.state = "foo"; } buildCounterJobStatus--; @@ -1285,7 +1300,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { checkErrorProto(o.errorResult); - checkUnnamed3397(o.errors); + checkUnnamed3211(o.errors); unittest.expect(o.state, unittest.equals('foo')); } buildCounterJobStatus--; @@ -1331,14 +1346,14 @@ buildCounterProjectListProjects--; } -buildUnnamed3398() { +buildUnnamed3212() { var o = new core.List<api.ProjectListProjects>(); o.add(buildProjectListProjects()); o.add(buildProjectListProjects()); return o; } -checkUnnamed3398(core.List<api.ProjectListProjects> o) { +checkUnnamed3212(core.List<api.ProjectListProjects> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectListProjects(o[0]); checkProjectListProjects(o[1]); @@ -1352,7 +1367,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed3398(); + o.projects = buildUnnamed3212(); o.totalItems = 42; } buildCounterProjectList--; @@ -1365,7 +1380,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3398(o.projects); + checkUnnamed3212(o.projects); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterProjectList--; @@ -1436,14 +1451,14 @@ buildCounterQueryParameterTypeStructTypes--; } -buildUnnamed3399() { +buildUnnamed3213() { var o = new core.List<api.QueryParameterTypeStructTypes>(); o.add(buildQueryParameterTypeStructTypes()); o.add(buildQueryParameterTypeStructTypes()); return o; } -checkUnnamed3399(core.List<api.QueryParameterTypeStructTypes> o) { +checkUnnamed3213(core.List<api.QueryParameterTypeStructTypes> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterTypeStructTypes(o[0]); checkQueryParameterTypeStructTypes(o[1]); @@ -1455,7 +1470,7 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { o.arrayType = buildQueryParameterType(); - o.structTypes = buildUnnamed3399(); + o.structTypes = buildUnnamed3213(); o.type = "foo"; } buildCounterQueryParameterType--; @@ -1466,36 +1481,36 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { checkQueryParameterType(o.arrayType); - checkUnnamed3399(o.structTypes); + checkUnnamed3213(o.structTypes); unittest.expect(o.type, unittest.equals('foo')); } buildCounterQueryParameterType--; } -buildUnnamed3400() { +buildUnnamed3214() { var o = new core.List<api.QueryParameterValue>(); o.add(buildQueryParameterValue()); o.add(buildQueryParameterValue()); return o; } -checkUnnamed3400(core.List<api.QueryParameterValue> o) { +checkUnnamed3214(core.List<api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o[0]); checkQueryParameterValue(o[1]); } -buildUnnamed3401() { - var o = new core.List<api.QueryParameterValue>(); - o.add(buildQueryParameterValue()); - o.add(buildQueryParameterValue()); +buildUnnamed3215() { + var o = new core.Map<core.String, api.QueryParameterValue>(); + o["x"] = buildQueryParameterValue(); + o["y"] = buildQueryParameterValue(); return o; } -checkUnnamed3401(core.List<api.QueryParameterValue> o) { +checkUnnamed3215(core.Map<core.String, api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); - checkQueryParameterValue(o[0]); - checkQueryParameterValue(o[1]); + checkQueryParameterValue(o["x"]); + checkQueryParameterValue(o["y"]); } core.int buildCounterQueryParameterValue = 0; @@ -1503,8 +1518,8 @@ var o = new api.QueryParameterValue(); buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - o.arrayValues = buildUnnamed3400(); - o.structValues = buildUnnamed3401(); + o.arrayValues = buildUnnamed3214(); + o.structValues = buildUnnamed3215(); o.value = "foo"; } buildCounterQueryParameterValue--; @@ -1514,21 +1529,21 @@ checkQueryParameterValue(api.QueryParameterValue o) { buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - checkUnnamed3400(o.arrayValues); - checkUnnamed3401(o.structValues); + checkUnnamed3214(o.arrayValues); + checkUnnamed3215(o.structValues); unittest.expect(o.value, unittest.equals('foo')); } buildCounterQueryParameterValue--; } -buildUnnamed3402() { +buildUnnamed3216() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3402(core.List<api.QueryParameter> o) { +checkUnnamed3216(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1546,7 +1561,7 @@ o.parameterMode = "foo"; o.preserveNulls = true; o.query = "foo"; - o.queryParameters = buildUnnamed3402(); + o.queryParameters = buildUnnamed3216(); o.timeoutMs = 42; o.useLegacySql = true; o.useQueryCache = true; @@ -1565,7 +1580,7 @@ unittest.expect(o.parameterMode, unittest.equals('foo')); unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3402(o.queryParameters); + checkUnnamed3216(o.queryParameters); unittest.expect(o.timeoutMs, unittest.equals(42)); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); @@ -1573,27 +1588,27 @@ buildCounterQueryRequest--; } -buildUnnamed3403() { +buildUnnamed3217() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3403(core.List<api.ErrorProto> o) { +checkUnnamed3217(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3404() { +buildUnnamed3218() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3404(core.List<api.TableRow> o) { +checkUnnamed3218(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1605,13 +1620,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed3403(); + o.errors = buildUnnamed3217(); o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3404(); + o.rows = buildUnnamed3218(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -1624,13 +1639,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3403(o.errors); + checkUnnamed3217(o.errors); unittest.expect(o.jobComplete, unittest.isTrue); checkJobReference(o.jobReference); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3404(o.rows); + checkUnnamed3218(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -1758,14 +1773,14 @@ buildCounterTableDataInsertAllRequestRows--; } -buildUnnamed3405() { +buildUnnamed3219() { var o = new core.List<api.TableDataInsertAllRequestRows>(); o.add(buildTableDataInsertAllRequestRows()); o.add(buildTableDataInsertAllRequestRows()); return o; } -checkUnnamed3405(core.List<api.TableDataInsertAllRequestRows> o) { +checkUnnamed3219(core.List<api.TableDataInsertAllRequestRows> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllRequestRows(o[0]); checkTableDataInsertAllRequestRows(o[1]); @@ -1778,7 +1793,7 @@ if (buildCounterTableDataInsertAllRequest < 3) { o.ignoreUnknownValues = true; o.kind = "foo"; - o.rows = buildUnnamed3405(); + o.rows = buildUnnamed3219(); o.skipInvalidRows = true; o.templateSuffix = "foo"; } @@ -1791,21 +1806,21 @@ if (buildCounterTableDataInsertAllRequest < 3) { unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3405(o.rows); + checkUnnamed3219(o.rows); unittest.expect(o.skipInvalidRows, unittest.isTrue); unittest.expect(o.templateSuffix, unittest.equals('foo')); } buildCounterTableDataInsertAllRequest--; } -buildUnnamed3406() { +buildUnnamed3220() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3406(core.List<api.ErrorProto> o) { +checkUnnamed3220(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -1816,7 +1831,7 @@ var o = new api.TableDataInsertAllResponseInsertErrors(); buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - o.errors = buildUnnamed3406(); + o.errors = buildUnnamed3220(); o.index = 42; } buildCounterTableDataInsertAllResponseInsertErrors--; @@ -1826,20 +1841,20 @@ checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsertErrors o) { buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - checkUnnamed3406(o.errors); + checkUnnamed3220(o.errors); unittest.expect(o.index, unittest.equals(42)); } buildCounterTableDataInsertAllResponseInsertErrors--; } -buildUnnamed3407() { +buildUnnamed3221() { var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); o.add(buildTableDataInsertAllResponseInsertErrors()); o.add(buildTableDataInsertAllResponseInsertErrors()); return o; } -checkUnnamed3407(core.List<api.TableDataInsertAllResponseInsertErrors> o) { +checkUnnamed3221(core.List<api.TableDataInsertAllResponseInsertErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllResponseInsertErrors(o[0]); checkTableDataInsertAllResponseInsertErrors(o[1]); @@ -1850,7 +1865,7 @@ var o = new api.TableDataInsertAllResponse(); buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - o.insertErrors = buildUnnamed3407(); + o.insertErrors = buildUnnamed3221(); o.kind = "foo"; } buildCounterTableDataInsertAllResponse--; @@ -1860,20 +1875,20 @@ checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - checkUnnamed3407(o.insertErrors); + checkUnnamed3221(o.insertErrors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTableDataInsertAllResponse--; } -buildUnnamed3408() { +buildUnnamed3222() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3408(core.List<api.TableRow> o) { +checkUnnamed3222(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1887,7 +1902,7 @@ o.etag = "foo"; o.kind = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3408(); + o.rows = buildUnnamed3222(); o.totalRows = "foo"; } buildCounterTableDataList--; @@ -1900,20 +1915,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3408(o.rows); + checkUnnamed3222(o.rows); unittest.expect(o.totalRows, unittest.equals('foo')); } buildCounterTableDataList--; } -buildUnnamed3409() { +buildUnnamed3223() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3409(core.List<api.TableFieldSchema> o) { +checkUnnamed3223(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -1925,7 +1940,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { o.description = "foo"; - o.fields = buildUnnamed3409(); + o.fields = buildUnnamed3223(); o.mode = "foo"; o.name = "foo"; o.type = "foo"; @@ -1938,7 +1953,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3409(o.fields); + checkUnnamed3223(o.fields); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1973,14 +1988,14 @@ buildCounterTableListTables--; } -buildUnnamed3410() { +buildUnnamed3224() { var o = new core.List<api.TableListTables>(); o.add(buildTableListTables()); o.add(buildTableListTables()); return o; } -checkUnnamed3410(core.List<api.TableListTables> o) { +checkUnnamed3224(core.List<api.TableListTables> o) { unittest.expect(o, unittest.hasLength(2)); checkTableListTables(o[0]); checkTableListTables(o[1]); @@ -1994,7 +2009,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.tables = buildUnnamed3410(); + o.tables = buildUnnamed3224(); o.totalItems = 42; } buildCounterTableList--; @@ -2007,7 +2022,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3410(o.tables); + checkUnnamed3224(o.tables); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterTableList--; @@ -2036,14 +2051,14 @@ buildCounterTableReference--; } -buildUnnamed3411() { +buildUnnamed3225() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed3411(core.List<api.TableCell> o) { +checkUnnamed3225(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2054,7 +2069,7 @@ var o = new api.TableRow(); buildCounterTableRow++; if (buildCounterTableRow < 3) { - o.f = buildUnnamed3411(); + o.f = buildUnnamed3225(); } buildCounterTableRow--; return o; @@ -2063,19 +2078,19 @@ checkTableRow(api.TableRow o) { buildCounterTableRow++; if (buildCounterTableRow < 3) { - checkUnnamed3411(o.f); + checkUnnamed3225(o.f); } buildCounterTableRow--; } -buildUnnamed3412() { +buildUnnamed3226() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3412(core.List<api.TableFieldSchema> o) { +checkUnnamed3226(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -2086,7 +2101,7 @@ var o = new api.TableSchema(); buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - o.fields = buildUnnamed3412(); + o.fields = buildUnnamed3226(); } buildCounterTableSchema--; return o; @@ -2095,7 +2110,7 @@ checkTableSchema(api.TableSchema o) { buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - checkUnnamed3412(o.fields); + checkUnnamed3226(o.fields); } buildCounterTableSchema--; } @@ -2142,14 +2157,14 @@ buildCounterUserDefinedFunctionResource--; } -buildUnnamed3413() { +buildUnnamed3227() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3413(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed3227(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -2162,7 +2177,7 @@ if (buildCounterViewDefinition < 3) { o.query = "foo"; o.useLegacySql = true; - o.userDefinedFunctionResources = buildUnnamed3413(); + o.userDefinedFunctionResources = buildUnnamed3227(); } buildCounterViewDefinition--; return o; @@ -2173,19 +2188,19 @@ if (buildCounterViewDefinition < 3) { unittest.expect(o.query, unittest.equals('foo')); unittest.expect(o.useLegacySql, unittest.isTrue); - checkUnnamed3413(o.userDefinedFunctionResources); + checkUnnamed3227(o.userDefinedFunctionResources); } buildCounterViewDefinition--; } -buildUnnamed3414() { +buildUnnamed3228() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3414(core.List<core.String> o) { +checkUnnamed3228(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3080,8 +3095,8 @@ pathOffset += 1; unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("bigquery/v2/")); pathOffset += 12; - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("project/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("projects/")); + pathOffset += 9; index = path.indexOf("/jobs/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); @@ -3316,7 +3331,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_projection = "foo"; - var arg_stateFilter = buildUnnamed3414(); + var arg_stateFilter = buildUnnamed3228(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/blogger/v3_test.dart b/generated/googleapis/test/blogger/v3_test.dart index 2378691..77727df 100644 --- a/generated/googleapis/test/blogger/v3_test.dart +++ b/generated/googleapis/test/blogger/v3_test.dart
@@ -95,14 +95,14 @@ buildCounterBlogPages--; } -buildUnnamed1354() { +buildUnnamed1376() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed1354(core.List<api.Post> o) { +checkUnnamed1376(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -113,7 +113,7 @@ var o = new api.BlogPosts(); buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - o.items = buildUnnamed1354(); + o.items = buildUnnamed1376(); o.selfLink = "foo"; o.totalItems = 42; } @@ -124,7 +124,7 @@ checkBlogPosts(api.BlogPosts o) { buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - checkUnnamed1354(o.items); + checkUnnamed1376(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -174,27 +174,27 @@ buildCounterBlog--; } -buildUnnamed1355() { +buildUnnamed1377() { var o = new core.List<api.BlogUserInfo>(); o.add(buildBlogUserInfo()); o.add(buildBlogUserInfo()); return o; } -checkUnnamed1355(core.List<api.BlogUserInfo> o) { +checkUnnamed1377(core.List<api.BlogUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBlogUserInfo(o[0]); checkBlogUserInfo(o[1]); } -buildUnnamed1356() { +buildUnnamed1378() { var o = new core.List<api.Blog>(); o.add(buildBlog()); o.add(buildBlog()); return o; } -checkUnnamed1356(core.List<api.Blog> o) { +checkUnnamed1378(core.List<api.Blog> o) { unittest.expect(o, unittest.hasLength(2)); checkBlog(o[0]); checkBlog(o[1]); @@ -205,8 +205,8 @@ var o = new api.BlogList(); buildCounterBlogList++; if (buildCounterBlogList < 3) { - o.blogUserInfos = buildUnnamed1355(); - o.items = buildUnnamed1356(); + o.blogUserInfos = buildUnnamed1377(); + o.items = buildUnnamed1378(); o.kind = "foo"; } buildCounterBlogList--; @@ -216,8 +216,8 @@ checkBlogList(api.BlogList o) { buildCounterBlogList++; if (buildCounterBlogList < 3) { - checkUnnamed1355(o.blogUserInfos); - checkUnnamed1356(o.items); + checkUnnamed1377(o.blogUserInfos); + checkUnnamed1378(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBlogList--; @@ -415,14 +415,14 @@ buildCounterComment--; } -buildUnnamed1357() { +buildUnnamed1379() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1357(core.List<api.Comment> o) { +checkUnnamed1379(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -434,7 +434,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { o.etag = "foo"; - o.items = buildUnnamed1357(); + o.items = buildUnnamed1379(); o.kind = "foo"; o.nextPageToken = "foo"; o.prevPageToken = "foo"; @@ -447,7 +447,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1357(o.items); + checkUnnamed1379(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.prevPageToken, unittest.equals('foo')); @@ -559,14 +559,14 @@ buildCounterPage--; } -buildUnnamed1358() { +buildUnnamed1380() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1358(core.List<api.Page> o) { +checkUnnamed1380(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -578,7 +578,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { o.etag = "foo"; - o.items = buildUnnamed1358(); + o.items = buildUnnamed1380(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -590,7 +590,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1358(o.items); + checkUnnamed1380(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -618,14 +618,14 @@ buildCounterPageviewsCounts--; } -buildUnnamed1359() { +buildUnnamed1381() { var o = new core.List<api.PageviewsCounts>(); o.add(buildPageviewsCounts()); o.add(buildPageviewsCounts()); return o; } -checkUnnamed1359(core.List<api.PageviewsCounts> o) { +checkUnnamed1381(core.List<api.PageviewsCounts> o) { unittest.expect(o, unittest.hasLength(2)); checkPageviewsCounts(o[0]); checkPageviewsCounts(o[1]); @@ -637,7 +637,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { o.blogId = "foo"; - o.counts = buildUnnamed1359(); + o.counts = buildUnnamed1381(); o.kind = "foo"; } buildCounterPageviews--; @@ -648,7 +648,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { unittest.expect(o.blogId, unittest.equals('foo')); - checkUnnamed1359(o.counts); + checkUnnamed1381(o.counts); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPageviews--; @@ -736,27 +736,27 @@ buildCounterPostImages--; } -buildUnnamed1360() { +buildUnnamed1382() { var o = new core.List<api.PostImages>(); o.add(buildPostImages()); o.add(buildPostImages()); return o; } -checkUnnamed1360(core.List<api.PostImages> o) { +checkUnnamed1382(core.List<api.PostImages> o) { unittest.expect(o, unittest.hasLength(2)); checkPostImages(o[0]); checkPostImages(o[1]); } -buildUnnamed1361() { +buildUnnamed1383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1361(core.List<core.String> o) { +checkUnnamed1383(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -787,14 +787,14 @@ buildCounterPostLocation--; } -buildUnnamed1362() { +buildUnnamed1384() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1362(core.List<api.Comment> o) { +checkUnnamed1384(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -805,7 +805,7 @@ var o = new api.PostReplies(); buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - o.items = buildUnnamed1362(); + o.items = buildUnnamed1384(); o.selfLink = "foo"; o.totalItems = "foo"; } @@ -816,7 +816,7 @@ checkPostReplies(api.PostReplies o) { buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - checkUnnamed1362(o.items); + checkUnnamed1384(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals('foo')); } @@ -834,9 +834,9 @@ o.customMetaData = "foo"; o.etag = "foo"; o.id = "foo"; - o.images = buildUnnamed1360(); + o.images = buildUnnamed1382(); o.kind = "foo"; - o.labels = buildUnnamed1361(); + o.labels = buildUnnamed1383(); o.location = buildPostLocation(); o.published = core.DateTime.parse("2002-02-27T14:01:02"); o.readerComments = "foo"; @@ -861,9 +861,9 @@ unittest.expect(o.customMetaData, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1360(o.images); + checkUnnamed1382(o.images); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1361(o.labels); + checkUnnamed1383(o.labels); checkPostLocation(o.location); unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.readerComments, unittest.equals('foo')); @@ -878,14 +878,14 @@ buildCounterPost--; } -buildUnnamed1363() { +buildUnnamed1385() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed1363(core.List<api.Post> o) { +checkUnnamed1385(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -897,7 +897,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { o.etag = "foo"; - o.items = buildUnnamed1363(); + o.items = buildUnnamed1385(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -909,7 +909,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1363(o.items); + checkUnnamed1385(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -966,14 +966,14 @@ buildCounterPostUserInfo--; } -buildUnnamed1364() { +buildUnnamed1386() { var o = new core.List<api.PostUserInfo>(); o.add(buildPostUserInfo()); o.add(buildPostUserInfo()); return o; } -checkUnnamed1364(core.List<api.PostUserInfo> o) { +checkUnnamed1386(core.List<api.PostUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPostUserInfo(o[0]); checkPostUserInfo(o[1]); @@ -984,7 +984,7 @@ var o = new api.PostUserInfosList(); buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - o.items = buildUnnamed1364(); + o.items = buildUnnamed1386(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -995,7 +995,7 @@ checkPostUserInfosList(api.PostUserInfosList o) { buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - checkUnnamed1364(o.items); + checkUnnamed1386(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1079,105 +1079,105 @@ buildCounterUser--; } -buildUnnamed1365() { +buildUnnamed1387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1365(core.List<core.String> o) { +checkUnnamed1387(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1366() { +buildUnnamed1388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1366(core.List<core.String> o) { +checkUnnamed1388(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1367() { +buildUnnamed1389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1367(core.List<core.String> o) { +checkUnnamed1389(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1368() { +buildUnnamed1390() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1368(core.List<core.String> o) { +checkUnnamed1390(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1369() { +buildUnnamed1391() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1369(core.List<core.String> o) { +checkUnnamed1391(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1370() { +buildUnnamed1392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1370(core.List<core.String> o) { +checkUnnamed1392(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1371() { +buildUnnamed1393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1371(core.List<core.String> o) { +checkUnnamed1393(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1372() { +buildUnnamed1394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1372(core.List<core.String> o) { +checkUnnamed1394(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1672,8 +1672,8 @@ api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; var arg_userId = "foo"; var arg_fetchUserInfo = true; - var arg_role = buildUnnamed1365(); - var arg_status = buildUnnamed1366(); + var arg_role = buildUnnamed1387(); + var arg_status = buildUnnamed1388(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1941,7 +1941,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1367(); + var arg_status = buildUnnamed1389(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -2015,7 +2015,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1368(); + var arg_status = buildUnnamed1390(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2217,7 +2217,7 @@ var mock = new HttpServerMock(); api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; var arg_blogId = "foo"; - var arg_range = buildUnnamed1369(); + var arg_range = buildUnnamed1391(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2452,7 +2452,7 @@ var arg_fetchBodies = true; var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_status = buildUnnamed1370(); + var arg_status = buildUnnamed1392(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -2843,7 +2843,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1371(); + var arg_status = buildUnnamed1393(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -3168,7 +3168,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1372(); + var arg_status = buildUnnamed1394(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/books/v1_test.dart b/generated/googleapis/test/books/v1_test.dart index a8429e9..16f53e3 100644 --- a/generated/googleapis/test/books/v1_test.dart +++ b/generated/googleapis/test/books/v1_test.dart
@@ -128,14 +128,14 @@ buildCounterAnnotationLayerSummary--; } -buildUnnamed988() { +buildUnnamed1014() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed988(core.List<core.String> o) { +checkUnnamed1014(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -158,7 +158,7 @@ o.kind = "foo"; o.layerId = "foo"; o.layerSummary = buildAnnotationLayerSummary(); - o.pageIds = buildUnnamed988(); + o.pageIds = buildUnnamed1014(); o.selectedText = "foo"; o.selfLink = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -183,7 +183,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); checkAnnotationLayerSummary(o.layerSummary); - checkUnnamed988(o.pageIds); + checkUnnamed1014(o.pageIds); unittest.expect(o.selectedText, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -227,14 +227,14 @@ buildCounterAnnotationdata--; } -buildUnnamed989() { +buildUnnamed1015() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed989(core.List<api.Annotation> o) { +checkUnnamed1015(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -245,7 +245,7 @@ var o = new api.Annotations(); buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - o.items = buildUnnamed989(); + o.items = buildUnnamed1015(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -257,7 +257,7 @@ checkAnnotations(api.Annotations o) { buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - checkUnnamed989(o.items); + checkUnnamed1015(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -292,14 +292,14 @@ buildCounterAnnotationsSummaryLayers--; } -buildUnnamed990() { +buildUnnamed1016() { var o = new core.List<api.AnnotationsSummaryLayers>(); o.add(buildAnnotationsSummaryLayers()); o.add(buildAnnotationsSummaryLayers()); return o; } -checkUnnamed990(core.List<api.AnnotationsSummaryLayers> o) { +checkUnnamed1016(core.List<api.AnnotationsSummaryLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationsSummaryLayers(o[0]); checkAnnotationsSummaryLayers(o[1]); @@ -311,7 +311,7 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { o.kind = "foo"; - o.layers = buildUnnamed990(); + o.layers = buildUnnamed1016(); } buildCounterAnnotationsSummary--; return o; @@ -321,19 +321,19 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed990(o.layers); + checkUnnamed1016(o.layers); } buildCounterAnnotationsSummary--; } -buildUnnamed991() { +buildUnnamed1017() { var o = new core.List<api.Annotationdata>(); o.add(buildAnnotationdata()); o.add(buildAnnotationdata()); return o; } -checkUnnamed991(core.List<api.Annotationdata> o) { +checkUnnamed1017(core.List<api.Annotationdata> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationdata(o[0]); checkAnnotationdata(o[1]); @@ -344,7 +344,7 @@ var o = new api.Annotationsdata(); buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - o.items = buildUnnamed991(); + o.items = buildUnnamed1017(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -356,7 +356,7 @@ checkAnnotationsdata(api.Annotationsdata o) { buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - checkUnnamed991(o.items); + checkUnnamed1017(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -470,14 +470,14 @@ buildCounterBookshelf--; } -buildUnnamed992() { +buildUnnamed1018() { var o = new core.List<api.Bookshelf>(); o.add(buildBookshelf()); o.add(buildBookshelf()); return o; } -checkUnnamed992(core.List<api.Bookshelf> o) { +checkUnnamed1018(core.List<api.Bookshelf> o) { unittest.expect(o, unittest.hasLength(2)); checkBookshelf(o[0]); checkBookshelf(o[1]); @@ -488,7 +488,7 @@ var o = new api.Bookshelves(); buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - o.items = buildUnnamed992(); + o.items = buildUnnamed1018(); o.kind = "foo"; } buildCounterBookshelves--; @@ -498,7 +498,7 @@ checkBookshelves(api.Bookshelves o) { buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - checkUnnamed992(o.items); + checkUnnamed1018(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBookshelves--; @@ -527,14 +527,14 @@ buildCounterCategoryItems--; } -buildUnnamed993() { +buildUnnamed1019() { var o = new core.List<api.CategoryItems>(); o.add(buildCategoryItems()); o.add(buildCategoryItems()); return o; } -checkUnnamed993(core.List<api.CategoryItems> o) { +checkUnnamed1019(core.List<api.CategoryItems> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryItems(o[0]); checkCategoryItems(o[1]); @@ -545,7 +545,7 @@ var o = new api.Category(); buildCounterCategory++; if (buildCounterCategory < 3) { - o.items = buildUnnamed993(); + o.items = buildUnnamed1019(); o.kind = "foo"; } buildCounterCategory--; @@ -555,7 +555,7 @@ checkCategory(api.Category o) { buildCounterCategory++; if (buildCounterCategory < 3) { - checkUnnamed993(o.items); + checkUnnamed1019(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCategory--; @@ -682,14 +682,14 @@ buildCounterDictlayerdataDictWordsDerivatives--; } -buildUnnamed994() { +buildUnnamed1020() { var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); o.add(buildDictlayerdataDictWordsDerivatives()); o.add(buildDictlayerdataDictWordsDerivatives()); return o; } -checkUnnamed994(core.List<api.DictlayerdataDictWordsDerivatives> o) { +checkUnnamed1020(core.List<api.DictlayerdataDictWordsDerivatives> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsDerivatives(o[0]); checkDictlayerdataDictWordsDerivatives(o[1]); @@ -737,14 +737,14 @@ buildCounterDictlayerdataDictWordsExamples--; } -buildUnnamed995() { +buildUnnamed1021() { var o = new core.List<api.DictlayerdataDictWordsExamples>(); o.add(buildDictlayerdataDictWordsExamples()); o.add(buildDictlayerdataDictWordsExamples()); return o; } -checkUnnamed995(core.List<api.DictlayerdataDictWordsExamples> o) { +checkUnnamed1021(core.List<api.DictlayerdataDictWordsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsExamples(o[0]); checkDictlayerdataDictWordsExamples(o[1]); @@ -771,14 +771,14 @@ buildCounterDictlayerdataDictWordsSensesConjugations--; } -buildUnnamed996() { +buildUnnamed1022() { var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); o.add(buildDictlayerdataDictWordsSensesConjugations()); o.add(buildDictlayerdataDictWordsSensesConjugations()); return o; } -checkUnnamed996(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { +checkUnnamed1022(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesConjugations(o[0]); checkDictlayerdataDictWordsSensesConjugations(o[1]); @@ -826,14 +826,14 @@ buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; } -buildUnnamed997() { +buildUnnamed1023() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); return o; } -checkUnnamed997(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) { +checkUnnamed1023(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]); @@ -845,7 +845,7 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { o.definition = "foo"; - o.examples = buildUnnamed997(); + o.examples = buildUnnamed1023(); } buildCounterDictlayerdataDictWordsSensesDefinitions--; return o; @@ -855,19 +855,19 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { unittest.expect(o.definition, unittest.equals('foo')); - checkUnnamed997(o.examples); + checkUnnamed1023(o.examples); } buildCounterDictlayerdataDictWordsSensesDefinitions--; } -buildUnnamed998() { +buildUnnamed1024() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); o.add(buildDictlayerdataDictWordsSensesDefinitions()); o.add(buildDictlayerdataDictWordsSensesDefinitions()); return o; } -checkUnnamed998(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { +checkUnnamed1024(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitions(o[0]); checkDictlayerdataDictWordsSensesDefinitions(o[1]); @@ -936,14 +936,14 @@ buildCounterDictlayerdataDictWordsSensesSynonyms--; } -buildUnnamed999() { +buildUnnamed1025() { var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); o.add(buildDictlayerdataDictWordsSensesSynonyms()); o.add(buildDictlayerdataDictWordsSensesSynonyms()); return o; } -checkUnnamed999(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { +checkUnnamed1025(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesSynonyms(o[0]); checkDictlayerdataDictWordsSensesSynonyms(o[1]); @@ -954,14 +954,14 @@ var o = new api.DictlayerdataDictWordsSenses(); buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - o.conjugations = buildUnnamed996(); - o.definitions = buildUnnamed998(); + o.conjugations = buildUnnamed1022(); + o.definitions = buildUnnamed1024(); o.partOfSpeech = "foo"; o.pronunciation = "foo"; o.pronunciationUrl = "foo"; o.source = buildDictlayerdataDictWordsSensesSource(); o.syllabification = "foo"; - o.synonyms = buildUnnamed999(); + o.synonyms = buildUnnamed1025(); } buildCounterDictlayerdataDictWordsSenses--; return o; @@ -970,26 +970,26 @@ checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - checkUnnamed996(o.conjugations); - checkUnnamed998(o.definitions); + checkUnnamed1022(o.conjugations); + checkUnnamed1024(o.definitions); unittest.expect(o.partOfSpeech, unittest.equals('foo')); unittest.expect(o.pronunciation, unittest.equals('foo')); unittest.expect(o.pronunciationUrl, unittest.equals('foo')); checkDictlayerdataDictWordsSensesSource(o.source); unittest.expect(o.syllabification, unittest.equals('foo')); - checkUnnamed999(o.synonyms); + checkUnnamed1025(o.synonyms); } buildCounterDictlayerdataDictWordsSenses--; } -buildUnnamed1000() { +buildUnnamed1026() { var o = new core.List<api.DictlayerdataDictWordsSenses>(); o.add(buildDictlayerdataDictWordsSenses()); o.add(buildDictlayerdataDictWordsSenses()); return o; } -checkUnnamed1000(core.List<api.DictlayerdataDictWordsSenses> o) { +checkUnnamed1026(core.List<api.DictlayerdataDictWordsSenses> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSenses(o[0]); checkDictlayerdataDictWordsSenses(o[1]); @@ -1021,9 +1021,9 @@ var o = new api.DictlayerdataDictWords(); buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - o.derivatives = buildUnnamed994(); - o.examples = buildUnnamed995(); - o.senses = buildUnnamed1000(); + o.derivatives = buildUnnamed1020(); + o.examples = buildUnnamed1021(); + o.senses = buildUnnamed1026(); o.source = buildDictlayerdataDictWordsSource(); } buildCounterDictlayerdataDictWords--; @@ -1033,22 +1033,22 @@ checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - checkUnnamed994(o.derivatives); - checkUnnamed995(o.examples); - checkUnnamed1000(o.senses); + checkUnnamed1020(o.derivatives); + checkUnnamed1021(o.examples); + checkUnnamed1026(o.senses); checkDictlayerdataDictWordsSource(o.source); } buildCounterDictlayerdataDictWords--; } -buildUnnamed1001() { +buildUnnamed1027() { var o = new core.List<api.DictlayerdataDictWords>(); o.add(buildDictlayerdataDictWords()); o.add(buildDictlayerdataDictWords()); return o; } -checkUnnamed1001(core.List<api.DictlayerdataDictWords> o) { +checkUnnamed1027(core.List<api.DictlayerdataDictWords> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWords(o[0]); checkDictlayerdataDictWords(o[1]); @@ -1060,7 +1060,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { o.source = buildDictlayerdataDictSource(); - o.words = buildUnnamed1001(); + o.words = buildUnnamed1027(); } buildCounterDictlayerdataDict--; return o; @@ -1070,7 +1070,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { checkDictlayerdataDictSource(o.source); - checkUnnamed1001(o.words); + checkUnnamed1027(o.words); } buildCounterDictlayerdataDict--; } @@ -1127,14 +1127,14 @@ buildCounterDiscoveryclustersClustersBannerWithContentContainer--; } -buildUnnamed1002() { +buildUnnamed1028() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1002(core.List<api.Volume> o) { +checkUnnamed1028(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1150,7 +1150,7 @@ o.title = "foo"; o.totalVolumes = 42; o.uid = "foo"; - o.volumes = buildUnnamed1002(); + o.volumes = buildUnnamed1028(); } buildCounterDiscoveryclustersClusters--; return o; @@ -1164,19 +1164,19 @@ unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.totalVolumes, unittest.equals(42)); unittest.expect(o.uid, unittest.equals('foo')); - checkUnnamed1002(o.volumes); + checkUnnamed1028(o.volumes); } buildCounterDiscoveryclustersClusters--; } -buildUnnamed1003() { +buildUnnamed1029() { var o = new core.List<api.DiscoveryclustersClusters>(); o.add(buildDiscoveryclustersClusters()); o.add(buildDiscoveryclustersClusters()); return o; } -checkUnnamed1003(core.List<api.DiscoveryclustersClusters> o) { +checkUnnamed1029(core.List<api.DiscoveryclustersClusters> o) { unittest.expect(o, unittest.hasLength(2)); checkDiscoveryclustersClusters(o[0]); checkDiscoveryclustersClusters(o[1]); @@ -1187,7 +1187,7 @@ var o = new api.Discoveryclusters(); buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - o.clusters = buildUnnamed1003(); + o.clusters = buildUnnamed1029(); o.kind = "foo"; o.totalClusters = 42; } @@ -1198,7 +1198,7 @@ checkDiscoveryclusters(api.Discoveryclusters o) { buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - checkUnnamed1003(o.clusters); + checkUnnamed1029(o.clusters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalClusters, unittest.equals(42)); } @@ -1246,14 +1246,14 @@ buildCounterDownloadAccessRestriction--; } -buildUnnamed1004() { +buildUnnamed1030() { var o = new core.List<api.DownloadAccessRestriction>(); o.add(buildDownloadAccessRestriction()); o.add(buildDownloadAccessRestriction()); return o; } -checkUnnamed1004(core.List<api.DownloadAccessRestriction> o) { +checkUnnamed1030(core.List<api.DownloadAccessRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkDownloadAccessRestriction(o[0]); checkDownloadAccessRestriction(o[1]); @@ -1264,7 +1264,7 @@ var o = new api.DownloadAccesses(); buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - o.downloadAccessList = buildUnnamed1004(); + o.downloadAccessList = buildUnnamed1030(); o.kind = "foo"; } buildCounterDownloadAccesses--; @@ -1274,7 +1274,7 @@ checkDownloadAccesses(api.DownloadAccesses o) { buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - checkUnnamed1004(o.downloadAccessList); + checkUnnamed1030(o.downloadAccessList); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDownloadAccesses--; @@ -1328,30 +1328,30 @@ buildCounterGeolayerdataGeoBoundary--; } -buildUnnamed1005() { +buildUnnamed1031() { var o = new core.List<api.GeolayerdataGeoBoundary>(); o.add(buildGeolayerdataGeoBoundary()); o.add(buildGeolayerdataGeoBoundary()); return o; } -checkUnnamed1005(core.List<api.GeolayerdataGeoBoundary> o) { +checkUnnamed1031(core.List<api.GeolayerdataGeoBoundary> o) { unittest.expect(o, unittest.hasLength(2)); checkGeolayerdataGeoBoundary(o[0]); checkGeolayerdataGeoBoundary(o[1]); } -buildUnnamed1006() { +buildUnnamed1032() { var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); - o.add(buildUnnamed1005()); - o.add(buildUnnamed1005()); + o.add(buildUnnamed1031()); + o.add(buildUnnamed1031()); return o; } -checkUnnamed1006(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { +checkUnnamed1032(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1005(o[0]); - checkUnnamed1005(o[1]); + checkUnnamed1031(o[0]); + checkUnnamed1031(o[1]); } core.int buildCounterGeolayerdataGeoViewportHi = 0; @@ -1422,7 +1422,7 @@ var o = new api.GeolayerdataGeo(); buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - o.boundary = buildUnnamed1006(); + o.boundary = buildUnnamed1032(); o.cachePolicy = "foo"; o.countryCode = "foo"; o.latitude = 42.0; @@ -1438,7 +1438,7 @@ checkGeolayerdataGeo(api.GeolayerdataGeo o) { buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - checkUnnamed1006(o.boundary); + checkUnnamed1032(o.boundary); unittest.expect(o.cachePolicy, unittest.equals('foo')); unittest.expect(o.countryCode, unittest.equals('foo')); unittest.expect(o.latitude, unittest.equals(42.0)); @@ -1473,14 +1473,14 @@ buildCounterGeolayerdata--; } -buildUnnamed1007() { +buildUnnamed1033() { var o = new core.List<api.Layersummary>(); o.add(buildLayersummary()); o.add(buildLayersummary()); return o; } -checkUnnamed1007(core.List<api.Layersummary> o) { +checkUnnamed1033(core.List<api.Layersummary> o) { unittest.expect(o, unittest.hasLength(2)); checkLayersummary(o[0]); checkLayersummary(o[1]); @@ -1491,7 +1491,7 @@ var o = new api.Layersummaries(); buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - o.items = buildUnnamed1007(); + o.items = buildUnnamed1033(); o.kind = "foo"; o.totalItems = 42; } @@ -1502,21 +1502,21 @@ checkLayersummaries(api.Layersummaries o) { buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - checkUnnamed1007(o.items); + checkUnnamed1033(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterLayersummaries--; } -buildUnnamed1008() { +buildUnnamed1034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1008(core.List<core.String> o) { +checkUnnamed1034(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1528,7 +1528,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { o.annotationCount = 42; - o.annotationTypes = buildUnnamed1008(); + o.annotationTypes = buildUnnamed1034(); o.annotationsDataLink = "foo"; o.annotationsLink = "foo"; o.contentVersion = "foo"; @@ -1549,7 +1549,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { unittest.expect(o.annotationCount, unittest.equals(42)); - checkUnnamed1008(o.annotationTypes); + checkUnnamed1034(o.annotationTypes); unittest.expect(o.annotationsDataLink, unittest.equals('foo')); unittest.expect(o.annotationsLink, unittest.equals('foo')); unittest.expect(o.contentVersion, unittest.equals('foo')); @@ -1592,14 +1592,14 @@ buildCounterMetadataItems--; } -buildUnnamed1009() { +buildUnnamed1035() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed1009(core.List<api.MetadataItems> o) { +checkUnnamed1035(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -1610,7 +1610,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed1009(); + o.items = buildUnnamed1035(); o.kind = "foo"; } buildCounterMetadata--; @@ -1620,20 +1620,20 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed1009(o.items); + checkUnnamed1035(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; } -buildUnnamed1010() { +buildUnnamed1036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1010(core.List<core.String> o) { +checkUnnamed1036(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1645,7 +1645,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { o.body = "foo"; - o.crmExperimentIds = buildUnnamed1010(); + o.crmExperimentIds = buildUnnamed1036(); o.docId = "foo"; o.docType = "foo"; o.dontShowNotification = true; @@ -1666,7 +1666,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed1010(o.crmExperimentIds); + checkUnnamed1036(o.crmExperimentIds); unittest.expect(o.docId, unittest.equals('foo')); unittest.expect(o.docType, unittest.equals('foo')); unittest.expect(o.dontShowNotification, unittest.isTrue); @@ -1711,14 +1711,14 @@ buildCounterOffersItemsItems--; } -buildUnnamed1011() { +buildUnnamed1037() { var o = new core.List<api.OffersItemsItems>(); o.add(buildOffersItemsItems()); o.add(buildOffersItemsItems()); return o; } -checkUnnamed1011(core.List<api.OffersItemsItems> o) { +checkUnnamed1037(core.List<api.OffersItemsItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItemsItems(o[0]); checkOffersItemsItems(o[1]); @@ -1732,7 +1732,7 @@ o.artUrl = "foo"; o.gservicesKey = "foo"; o.id = "foo"; - o.items = buildUnnamed1011(); + o.items = buildUnnamed1037(); } buildCounterOffersItems--; return o; @@ -1744,19 +1744,19 @@ unittest.expect(o.artUrl, unittest.equals('foo')); unittest.expect(o.gservicesKey, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1011(o.items); + checkUnnamed1037(o.items); } buildCounterOffersItems--; } -buildUnnamed1012() { +buildUnnamed1038() { var o = new core.List<api.OffersItems>(); o.add(buildOffersItems()); o.add(buildOffersItems()); return o; } -checkUnnamed1012(core.List<api.OffersItems> o) { +checkUnnamed1038(core.List<api.OffersItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItems(o[0]); checkOffersItems(o[1]); @@ -1767,7 +1767,7 @@ var o = new api.Offers(); buildCounterOffers++; if (buildCounterOffers < 3) { - o.items = buildUnnamed1012(); + o.items = buildUnnamed1038(); o.kind = "foo"; } buildCounterOffers--; @@ -1777,7 +1777,7 @@ checkOffers(api.Offers o) { buildCounterOffers++; if (buildCounterOffers < 3) { - checkUnnamed1012(o.items); + checkUnnamed1038(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOffers--; @@ -1943,14 +1943,14 @@ buildCounterSeriesSeries--; } -buildUnnamed1013() { +buildUnnamed1039() { var o = new core.List<api.SeriesSeries>(); o.add(buildSeriesSeries()); o.add(buildSeriesSeries()); return o; } -checkUnnamed1013(core.List<api.SeriesSeries> o) { +checkUnnamed1039(core.List<api.SeriesSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkSeriesSeries(o[0]); checkSeriesSeries(o[1]); @@ -1962,7 +1962,7 @@ buildCounterSeries++; if (buildCounterSeries < 3) { o.kind = "foo"; - o.series = buildUnnamed1013(); + o.series = buildUnnamed1039(); } buildCounterSeries--; return o; @@ -1972,19 +1972,19 @@ buildCounterSeries++; if (buildCounterSeries < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1013(o.series); + checkUnnamed1039(o.series); } buildCounterSeries--; } -buildUnnamed1014() { +buildUnnamed1040() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1014(core.List<api.Volume> o) { +checkUnnamed1040(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1996,7 +1996,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { o.kind = "foo"; - o.member = buildUnnamed1014(); + o.member = buildUnnamed1040(); o.nextPageToken = "foo"; } buildCounterSeriesmembership--; @@ -2007,7 +2007,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1014(o.member); + checkUnnamed1040(o.member); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSeriesmembership--; @@ -2228,14 +2228,14 @@ buildCounterVolumeLayerInfoLayers--; } -buildUnnamed1015() { +buildUnnamed1041() { var o = new core.List<api.VolumeLayerInfoLayers>(); o.add(buildVolumeLayerInfoLayers()); o.add(buildVolumeLayerInfoLayers()); return o; } -checkUnnamed1015(core.List<api.VolumeLayerInfoLayers> o) { +checkUnnamed1041(core.List<api.VolumeLayerInfoLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeLayerInfoLayers(o[0]); checkVolumeLayerInfoLayers(o[1]); @@ -2246,7 +2246,7 @@ var o = new api.VolumeLayerInfo(); buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - o.layers = buildUnnamed1015(); + o.layers = buildUnnamed1041(); } buildCounterVolumeLayerInfo--; return o; @@ -2255,7 +2255,7 @@ checkVolumeLayerInfo(api.VolumeLayerInfo o) { buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - checkUnnamed1015(o.layers); + checkUnnamed1041(o.layers); } buildCounterVolumeLayerInfo--; } @@ -2390,14 +2390,14 @@ buildCounterVolumeSaleInfoOffers--; } -buildUnnamed1016() { +buildUnnamed1042() { var o = new core.List<api.VolumeSaleInfoOffers>(); o.add(buildVolumeSaleInfoOffers()); o.add(buildVolumeSaleInfoOffers()); return o; } -checkUnnamed1016(core.List<api.VolumeSaleInfoOffers> o) { +checkUnnamed1042(core.List<api.VolumeSaleInfoOffers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeSaleInfoOffers(o[0]); checkVolumeSaleInfoOffers(o[1]); @@ -2433,7 +2433,7 @@ o.country = "foo"; o.isEbook = true; o.listPrice = buildVolumeSaleInfoListPrice(); - o.offers = buildUnnamed1016(); + o.offers = buildUnnamed1042(); o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); o.retailPrice = buildVolumeSaleInfoRetailPrice(); o.saleability = "foo"; @@ -2449,7 +2449,7 @@ unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.isEbook, unittest.isTrue); checkVolumeSaleInfoListPrice(o.listPrice); - checkUnnamed1016(o.offers); + checkUnnamed1042(o.offers); unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkVolumeSaleInfoRetailPrice(o.retailPrice); unittest.expect(o.saleability, unittest.equals('foo')); @@ -2619,27 +2619,27 @@ buildCounterVolumeUserInfo--; } -buildUnnamed1017() { +buildUnnamed1043() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1017(core.List<core.String> o) { +checkUnnamed1043(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1018() { +buildUnnamed1044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1018(core.List<core.String> o) { +checkUnnamed1044(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2718,14 +2718,14 @@ buildCounterVolumeVolumeInfoIndustryIdentifiers--; } -buildUnnamed1019() { +buildUnnamed1045() { var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); return o; } -checkUnnamed1019(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { +checkUnnamed1045(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeVolumeInfoIndustryIdentifiers(o[0]); checkVolumeVolumeInfoIndustryIdentifiers(o[1]); @@ -2762,15 +2762,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { o.allowAnonLogging = true; - o.authors = buildUnnamed1017(); + o.authors = buildUnnamed1043(); o.averageRating = 42.0; o.canonicalVolumeLink = "foo"; - o.categories = buildUnnamed1018(); + o.categories = buildUnnamed1044(); o.contentVersion = "foo"; o.description = "foo"; o.dimensions = buildVolumeVolumeInfoDimensions(); o.imageLinks = buildVolumeVolumeInfoImageLinks(); - o.industryIdentifiers = buildUnnamed1019(); + o.industryIdentifiers = buildUnnamed1045(); o.infoLink = "foo"; o.language = "foo"; o.mainCategory = "foo"; @@ -2797,15 +2797,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { unittest.expect(o.allowAnonLogging, unittest.isTrue); - checkUnnamed1017(o.authors); + checkUnnamed1043(o.authors); unittest.expect(o.averageRating, unittest.equals(42.0)); unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); - checkUnnamed1018(o.categories); + checkUnnamed1044(o.categories); unittest.expect(o.contentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkVolumeVolumeInfoDimensions(o.dimensions); checkVolumeVolumeInfoImageLinks(o.imageLinks); - checkUnnamed1019(o.industryIdentifiers); + checkUnnamed1045(o.industryIdentifiers); unittest.expect(o.infoLink, unittest.equals('foo')); unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mainCategory, unittest.equals('foo')); @@ -2866,14 +2866,14 @@ buildCounterVolume--; } -buildUnnamed1020() { +buildUnnamed1046() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1020(core.List<api.Volume> o) { +checkUnnamed1046(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -2884,7 +2884,7 @@ var o = new api.Volume2(); buildCounterVolume2++; if (buildCounterVolume2 < 3) { - o.items = buildUnnamed1020(); + o.items = buildUnnamed1046(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2895,7 +2895,7 @@ checkVolume2(api.Volume2 o) { buildCounterVolume2++; if (buildCounterVolume2 < 3) { - checkUnnamed1020(o.items); + checkUnnamed1046(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2927,14 +2927,14 @@ buildCounterVolumeannotationContentRanges--; } -buildUnnamed1021() { +buildUnnamed1047() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1021(core.List<core.String> o) { +checkUnnamed1047(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2954,7 +2954,7 @@ o.id = "foo"; o.kind = "foo"; o.layerId = "foo"; - o.pageIds = buildUnnamed1021(); + o.pageIds = buildUnnamed1047(); o.selectedText = "foo"; o.selfLink = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2976,7 +2976,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); - checkUnnamed1021(o.pageIds); + checkUnnamed1047(o.pageIds); unittest.expect(o.selectedText, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2985,14 +2985,14 @@ buildCounterVolumeannotation--; } -buildUnnamed1022() { +buildUnnamed1048() { var o = new core.List<api.Volumeannotation>(); o.add(buildVolumeannotation()); o.add(buildVolumeannotation()); return o; } -checkUnnamed1022(core.List<api.Volumeannotation> o) { +checkUnnamed1048(core.List<api.Volumeannotation> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeannotation(o[0]); checkVolumeannotation(o[1]); @@ -3003,7 +3003,7 @@ var o = new api.Volumeannotations(); buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - o.items = buildUnnamed1022(); + o.items = buildUnnamed1048(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -3016,7 +3016,7 @@ checkVolumeannotations(api.Volumeannotations o) { buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - checkUnnamed1022(o.items); + checkUnnamed1048(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -3025,14 +3025,14 @@ buildCounterVolumeannotations--; } -buildUnnamed1023() { +buildUnnamed1049() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1023(core.List<api.Volume> o) { +checkUnnamed1049(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -3043,7 +3043,7 @@ var o = new api.Volumes(); buildCounterVolumes++; if (buildCounterVolumes < 3) { - o.items = buildUnnamed1023(); + o.items = buildUnnamed1049(); o.kind = "foo"; o.totalItems = 42; } @@ -3054,7 +3054,7 @@ checkVolumes(api.Volumes o) { buildCounterVolumes++; if (buildCounterVolumes < 3) { - checkUnnamed1023(o.items); + checkUnnamed1049(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -3082,14 +3082,14 @@ buildCounterVolumeseriesinfoVolumeSeriesIssue--; } -buildUnnamed1024() { +buildUnnamed1050() { var o = new core.List<api.VolumeseriesinfoVolumeSeriesIssue>(); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); return o; } -checkUnnamed1024(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { +checkUnnamed1050(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeriesIssue(o[0]); checkVolumeseriesinfoVolumeSeriesIssue(o[1]); @@ -3100,7 +3100,7 @@ var o = new api.VolumeseriesinfoVolumeSeries(); buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - o.issue = buildUnnamed1024(); + o.issue = buildUnnamed1050(); o.orderNumber = 42; o.seriesBookType = "foo"; o.seriesId = "foo"; @@ -3112,7 +3112,7 @@ checkVolumeseriesinfoVolumeSeries(api.VolumeseriesinfoVolumeSeries o) { buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - checkUnnamed1024(o.issue); + checkUnnamed1050(o.issue); unittest.expect(o.orderNumber, unittest.equals(42)); unittest.expect(o.seriesBookType, unittest.equals('foo')); unittest.expect(o.seriesId, unittest.equals('foo')); @@ -3120,14 +3120,14 @@ buildCounterVolumeseriesinfoVolumeSeries--; } -buildUnnamed1025() { +buildUnnamed1051() { var o = new core.List<api.VolumeseriesinfoVolumeSeries>(); o.add(buildVolumeseriesinfoVolumeSeries()); o.add(buildVolumeseriesinfoVolumeSeries()); return o; } -checkUnnamed1025(core.List<api.VolumeseriesinfoVolumeSeries> o) { +checkUnnamed1051(core.List<api.VolumeseriesinfoVolumeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeries(o[0]); checkVolumeseriesinfoVolumeSeries(o[1]); @@ -3141,7 +3141,7 @@ o.bookDisplayNumber = "foo"; o.kind = "foo"; o.shortSeriesBookTitle = "foo"; - o.volumeSeries = buildUnnamed1025(); + o.volumeSeries = buildUnnamed1051(); } buildCounterVolumeseriesinfo--; return o; @@ -3153,162 +3153,162 @@ unittest.expect(o.bookDisplayNumber, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.shortSeriesBookTitle, unittest.equals('foo')); - checkUnnamed1025(o.volumeSeries); + checkUnnamed1051(o.volumeSeries); } buildCounterVolumeseriesinfo--; } -buildUnnamed1026() { +buildUnnamed1052() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1026(core.List<core.String> o) { +checkUnnamed1052(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1027() { +buildUnnamed1053() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1027(core.List<core.String> o) { +checkUnnamed1053(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1028() { +buildUnnamed1054() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1028(core.List<core.String> o) { +checkUnnamed1054(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1029() { +buildUnnamed1055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1029(core.List<core.String> o) { +checkUnnamed1055(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1030() { +buildUnnamed1056() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1030(core.List<core.String> o) { +checkUnnamed1056(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1031() { +buildUnnamed1057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1031(core.List<core.String> o) { +checkUnnamed1057(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1032() { +buildUnnamed1058() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1032(core.List<core.String> o) { +checkUnnamed1058(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1033() { +buildUnnamed1059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1033(core.List<core.String> o) { +checkUnnamed1059(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1034() { +buildUnnamed1060() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1034(core.List<core.String> o) { +checkUnnamed1060(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1035() { +buildUnnamed1061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1035(core.List<core.String> o) { +checkUnnamed1061(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1036() { +buildUnnamed1062() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1036(core.List<core.String> o) { +checkUnnamed1062(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1037() { +buildUnnamed1063() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1037(core.List<core.String> o) { +checkUnnamed1063(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4831,7 +4831,7 @@ var arg_volumeId = "foo"; var arg_layerId = "foo"; var arg_contentVersion = "foo"; - var arg_annotationDataId = buildUnnamed1026(); + var arg_annotationDataId = buildUnnamed1052(); var arg_h = 42; var arg_locale = "foo"; var arg_maxResults = 42; @@ -5116,7 +5116,7 @@ var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; - var arg_volumeIds = buildUnnamed1027(); + var arg_volumeIds = buildUnnamed1053(); var arg_cpksver = "foo"; var arg_locale = "foo"; var arg_source = "foo"; @@ -5229,11 +5229,11 @@ var arg_source = "foo"; var arg_nonce = "foo"; var arg_cpksver = "foo"; - var arg_features = buildUnnamed1028(); + var arg_features = buildUnnamed1054(); var arg_includeNonComicsSeries = true; var arg_locale = "foo"; var arg_showPreorders = true; - var arg_volumeIds = buildUnnamed1029(); + var arg_volumeIds = buildUnnamed1055(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5446,7 +5446,7 @@ api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; var arg_contentVersion = "foo"; var arg_layerId = "foo"; - var arg_layerIds = buildUnnamed1030(); + var arg_layerIds = buildUnnamed1056(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_showDeleted = true; @@ -5509,7 +5509,7 @@ var mock = new HttpServerMock(); api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; - var arg_layerIds = buildUnnamed1031(); + var arg_layerIds = buildUnnamed1057(); var arg_volumeId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -6236,7 +6236,7 @@ var mock = new HttpServerMock(); api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; - var arg_categoryId = buildUnnamed1032(); + var arg_categoryId = buildUnnamed1058(); var arg_locale = "foo"; var arg_maxAllowedMaturityRating = "foo"; var arg_pageSize = 42; @@ -6527,7 +6527,7 @@ var mock = new HttpServerMock(); api.SeriesResourceApi res = new api.BooksApi(mock).series; - var arg_seriesId = buildUnnamed1033(); + var arg_seriesId = buildUnnamed1059(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -6699,6 +6699,7 @@ var arg_filter = "foo"; var arg_langRestrict = "foo"; var arg_libraryRestrict = "foo"; + var arg_maxAllowedMaturityRating = "foo"; var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_partner = "foo"; @@ -6740,6 +6741,7 @@ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["langRestrict"].first, unittest.equals(arg_langRestrict)); unittest.expect(queryMap["libraryRestrict"].first, unittest.equals(arg_libraryRestrict)); + unittest.expect(queryMap["maxAllowedMaturityRating"].first, unittest.equals(arg_maxAllowedMaturityRating)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["partner"].first, unittest.equals(arg_partner)); @@ -6756,7 +6758,7 @@ var resp = convert.JSON.encode(buildVolumes()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_q, download: arg_download, filter: arg_filter, langRestrict: arg_langRestrict, libraryRestrict: arg_libraryRestrict, maxResults: arg_maxResults, orderBy: arg_orderBy, partner: arg_partner, printType: arg_printType, projection: arg_projection, showPreorders: arg_showPreorders, source: arg_source, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) { + res.list(arg_q, download: arg_download, filter: arg_filter, langRestrict: arg_langRestrict, libraryRestrict: arg_libraryRestrict, maxAllowedMaturityRating: arg_maxAllowedMaturityRating, maxResults: arg_maxResults, orderBy: arg_orderBy, partner: arg_partner, printType: arg_printType, projection: arg_projection, showPreorders: arg_showPreorders, source: arg_source, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) { checkVolumes(response); }))); }); @@ -6834,11 +6836,11 @@ var mock = new HttpServerMock(); api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks; - var arg_acquireMethod = buildUnnamed1034(); + var arg_acquireMethod = buildUnnamed1060(); var arg_country = "foo"; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed1035(); + var arg_processingState = buildUnnamed1061(); var arg_source = "foo"; var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -7007,10 +7009,10 @@ api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.useruploaded; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed1036(); + var arg_processingState = buildUnnamed1062(); var arg_source = "foo"; var arg_startIndex = 42; - var arg_volumeId = buildUnnamed1037(); + var arg_volumeId = buildUnnamed1063(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/calendar/v3_test.dart b/generated/googleapis/test/calendar/v3_test.dart index 47a8e24..e295f16 100644 --- a/generated/googleapis/test/calendar/v3_test.dart +++ b/generated/googleapis/test/calendar/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1192() { +buildUnnamed1218() { var o = new core.List<api.AclRule>(); o.add(buildAclRule()); o.add(buildAclRule()); return o; } -checkUnnamed1192(core.List<api.AclRule> o) { +checkUnnamed1218(core.List<api.AclRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAclRule(o[0]); checkAclRule(o[1]); @@ -70,7 +70,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { o.etag = "foo"; - o.items = buildUnnamed1192(); + o.items = buildUnnamed1218(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -83,7 +83,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1192(o.items); + checkUnnamed1218(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -170,14 +170,14 @@ buildCounterCalendar--; } -buildUnnamed1193() { +buildUnnamed1219() { var o = new core.List<api.CalendarListEntry>(); o.add(buildCalendarListEntry()); o.add(buildCalendarListEntry()); return o; } -checkUnnamed1193(core.List<api.CalendarListEntry> o) { +checkUnnamed1219(core.List<api.CalendarListEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarListEntry(o[0]); checkCalendarListEntry(o[1]); @@ -189,7 +189,7 @@ buildCounterCalendarList++; if (buildCounterCalendarList < 3) { o.etag = "foo"; - o.items = buildUnnamed1193(); + o.items = buildUnnamed1219(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -202,7 +202,7 @@ buildCounterCalendarList++; if (buildCounterCalendarList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1193(o.items); + checkUnnamed1219(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -210,27 +210,27 @@ buildCounterCalendarList--; } -buildUnnamed1194() { +buildUnnamed1220() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1194(core.List<api.EventReminder> o) { +checkUnnamed1220(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed1195() { +buildUnnamed1221() { var o = new core.List<api.CalendarNotification>(); o.add(buildCalendarNotification()); o.add(buildCalendarNotification()); return o; } -checkUnnamed1195(core.List<api.CalendarNotification> o) { +checkUnnamed1221(core.List<api.CalendarNotification> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarNotification(o[0]); checkCalendarNotification(o[1]); @@ -241,7 +241,7 @@ var o = new api.CalendarListEntryNotificationSettings(); buildCounterCalendarListEntryNotificationSettings++; if (buildCounterCalendarListEntryNotificationSettings < 3) { - o.notifications = buildUnnamed1195(); + o.notifications = buildUnnamed1221(); } buildCounterCalendarListEntryNotificationSettings--; return o; @@ -250,7 +250,7 @@ checkCalendarListEntryNotificationSettings(api.CalendarListEntryNotificationSettings o) { buildCounterCalendarListEntryNotificationSettings++; if (buildCounterCalendarListEntryNotificationSettings < 3) { - checkUnnamed1195(o.notifications); + checkUnnamed1221(o.notifications); } buildCounterCalendarListEntryNotificationSettings--; } @@ -263,7 +263,7 @@ o.accessRole = "foo"; o.backgroundColor = "foo"; o.colorId = "foo"; - o.defaultReminders = buildUnnamed1194(); + o.defaultReminders = buildUnnamed1220(); o.deleted = true; o.description = "foo"; o.etag = "foo"; @@ -289,7 +289,7 @@ unittest.expect(o.accessRole, unittest.equals('foo')); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.colorId, unittest.equals('foo')); - checkUnnamed1194(o.defaultReminders); + checkUnnamed1220(o.defaultReminders); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); @@ -329,14 +329,14 @@ buildCounterCalendarNotification--; } -buildUnnamed1196() { +buildUnnamed1222() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1196(core.Map<core.String, core.String> o) { +checkUnnamed1222(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -351,7 +351,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1196(); + o.params = buildUnnamed1222(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -369,7 +369,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1196(o.params); + checkUnnamed1222(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -400,27 +400,27 @@ buildCounterColorDefinition--; } -buildUnnamed1197() { +buildUnnamed1223() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed1197(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed1223(core.Map<core.String, api.ColorDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkColorDefinition(o["x"]); checkColorDefinition(o["y"]); } -buildUnnamed1198() { +buildUnnamed1224() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed1198(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed1224(core.Map<core.String, api.ColorDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkColorDefinition(o["x"]); checkColorDefinition(o["y"]); @@ -431,8 +431,8 @@ var o = new api.Colors(); buildCounterColors++; if (buildCounterColors < 3) { - o.calendar = buildUnnamed1197(); - o.event = buildUnnamed1198(); + o.calendar = buildUnnamed1223(); + o.event = buildUnnamed1224(); o.kind = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); } @@ -443,8 +443,8 @@ checkColors(api.Colors o) { buildCounterColors++; if (buildCounterColors < 3) { - checkUnnamed1197(o.calendar); - checkUnnamed1198(o.event); + checkUnnamed1223(o.calendar); + checkUnnamed1224(o.event); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); } @@ -472,27 +472,27 @@ buildCounterError--; } -buildUnnamed1199() { +buildUnnamed1225() { var o = new core.List<api.EventAttachment>(); o.add(buildEventAttachment()); o.add(buildEventAttachment()); return o; } -checkUnnamed1199(core.List<api.EventAttachment> o) { +checkUnnamed1225(core.List<api.EventAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttachment(o[0]); checkEventAttachment(o[1]); } -buildUnnamed1200() { +buildUnnamed1226() { var o = new core.List<api.EventAttendee>(); o.add(buildEventAttendee()); o.add(buildEventAttendee()); return o; } -checkUnnamed1200(core.List<api.EventAttendee> o) { +checkUnnamed1226(core.List<api.EventAttendee> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttendee(o[0]); checkEventAttendee(o[1]); @@ -523,27 +523,27 @@ buildCounterEventCreator--; } -buildUnnamed1201() { +buildUnnamed1227() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1201(core.Map<core.String, core.String> o) { +checkUnnamed1227(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1202() { +buildUnnamed1228() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1202(core.Map<core.String, core.String> o) { +checkUnnamed1228(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -554,8 +554,8 @@ var o = new api.EventExtendedProperties(); buildCounterEventExtendedProperties++; if (buildCounterEventExtendedProperties < 3) { - o.private = buildUnnamed1201(); - o.shared = buildUnnamed1202(); + o.private = buildUnnamed1227(); + o.shared = buildUnnamed1228(); } buildCounterEventExtendedProperties--; return o; @@ -564,20 +564,20 @@ checkEventExtendedProperties(api.EventExtendedProperties o) { buildCounterEventExtendedProperties++; if (buildCounterEventExtendedProperties < 3) { - checkUnnamed1201(o.private); - checkUnnamed1202(o.shared); + checkUnnamed1227(o.private); + checkUnnamed1228(o.shared); } buildCounterEventExtendedProperties--; } -buildUnnamed1203() { +buildUnnamed1229() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1203(core.Map<core.String, core.String> o) { +checkUnnamed1229(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -592,7 +592,7 @@ o.height = 42; o.iconLink = "foo"; o.link = "foo"; - o.preferences = buildUnnamed1203(); + o.preferences = buildUnnamed1229(); o.title = "foo"; o.type = "foo"; o.width = 42; @@ -608,7 +608,7 @@ unittest.expect(o.height, unittest.equals(42)); unittest.expect(o.iconLink, unittest.equals('foo')); unittest.expect(o.link, unittest.equals('foo')); - checkUnnamed1203(o.preferences); + checkUnnamed1229(o.preferences); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -641,27 +641,27 @@ buildCounterEventOrganizer--; } -buildUnnamed1204() { +buildUnnamed1230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1204(core.List<core.String> o) { +checkUnnamed1230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1205() { +buildUnnamed1231() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1205(core.List<api.EventReminder> o) { +checkUnnamed1231(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); @@ -672,7 +672,7 @@ var o = new api.EventReminders(); buildCounterEventReminders++; if (buildCounterEventReminders < 3) { - o.overrides = buildUnnamed1205(); + o.overrides = buildUnnamed1231(); o.useDefault = true; } buildCounterEventReminders--; @@ -682,7 +682,7 @@ checkEventReminders(api.EventReminders o) { buildCounterEventReminders++; if (buildCounterEventReminders < 3) { - checkUnnamed1205(o.overrides); + checkUnnamed1231(o.overrides); unittest.expect(o.useDefault, unittest.isTrue); } buildCounterEventReminders--; @@ -715,8 +715,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { o.anyoneCanAddSelf = true; - o.attachments = buildUnnamed1199(); - o.attendees = buildUnnamed1200(); + o.attachments = buildUnnamed1225(); + o.attendees = buildUnnamed1226(); o.attendeesOmitted = true; o.colorId = "foo"; o.created = core.DateTime.parse("2002-02-27T14:01:02"); @@ -740,7 +740,7 @@ o.organizer = buildEventOrganizer(); o.originalStartTime = buildEventDateTime(); o.privateCopy = true; - o.recurrence = buildUnnamed1204(); + o.recurrence = buildUnnamed1230(); o.recurringEventId = "foo"; o.reminders = buildEventReminders(); o.sequence = 42; @@ -760,8 +760,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); - checkUnnamed1199(o.attachments); - checkUnnamed1200(o.attendees); + checkUnnamed1225(o.attachments); + checkUnnamed1226(o.attendees); unittest.expect(o.attendeesOmitted, unittest.isTrue); unittest.expect(o.colorId, unittest.equals('foo')); unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -785,7 +785,7 @@ checkEventOrganizer(o.organizer); checkEventDateTime(o.originalStartTime); unittest.expect(o.privateCopy, unittest.isTrue); - checkUnnamed1204(o.recurrence); + checkUnnamed1230(o.recurrence); unittest.expect(o.recurringEventId, unittest.equals('foo')); checkEventReminders(o.reminders); unittest.expect(o.sequence, unittest.equals(42)); @@ -908,27 +908,27 @@ buildCounterEventReminder--; } -buildUnnamed1206() { +buildUnnamed1232() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1206(core.List<api.EventReminder> o) { +checkUnnamed1232(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed1207() { +buildUnnamed1233() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1207(core.List<api.Event> o) { +checkUnnamed1233(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -940,10 +940,10 @@ buildCounterEvents++; if (buildCounterEvents < 3) { o.accessRole = "foo"; - o.defaultReminders = buildUnnamed1206(); + o.defaultReminders = buildUnnamed1232(); o.description = "foo"; o.etag = "foo"; - o.items = buildUnnamed1207(); + o.items = buildUnnamed1233(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -959,10 +959,10 @@ buildCounterEvents++; if (buildCounterEvents < 3) { unittest.expect(o.accessRole, unittest.equals('foo')); - checkUnnamed1206(o.defaultReminders); + checkUnnamed1232(o.defaultReminders); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1207(o.items); + checkUnnamed1233(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -973,27 +973,27 @@ buildCounterEvents--; } -buildUnnamed1208() { +buildUnnamed1234() { var o = new core.List<api.TimePeriod>(); o.add(buildTimePeriod()); o.add(buildTimePeriod()); return o; } -checkUnnamed1208(core.List<api.TimePeriod> o) { +checkUnnamed1234(core.List<api.TimePeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkTimePeriod(o[0]); checkTimePeriod(o[1]); } -buildUnnamed1209() { +buildUnnamed1235() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1209(core.List<api.Error> o) { +checkUnnamed1235(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -1004,8 +1004,8 @@ var o = new api.FreeBusyCalendar(); buildCounterFreeBusyCalendar++; if (buildCounterFreeBusyCalendar < 3) { - o.busy = buildUnnamed1208(); - o.errors = buildUnnamed1209(); + o.busy = buildUnnamed1234(); + o.errors = buildUnnamed1235(); } buildCounterFreeBusyCalendar--; return o; @@ -1014,33 +1014,33 @@ checkFreeBusyCalendar(api.FreeBusyCalendar o) { buildCounterFreeBusyCalendar++; if (buildCounterFreeBusyCalendar < 3) { - checkUnnamed1208(o.busy); - checkUnnamed1209(o.errors); + checkUnnamed1234(o.busy); + checkUnnamed1235(o.errors); } buildCounterFreeBusyCalendar--; } -buildUnnamed1210() { +buildUnnamed1236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1210(core.List<core.String> o) { +checkUnnamed1236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1211() { +buildUnnamed1237() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1211(core.List<api.Error> o) { +checkUnnamed1237(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -1051,8 +1051,8 @@ var o = new api.FreeBusyGroup(); buildCounterFreeBusyGroup++; if (buildCounterFreeBusyGroup < 3) { - o.calendars = buildUnnamed1210(); - o.errors = buildUnnamed1211(); + o.calendars = buildUnnamed1236(); + o.errors = buildUnnamed1237(); } buildCounterFreeBusyGroup--; return o; @@ -1061,20 +1061,20 @@ checkFreeBusyGroup(api.FreeBusyGroup o) { buildCounterFreeBusyGroup++; if (buildCounterFreeBusyGroup < 3) { - checkUnnamed1210(o.calendars); - checkUnnamed1211(o.errors); + checkUnnamed1236(o.calendars); + checkUnnamed1237(o.errors); } buildCounterFreeBusyGroup--; } -buildUnnamed1212() { +buildUnnamed1238() { var o = new core.List<api.FreeBusyRequestItem>(); o.add(buildFreeBusyRequestItem()); o.add(buildFreeBusyRequestItem()); return o; } -checkUnnamed1212(core.List<api.FreeBusyRequestItem> o) { +checkUnnamed1238(core.List<api.FreeBusyRequestItem> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyRequestItem(o[0]); checkFreeBusyRequestItem(o[1]); @@ -1087,7 +1087,7 @@ if (buildCounterFreeBusyRequest < 3) { o.calendarExpansionMax = 42; o.groupExpansionMax = 42; - o.items = buildUnnamed1212(); + o.items = buildUnnamed1238(); o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); o.timeZone = "foo"; @@ -1101,7 +1101,7 @@ if (buildCounterFreeBusyRequest < 3) { unittest.expect(o.calendarExpansionMax, unittest.equals(42)); unittest.expect(o.groupExpansionMax, unittest.equals(42)); - checkUnnamed1212(o.items); + checkUnnamed1238(o.items); unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.timeZone, unittest.equals('foo')); @@ -1128,27 +1128,27 @@ buildCounterFreeBusyRequestItem--; } -buildUnnamed1213() { +buildUnnamed1239() { var o = new core.Map<core.String, api.FreeBusyCalendar>(); o["x"] = buildFreeBusyCalendar(); o["y"] = buildFreeBusyCalendar(); return o; } -checkUnnamed1213(core.Map<core.String, api.FreeBusyCalendar> o) { +checkUnnamed1239(core.Map<core.String, api.FreeBusyCalendar> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyCalendar(o["x"]); checkFreeBusyCalendar(o["y"]); } -buildUnnamed1214() { +buildUnnamed1240() { var o = new core.Map<core.String, api.FreeBusyGroup>(); o["x"] = buildFreeBusyGroup(); o["y"] = buildFreeBusyGroup(); return o; } -checkUnnamed1214(core.Map<core.String, api.FreeBusyGroup> o) { +checkUnnamed1240(core.Map<core.String, api.FreeBusyGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyGroup(o["x"]); checkFreeBusyGroup(o["y"]); @@ -1159,8 +1159,8 @@ var o = new api.FreeBusyResponse(); buildCounterFreeBusyResponse++; if (buildCounterFreeBusyResponse < 3) { - o.calendars = buildUnnamed1213(); - o.groups = buildUnnamed1214(); + o.calendars = buildUnnamed1239(); + o.groups = buildUnnamed1240(); o.kind = "foo"; o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1172,8 +1172,8 @@ checkFreeBusyResponse(api.FreeBusyResponse o) { buildCounterFreeBusyResponse++; if (buildCounterFreeBusyResponse < 3) { - checkUnnamed1213(o.calendars); - checkUnnamed1214(o.groups); + checkUnnamed1239(o.calendars); + checkUnnamed1240(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -1206,14 +1206,14 @@ buildCounterSetting--; } -buildUnnamed1215() { +buildUnnamed1241() { var o = new core.List<api.Setting>(); o.add(buildSetting()); o.add(buildSetting()); return o; } -checkUnnamed1215(core.List<api.Setting> o) { +checkUnnamed1241(core.List<api.Setting> o) { unittest.expect(o, unittest.hasLength(2)); checkSetting(o[0]); checkSetting(o[1]); @@ -1225,7 +1225,7 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.etag = "foo"; - o.items = buildUnnamed1215(); + o.items = buildUnnamed1241(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -1238,7 +1238,7 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1215(o.items); + checkUnnamed1241(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -1267,53 +1267,53 @@ buildCounterTimePeriod--; } -buildUnnamed1216() { +buildUnnamed1242() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1216(core.List<core.String> o) { +checkUnnamed1242(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1217() { +buildUnnamed1243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1217(core.List<core.String> o) { +checkUnnamed1243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1218() { +buildUnnamed1244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1218(core.List<core.String> o) { +checkUnnamed1244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1219() { +buildUnnamed1245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1219(core.List<core.String> o) { +checkUnnamed1245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3148,9 +3148,9 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed1216(); + var arg_privateExtendedProperty = buildUnnamed1242(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed1217(); + var arg_sharedExtendedProperty = buildUnnamed1243(); var arg_showDeleted = true; var arg_showHiddenInvitations = true; var arg_singleEvents = true; @@ -3496,9 +3496,9 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed1218(); + var arg_privateExtendedProperty = buildUnnamed1244(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed1219(); + var arg_sharedExtendedProperty = buildUnnamed1245(); var arg_showDeleted = true; var arg_showHiddenInvitations = true; var arg_singleEvents = true;
diff --git a/generated/googleapis/test/civicinfo/v2_test.dart b/generated/googleapis/test/civicinfo/v2_test.dart index d6883c3..5ca36d1 100644 --- a/generated/googleapis/test/civicinfo/v2_test.dart +++ b/generated/googleapis/test/civicinfo/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2602() { +buildUnnamed2675() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2602(core.List<api.Source> o) { +checkUnnamed2675(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -73,7 +73,7 @@ o.id = "foo"; o.localJurisdiction = buildAdministrationRegion(); o.name = "foo"; - o.sources = buildUnnamed2602(); + o.sources = buildUnnamed2675(); } buildCounterAdministrationRegion--; return o; @@ -86,45 +86,45 @@ unittest.expect(o.id, unittest.equals('foo')); checkAdministrationRegion(o.localJurisdiction); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2602(o.sources); + checkUnnamed2675(o.sources); } buildCounterAdministrationRegion--; } -buildUnnamed2603() { +buildUnnamed2676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2603(core.List<core.String> o) { +checkUnnamed2676(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2604() { +buildUnnamed2677() { var o = new core.List<api.ElectionOfficial>(); o.add(buildElectionOfficial()); o.add(buildElectionOfficial()); return o; } -checkUnnamed2604(core.List<api.ElectionOfficial> o) { +checkUnnamed2677(core.List<api.ElectionOfficial> o) { unittest.expect(o, unittest.hasLength(2)); checkElectionOfficial(o[0]); checkElectionOfficial(o[1]); } -buildUnnamed2605() { +buildUnnamed2678() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2605(core.List<core.String> o) { +checkUnnamed2678(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -136,18 +136,18 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { o.absenteeVotingInfoUrl = "foo"; - o.addressLines = buildUnnamed2603(); + o.addressLines = buildUnnamed2676(); o.ballotInfoUrl = "foo"; o.correspondenceAddress = buildSimpleAddressType(); o.electionInfoUrl = "foo"; - o.electionOfficials = buildUnnamed2604(); + o.electionOfficials = buildUnnamed2677(); o.electionRegistrationConfirmationUrl = "foo"; o.electionRegistrationUrl = "foo"; o.electionRulesUrl = "foo"; o.hoursOfOperation = "foo"; o.name = "foo"; o.physicalAddress = buildSimpleAddressType(); - o.voterServices = buildUnnamed2605(); + o.voterServices = buildUnnamed2678(); o.votingLocationFinderUrl = "foo"; } buildCounterAdministrativeBody--; @@ -158,31 +158,31 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); - checkUnnamed2603(o.addressLines); + checkUnnamed2676(o.addressLines); unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); checkSimpleAddressType(o.correspondenceAddress); unittest.expect(o.electionInfoUrl, unittest.equals('foo')); - checkUnnamed2604(o.electionOfficials); + checkUnnamed2677(o.electionOfficials); unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo')); unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); unittest.expect(o.electionRulesUrl, unittest.equals('foo')); unittest.expect(o.hoursOfOperation, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkSimpleAddressType(o.physicalAddress); - checkUnnamed2605(o.voterServices); + checkUnnamed2678(o.voterServices); unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); } buildCounterAdministrativeBody--; } -buildUnnamed2606() { +buildUnnamed2679() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed2606(core.List<api.Channel> o) { +checkUnnamed2679(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -194,7 +194,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { o.candidateUrl = "foo"; - o.channels = buildUnnamed2606(); + o.channels = buildUnnamed2679(); o.email = "foo"; o.name = "foo"; o.orderOnBallot = "foo"; @@ -210,7 +210,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { unittest.expect(o.candidateUrl, unittest.equals('foo')); - checkUnnamed2606(o.channels); + checkUnnamed2679(o.channels); unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.orderOnBallot, unittest.equals('foo')); @@ -242,66 +242,66 @@ buildCounterChannel--; } -buildUnnamed2607() { +buildUnnamed2680() { var o = new core.List<api.Candidate>(); o.add(buildCandidate()); o.add(buildCandidate()); return o; } -checkUnnamed2607(core.List<api.Candidate> o) { +checkUnnamed2680(core.List<api.Candidate> o) { unittest.expect(o, unittest.hasLength(2)); checkCandidate(o[0]); checkCandidate(o[1]); } -buildUnnamed2608() { +buildUnnamed2681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2608(core.List<core.String> o) { +checkUnnamed2681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2609() { +buildUnnamed2682() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2609(core.List<core.String> o) { +checkUnnamed2682(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2610() { +buildUnnamed2683() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2610(core.List<core.String> o) { +checkUnnamed2683(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2611() { +buildUnnamed2684() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2611(core.List<api.Source> o) { +checkUnnamed2684(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -313,16 +313,16 @@ buildCounterContest++; if (buildCounterContest < 3) { o.ballotPlacement = "foo"; - o.candidates = buildUnnamed2607(); + o.candidates = buildUnnamed2680(); o.district = buildElectoralDistrict(); o.electorateSpecifications = "foo"; o.id = "foo"; - o.level = buildUnnamed2608(); + o.level = buildUnnamed2681(); o.numberElected = "foo"; o.numberVotingFor = "foo"; o.office = "foo"; o.primaryParty = "foo"; - o.referendumBallotResponses = buildUnnamed2609(); + o.referendumBallotResponses = buildUnnamed2682(); o.referendumBrief = "foo"; o.referendumConStatement = "foo"; o.referendumEffectOfAbstain = "foo"; @@ -332,8 +332,8 @@ o.referendumText = "foo"; o.referendumTitle = "foo"; o.referendumUrl = "foo"; - o.roles = buildUnnamed2610(); - o.sources = buildUnnamed2611(); + o.roles = buildUnnamed2683(); + o.sources = buildUnnamed2684(); o.special = "foo"; o.type = "foo"; } @@ -345,16 +345,16 @@ buildCounterContest++; if (buildCounterContest < 3) { unittest.expect(o.ballotPlacement, unittest.equals('foo')); - checkUnnamed2607(o.candidates); + checkUnnamed2680(o.candidates); checkElectoralDistrict(o.district); unittest.expect(o.electorateSpecifications, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2608(o.level); + checkUnnamed2681(o.level); unittest.expect(o.numberElected, unittest.equals('foo')); unittest.expect(o.numberVotingFor, unittest.equals('foo')); unittest.expect(o.office, unittest.equals('foo')); unittest.expect(o.primaryParty, unittest.equals('foo')); - checkUnnamed2609(o.referendumBallotResponses); + checkUnnamed2682(o.referendumBallotResponses); unittest.expect(o.referendumBrief, unittest.equals('foo')); unittest.expect(o.referendumConStatement, unittest.equals('foo')); unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); @@ -364,22 +364,79 @@ unittest.expect(o.referendumText, unittest.equals('foo')); unittest.expect(o.referendumTitle, unittest.equals('foo')); unittest.expect(o.referendumUrl, unittest.equals('foo')); - checkUnnamed2610(o.roles); - checkUnnamed2611(o.sources); + checkUnnamed2683(o.roles); + checkUnnamed2684(o.sources); unittest.expect(o.special, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterContest--; } -buildUnnamed2612() { +core.int buildCounterContextParams = 0; +buildContextParams() { + var o = new api.ContextParams(); + buildCounterContextParams++; + if (buildCounterContextParams < 3) { + o.clientProfile = "foo"; + } + buildCounterContextParams--; + return o; +} + +checkContextParams(api.ContextParams o) { + buildCounterContextParams++; + if (buildCounterContextParams < 3) { + unittest.expect(o.clientProfile, unittest.equals('foo')); + } + buildCounterContextParams--; +} + +core.int buildCounterDivisionRepresentativeInfoRequest = 0; +buildDivisionRepresentativeInfoRequest() { + var o = new api.DivisionRepresentativeInfoRequest(); + buildCounterDivisionRepresentativeInfoRequest++; + if (buildCounterDivisionRepresentativeInfoRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterDivisionRepresentativeInfoRequest--; + return o; +} + +checkDivisionRepresentativeInfoRequest(api.DivisionRepresentativeInfoRequest o) { + buildCounterDivisionRepresentativeInfoRequest++; + if (buildCounterDivisionRepresentativeInfoRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterDivisionRepresentativeInfoRequest--; +} + +core.int buildCounterDivisionSearchRequest = 0; +buildDivisionSearchRequest() { + var o = new api.DivisionSearchRequest(); + buildCounterDivisionSearchRequest++; + if (buildCounterDivisionSearchRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterDivisionSearchRequest--; + return o; +} + +checkDivisionSearchRequest(api.DivisionSearchRequest o) { + buildCounterDivisionSearchRequest++; + if (buildCounterDivisionSearchRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterDivisionSearchRequest--; +} + +buildUnnamed2685() { var o = new core.List<api.DivisionSearchResult>(); o.add(buildDivisionSearchResult()); o.add(buildDivisionSearchResult()); return o; } -checkUnnamed2612(core.List<api.DivisionSearchResult> o) { +checkUnnamed2685(core.List<api.DivisionSearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkDivisionSearchResult(o[0]); checkDivisionSearchResult(o[1]); @@ -391,7 +448,7 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed2612(); + o.results = buildUnnamed2685(); } buildCounterDivisionSearchResponse--; return o; @@ -401,19 +458,19 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2612(o.results); + checkUnnamed2685(o.results); } buildCounterDivisionSearchResponse--; } -buildUnnamed2613() { +buildUnnamed2686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2613(core.List<core.String> o) { +checkUnnamed2686(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -424,7 +481,7 @@ var o = new api.DivisionSearchResult(); buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - o.aliases = buildUnnamed2613(); + o.aliases = buildUnnamed2686(); o.name = "foo"; o.ocdId = "foo"; } @@ -435,7 +492,7 @@ checkDivisionSearchResult(api.DivisionSearchResult o) { buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - checkUnnamed2613(o.aliases); + checkUnnamed2686(o.aliases); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ocdId, unittest.equals('foo')); } @@ -494,14 +551,33 @@ buildCounterElectionOfficial--; } -buildUnnamed2614() { +core.int buildCounterElectionsQueryRequest = 0; +buildElectionsQueryRequest() { + var o = new api.ElectionsQueryRequest(); + buildCounterElectionsQueryRequest++; + if (buildCounterElectionsQueryRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterElectionsQueryRequest--; + return o; +} + +checkElectionsQueryRequest(api.ElectionsQueryRequest o) { + buildCounterElectionsQueryRequest++; + if (buildCounterElectionsQueryRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterElectionsQueryRequest--; +} + +buildUnnamed2687() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed2614(core.List<api.Election> o) { +checkUnnamed2687(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); @@ -512,7 +588,7 @@ var o = new api.ElectionsQueryResponse(); buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - o.elections = buildUnnamed2614(); + o.elections = buildUnnamed2687(); o.kind = "foo"; } buildCounterElectionsQueryResponse--; @@ -522,7 +598,7 @@ checkElectionsQueryResponse(api.ElectionsQueryResponse o) { buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - checkUnnamed2614(o.elections); + checkUnnamed2687(o.elections); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterElectionsQueryResponse--; @@ -553,27 +629,27 @@ buildCounterElectoralDistrict--; } -buildUnnamed2615() { +buildUnnamed2688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2615(core.List<core.String> o) { +checkUnnamed2688(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2616() { +buildUnnamed2689() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2616(core.List<core.int> o) { +checkUnnamed2689(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -584,9 +660,9 @@ var o = new api.GeographicDivision(); buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - o.alsoKnownAs = buildUnnamed2615(); + o.alsoKnownAs = buildUnnamed2688(); o.name = "foo"; - o.officeIndices = buildUnnamed2616(); + o.officeIndices = buildUnnamed2689(); } buildCounterGeographicDivision--; return o; @@ -595,60 +671,60 @@ checkGeographicDivision(api.GeographicDivision o) { buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - checkUnnamed2615(o.alsoKnownAs); + checkUnnamed2688(o.alsoKnownAs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2616(o.officeIndices); + checkUnnamed2689(o.officeIndices); } buildCounterGeographicDivision--; } -buildUnnamed2617() { +buildUnnamed2690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2617(core.List<core.String> o) { +checkUnnamed2690(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2618() { +buildUnnamed2691() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2618(core.List<core.int> o) { +checkUnnamed2691(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2619() { +buildUnnamed2692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2619(core.List<core.String> o) { +checkUnnamed2692(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2620() { +buildUnnamed2693() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2620(core.List<api.Source> o) { +checkUnnamed2693(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -660,11 +736,11 @@ buildCounterOffice++; if (buildCounterOffice < 3) { o.divisionId = "foo"; - o.levels = buildUnnamed2617(); + o.levels = buildUnnamed2690(); o.name = "foo"; - o.officialIndices = buildUnnamed2618(); - o.roles = buildUnnamed2619(); - o.sources = buildUnnamed2620(); + o.officialIndices = buildUnnamed2691(); + o.roles = buildUnnamed2692(); + o.sources = buildUnnamed2693(); } buildCounterOffice--; return o; @@ -674,75 +750,75 @@ buildCounterOffice++; if (buildCounterOffice < 3) { unittest.expect(o.divisionId, unittest.equals('foo')); - checkUnnamed2617(o.levels); + checkUnnamed2690(o.levels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2618(o.officialIndices); - checkUnnamed2619(o.roles); - checkUnnamed2620(o.sources); + checkUnnamed2691(o.officialIndices); + checkUnnamed2692(o.roles); + checkUnnamed2693(o.sources); } buildCounterOffice--; } -buildUnnamed2621() { +buildUnnamed2694() { var o = new core.List<api.SimpleAddressType>(); o.add(buildSimpleAddressType()); o.add(buildSimpleAddressType()); return o; } -checkUnnamed2621(core.List<api.SimpleAddressType> o) { +checkUnnamed2694(core.List<api.SimpleAddressType> o) { unittest.expect(o, unittest.hasLength(2)); checkSimpleAddressType(o[0]); checkSimpleAddressType(o[1]); } -buildUnnamed2622() { +buildUnnamed2695() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed2622(core.List<api.Channel> o) { +checkUnnamed2695(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); } -buildUnnamed2623() { +buildUnnamed2696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2623(core.List<core.String> o) { +checkUnnamed2696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2624() { +buildUnnamed2697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2624(core.List<core.String> o) { +checkUnnamed2697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2625() { +buildUnnamed2698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2625(core.List<core.String> o) { +checkUnnamed2698(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -753,14 +829,14 @@ var o = new api.Official(); buildCounterOfficial++; if (buildCounterOfficial < 3) { - o.address = buildUnnamed2621(); - o.channels = buildUnnamed2622(); - o.emails = buildUnnamed2623(); + o.address = buildUnnamed2694(); + o.channels = buildUnnamed2695(); + o.emails = buildUnnamed2696(); o.name = "foo"; o.party = "foo"; - o.phones = buildUnnamed2624(); + o.phones = buildUnnamed2697(); o.photoUrl = "foo"; - o.urls = buildUnnamed2625(); + o.urls = buildUnnamed2698(); } buildCounterOfficial--; return o; @@ -769,26 +845,26 @@ checkOfficial(api.Official o) { buildCounterOfficial++; if (buildCounterOfficial < 3) { - checkUnnamed2621(o.address); - checkUnnamed2622(o.channels); - checkUnnamed2623(o.emails); + checkUnnamed2694(o.address); + checkUnnamed2695(o.channels); + checkUnnamed2696(o.emails); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.party, unittest.equals('foo')); - checkUnnamed2624(o.phones); + checkUnnamed2697(o.phones); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2625(o.urls); + checkUnnamed2698(o.urls); } buildCounterOfficial--; } -buildUnnamed2626() { +buildUnnamed2699() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2626(core.List<api.Source> o) { +checkUnnamed2699(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -805,7 +881,7 @@ o.name = "foo"; o.notes = "foo"; o.pollingHours = "foo"; - o.sources = buildUnnamed2626(); + o.sources = buildUnnamed2699(); o.startDate = "foo"; o.voterServices = "foo"; } @@ -822,47 +898,139 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.pollingHours, unittest.equals('foo')); - checkUnnamed2626(o.sources); + checkUnnamed2699(o.sources); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.voterServices, unittest.equals('foo')); } buildCounterPollingLocation--; } -buildUnnamed2627() { +buildUnnamed2700() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2700(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterPostalAddress = 0; +buildPostalAddress() { + var o = new api.PostalAddress(); + buildCounterPostalAddress++; + if (buildCounterPostalAddress < 3) { + o.addressLines = buildUnnamed2700(); + o.administrativeAreaName = "foo"; + o.countryName = "foo"; + o.countryNameCode = "foo"; + o.dependentLocalityName = "foo"; + o.dependentThoroughfareLeadingType = "foo"; + o.dependentThoroughfareName = "foo"; + o.dependentThoroughfarePostDirection = "foo"; + o.dependentThoroughfarePreDirection = "foo"; + o.dependentThoroughfareTrailingType = "foo"; + o.dependentThoroughfaresConnector = "foo"; + o.dependentThoroughfaresIndicator = "foo"; + o.dependentThoroughfaresType = "foo"; + o.firmName = "foo"; + o.isDisputed = true; + o.languageCode = "foo"; + o.localityName = "foo"; + o.postBoxNumber = "foo"; + o.postalCodeNumber = "foo"; + o.postalCodeNumberExtension = "foo"; + o.premiseName = "foo"; + o.recipientName = "foo"; + o.sortingCode = "foo"; + o.subAdministrativeAreaName = "foo"; + o.subPremiseName = "foo"; + o.thoroughfareLeadingType = "foo"; + o.thoroughfareName = "foo"; + o.thoroughfareNumber = "foo"; + o.thoroughfarePostDirection = "foo"; + o.thoroughfarePreDirection = "foo"; + o.thoroughfareTrailingType = "foo"; + } + buildCounterPostalAddress--; + return o; +} + +checkPostalAddress(api.PostalAddress o) { + buildCounterPostalAddress++; + if (buildCounterPostalAddress < 3) { + checkUnnamed2700(o.addressLines); + unittest.expect(o.administrativeAreaName, unittest.equals('foo')); + unittest.expect(o.countryName, unittest.equals('foo')); + unittest.expect(o.countryNameCode, unittest.equals('foo')); + unittest.expect(o.dependentLocalityName, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfareLeadingType, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfareName, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfarePostDirection, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfarePreDirection, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfareTrailingType, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfaresConnector, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfaresIndicator, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfaresType, unittest.equals('foo')); + unittest.expect(o.firmName, unittest.equals('foo')); + unittest.expect(o.isDisputed, unittest.isTrue); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.localityName, unittest.equals('foo')); + unittest.expect(o.postBoxNumber, unittest.equals('foo')); + unittest.expect(o.postalCodeNumber, unittest.equals('foo')); + unittest.expect(o.postalCodeNumberExtension, unittest.equals('foo')); + unittest.expect(o.premiseName, unittest.equals('foo')); + unittest.expect(o.recipientName, unittest.equals('foo')); + unittest.expect(o.sortingCode, unittest.equals('foo')); + unittest.expect(o.subAdministrativeAreaName, unittest.equals('foo')); + unittest.expect(o.subPremiseName, unittest.equals('foo')); + unittest.expect(o.thoroughfareLeadingType, unittest.equals('foo')); + unittest.expect(o.thoroughfareName, unittest.equals('foo')); + unittest.expect(o.thoroughfareNumber, unittest.equals('foo')); + unittest.expect(o.thoroughfarePostDirection, unittest.equals('foo')); + unittest.expect(o.thoroughfarePreDirection, unittest.equals('foo')); + unittest.expect(o.thoroughfareTrailingType, unittest.equals('foo')); + } + buildCounterPostalAddress--; +} + +buildUnnamed2701() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed2627(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed2701(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed2628() { +buildUnnamed2702() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed2628(core.List<api.Office> o) { +checkUnnamed2702(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed2629() { +buildUnnamed2703() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed2629(core.List<api.Official> o) { +checkUnnamed2703(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -873,9 +1041,9 @@ var o = new api.RepresentativeInfoData(); buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - o.divisions = buildUnnamed2627(); - o.offices = buildUnnamed2628(); - o.officials = buildUnnamed2629(); + o.divisions = buildUnnamed2701(); + o.offices = buildUnnamed2702(); + o.officials = buildUnnamed2703(); } buildCounterRepresentativeInfoData--; return o; @@ -884,47 +1052,66 @@ checkRepresentativeInfoData(api.RepresentativeInfoData o) { buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - checkUnnamed2627(o.divisions); - checkUnnamed2628(o.offices); - checkUnnamed2629(o.officials); + checkUnnamed2701(o.divisions); + checkUnnamed2702(o.offices); + checkUnnamed2703(o.officials); } buildCounterRepresentativeInfoData--; } -buildUnnamed2630() { +core.int buildCounterRepresentativeInfoRequest = 0; +buildRepresentativeInfoRequest() { + var o = new api.RepresentativeInfoRequest(); + buildCounterRepresentativeInfoRequest++; + if (buildCounterRepresentativeInfoRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterRepresentativeInfoRequest--; + return o; +} + +checkRepresentativeInfoRequest(api.RepresentativeInfoRequest o) { + buildCounterRepresentativeInfoRequest++; + if (buildCounterRepresentativeInfoRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterRepresentativeInfoRequest--; +} + +buildUnnamed2704() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed2630(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed2704(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed2631() { +buildUnnamed2705() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed2631(core.List<api.Office> o) { +checkUnnamed2705(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed2632() { +buildUnnamed2706() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed2632(core.List<api.Official> o) { +checkUnnamed2706(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -935,11 +1122,11 @@ var o = new api.RepresentativeInfoResponse(); buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - o.divisions = buildUnnamed2630(); + o.divisions = buildUnnamed2704(); o.kind = "foo"; o.normalizedInput = buildSimpleAddressType(); - o.offices = buildUnnamed2631(); - o.officials = buildUnnamed2632(); + o.offices = buildUnnamed2705(); + o.officials = buildUnnamed2706(); } buildCounterRepresentativeInfoResponse--; return o; @@ -948,11 +1135,11 @@ checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - checkUnnamed2630(o.divisions); + checkUnnamed2704(o.divisions); unittest.expect(o.kind, unittest.equals('foo')); checkSimpleAddressType(o.normalizedInput); - checkUnnamed2631(o.offices); - checkUnnamed2632(o.officials); + checkUnnamed2705(o.offices); + checkUnnamed2706(o.officials); } buildCounterRepresentativeInfoResponse--; } @@ -1009,79 +1196,100 @@ buildCounterSource--; } -buildUnnamed2633() { +core.int buildCounterVoterInfoRequest = 0; +buildVoterInfoRequest() { + var o = new api.VoterInfoRequest(); + buildCounterVoterInfoRequest++; + if (buildCounterVoterInfoRequest < 3) { + o.contextParams = buildContextParams(); + o.voterInfoSegmentResult = buildVoterInfoSegmentResult(); + } + buildCounterVoterInfoRequest--; + return o; +} + +checkVoterInfoRequest(api.VoterInfoRequest o) { + buildCounterVoterInfoRequest++; + if (buildCounterVoterInfoRequest < 3) { + checkContextParams(o.contextParams); + checkVoterInfoSegmentResult(o.voterInfoSegmentResult); + } + buildCounterVoterInfoRequest--; +} + +buildUnnamed2707() { var o = new core.List<api.Contest>(); o.add(buildContest()); o.add(buildContest()); return o; } -checkUnnamed2633(core.List<api.Contest> o) { +checkUnnamed2707(core.List<api.Contest> o) { unittest.expect(o, unittest.hasLength(2)); checkContest(o[0]); checkContest(o[1]); } -buildUnnamed2634() { +buildUnnamed2708() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2634(core.List<api.PollingLocation> o) { +checkUnnamed2708(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2635() { +buildUnnamed2709() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2635(core.List<api.PollingLocation> o) { +checkUnnamed2709(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2636() { +buildUnnamed2710() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed2636(core.List<api.Election> o) { +checkUnnamed2710(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); } -buildUnnamed2637() { +buildUnnamed2711() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2637(core.List<api.PollingLocation> o) { +checkUnnamed2711(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2638() { +buildUnnamed2712() { var o = new core.List<api.AdministrationRegion>(); o.add(buildAdministrationRegion()); o.add(buildAdministrationRegion()); return o; } -checkUnnamed2638(core.List<api.AdministrationRegion> o) { +checkUnnamed2712(core.List<api.AdministrationRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrationRegion(o[0]); checkAdministrationRegion(o[1]); @@ -1092,17 +1300,17 @@ var o = new api.VoterInfoResponse(); buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - o.contests = buildUnnamed2633(); - o.dropOffLocations = buildUnnamed2634(); - o.earlyVoteSites = buildUnnamed2635(); + o.contests = buildUnnamed2707(); + o.dropOffLocations = buildUnnamed2708(); + o.earlyVoteSites = buildUnnamed2709(); o.election = buildElection(); o.kind = "foo"; o.mailOnly = true; o.normalizedInput = buildSimpleAddressType(); - o.otherElections = buildUnnamed2636(); - o.pollingLocations = buildUnnamed2637(); + o.otherElections = buildUnnamed2710(); + o.pollingLocations = buildUnnamed2711(); o.precinctId = "foo"; - o.state = buildUnnamed2638(); + o.state = buildUnnamed2712(); } buildCounterVoterInfoResponse--; return o; @@ -1111,68 +1319,93 @@ checkVoterInfoResponse(api.VoterInfoResponse o) { buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - checkUnnamed2633(o.contests); - checkUnnamed2634(o.dropOffLocations); - checkUnnamed2635(o.earlyVoteSites); + checkUnnamed2707(o.contests); + checkUnnamed2708(o.dropOffLocations); + checkUnnamed2709(o.earlyVoteSites); checkElection(o.election); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.mailOnly, unittest.isTrue); checkSimpleAddressType(o.normalizedInput); - checkUnnamed2636(o.otherElections); - checkUnnamed2637(o.pollingLocations); + checkUnnamed2710(o.otherElections); + checkUnnamed2711(o.pollingLocations); unittest.expect(o.precinctId, unittest.equals('foo')); - checkUnnamed2638(o.state); + checkUnnamed2712(o.state); } buildCounterVoterInfoResponse--; } -buildUnnamed2639() { +core.int buildCounterVoterInfoSegmentResult = 0; +buildVoterInfoSegmentResult() { + var o = new api.VoterInfoSegmentResult(); + buildCounterVoterInfoSegmentResult++; + if (buildCounterVoterInfoSegmentResult < 3) { + o.generatedMillis = "foo"; + o.postalAddress = buildPostalAddress(); + o.request = buildVoterInfoRequest(); + o.response = buildVoterInfoResponse(); + } + buildCounterVoterInfoSegmentResult--; + return o; +} + +checkVoterInfoSegmentResult(api.VoterInfoSegmentResult o) { + buildCounterVoterInfoSegmentResult++; + if (buildCounterVoterInfoSegmentResult < 3) { + unittest.expect(o.generatedMillis, unittest.equals('foo')); + checkPostalAddress(o.postalAddress); + checkVoterInfoRequest(o.request); + checkVoterInfoResponse(o.response); + } + buildCounterVoterInfoSegmentResult--; +} + +buildUnnamed2713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2639(core.List<core.String> o) { +checkUnnamed2713(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2640() { +buildUnnamed2714() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2640(core.List<core.String> o) { +checkUnnamed2714(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2641() { +buildUnnamed2715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2641(core.List<core.String> o) { +checkUnnamed2715(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2642() { +buildUnnamed2716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2642(core.List<core.String> o) { +checkUnnamed2716(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1225,6 +1458,33 @@ }); + unittest.group("obj-schema-ContextParams", () { + unittest.test("to-json--from-json", () { + var o = buildContextParams(); + var od = new api.ContextParams.fromJson(o.toJson()); + checkContextParams(od); + }); + }); + + + unittest.group("obj-schema-DivisionRepresentativeInfoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDivisionRepresentativeInfoRequest(); + var od = new api.DivisionRepresentativeInfoRequest.fromJson(o.toJson()); + checkDivisionRepresentativeInfoRequest(od); + }); + }); + + + unittest.group("obj-schema-DivisionSearchRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDivisionSearchRequest(); + var od = new api.DivisionSearchRequest.fromJson(o.toJson()); + checkDivisionSearchRequest(od); + }); + }); + + unittest.group("obj-schema-DivisionSearchResponse", () { unittest.test("to-json--from-json", () { var o = buildDivisionSearchResponse(); @@ -1261,6 +1521,15 @@ }); + unittest.group("obj-schema-ElectionsQueryRequest", () { + unittest.test("to-json--from-json", () { + var o = buildElectionsQueryRequest(); + var od = new api.ElectionsQueryRequest.fromJson(o.toJson()); + checkElectionsQueryRequest(od); + }); + }); + + unittest.group("obj-schema-ElectionsQueryResponse", () { unittest.test("to-json--from-json", () { var o = buildElectionsQueryResponse(); @@ -1315,6 +1584,15 @@ }); + unittest.group("obj-schema-PostalAddress", () { + unittest.test("to-json--from-json", () { + var o = buildPostalAddress(); + var od = new api.PostalAddress.fromJson(o.toJson()); + checkPostalAddress(od); + }); + }); + + unittest.group("obj-schema-RepresentativeInfoData", () { unittest.test("to-json--from-json", () { var o = buildRepresentativeInfoData(); @@ -1324,6 +1602,15 @@ }); + unittest.group("obj-schema-RepresentativeInfoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRepresentativeInfoRequest(); + var od = new api.RepresentativeInfoRequest.fromJson(o.toJson()); + checkRepresentativeInfoRequest(od); + }); + }); + + unittest.group("obj-schema-RepresentativeInfoResponse", () { unittest.test("to-json--from-json", () { var o = buildRepresentativeInfoResponse(); @@ -1351,6 +1638,15 @@ }); + unittest.group("obj-schema-VoterInfoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildVoterInfoRequest(); + var od = new api.VoterInfoRequest.fromJson(o.toJson()); + checkVoterInfoRequest(od); + }); + }); + + unittest.group("obj-schema-VoterInfoResponse", () { unittest.test("to-json--from-json", () { var o = buildVoterInfoResponse(); @@ -1360,13 +1656,26 @@ }); + unittest.group("obj-schema-VoterInfoSegmentResult", () { + unittest.test("to-json--from-json", () { + var o = buildVoterInfoSegmentResult(); + var od = new api.VoterInfoSegmentResult.fromJson(o.toJson()); + checkVoterInfoSegmentResult(od); + }); + }); + + unittest.group("resource-DivisionsResourceApi", () { unittest.test("method--search", () { var mock = new HttpServerMock(); api.DivisionsResourceApi res = new api.CivicinfoApi(mock).divisions; + var arg_request = buildDivisionSearchRequest(); var arg_query = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.DivisionSearchRequest.fromJson(json); + checkDivisionSearchRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1403,7 +1712,7 @@ var resp = convert.JSON.encode(buildDivisionSearchResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(query: arg_query).then(unittest.expectAsync(((api.DivisionSearchResponse response) { + res.search(arg_request, query: arg_query).then(unittest.expectAsync(((api.DivisionSearchResponse response) { checkDivisionSearchResponse(response); }))); }); @@ -1416,7 +1725,11 @@ var mock = new HttpServerMock(); api.ElectionsResourceApi res = new api.CivicinfoApi(mock).elections; + var arg_request = buildElectionsQueryRequest(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ElectionsQueryRequest.fromJson(json); + checkElectionsQueryRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1452,7 +1765,7 @@ var resp = convert.JSON.encode(buildElectionsQueryResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.electionQuery().then(unittest.expectAsync(((api.ElectionsQueryResponse response) { + res.electionQuery(arg_request).then(unittest.expectAsync(((api.ElectionsQueryResponse response) { checkElectionsQueryResponse(response); }))); }); @@ -1461,11 +1774,15 @@ var mock = new HttpServerMock(); api.ElectionsResourceApi res = new api.CivicinfoApi(mock).elections; + var arg_request = buildVoterInfoRequest(); var arg_address = "foo"; var arg_electionId = "foo"; var arg_officialOnly = true; var arg_returnAllAvailableData = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.VoterInfoRequest.fromJson(json); + checkVoterInfoRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1505,7 +1822,7 @@ var resp = convert.JSON.encode(buildVoterInfoResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.voterInfoQuery(arg_address, electionId: arg_electionId, officialOnly: arg_officialOnly, returnAllAvailableData: arg_returnAllAvailableData).then(unittest.expectAsync(((api.VoterInfoResponse response) { + res.voterInfoQuery(arg_request, arg_address, electionId: arg_electionId, officialOnly: arg_officialOnly, returnAllAvailableData: arg_returnAllAvailableData).then(unittest.expectAsync(((api.VoterInfoResponse response) { checkVoterInfoResponse(response); }))); }); @@ -1518,11 +1835,15 @@ var mock = new HttpServerMock(); api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives; + var arg_request = buildRepresentativeInfoRequest(); var arg_address = "foo"; var arg_includeOffices = true; - var arg_levels = buildUnnamed2639(); - var arg_roles = buildUnnamed2640(); + var arg_levels = buildUnnamed2713(); + var arg_roles = buildUnnamed2714(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RepresentativeInfoRequest.fromJson(json); + checkRepresentativeInfoRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1562,7 +1883,7 @@ var resp = convert.JSON.encode(buildRepresentativeInfoResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.representativeInfoByAddress(address: arg_address, includeOffices: arg_includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoResponse response) { + res.representativeInfoByAddress(arg_request, address: arg_address, includeOffices: arg_includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoResponse response) { checkRepresentativeInfoResponse(response); }))); }); @@ -1571,11 +1892,15 @@ var mock = new HttpServerMock(); api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives; + var arg_request = buildDivisionRepresentativeInfoRequest(); var arg_ocdId = "foo"; - var arg_levels = buildUnnamed2641(); + var arg_levels = buildUnnamed2715(); var arg_recursive = true; - var arg_roles = buildUnnamed2642(); + var arg_roles = buildUnnamed2716(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.DivisionRepresentativeInfoRequest.fromJson(json); + checkDivisionRepresentativeInfoRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1617,7 +1942,7 @@ var resp = convert.JSON.encode(buildRepresentativeInfoData()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoData response) { + res.representativeInfoByDivision(arg_request, arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoData response) { checkRepresentativeInfoData(response); }))); });
diff --git a/generated/googleapis/test/classroom/v1_test.dart b/generated/googleapis/test/classroom/v1_test.dart index 71d825d..f2c575b 100644 --- a/generated/googleapis/test/classroom/v1_test.dart +++ b/generated/googleapis/test/classroom/v1_test.dart
@@ -70,14 +70,14 @@ buildCounterAssignment--; } -buildUnnamed879() { +buildUnnamed903() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed879(core.List<api.Attachment> o) { +checkUnnamed903(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -88,7 +88,7 @@ var o = new api.AssignmentSubmission(); buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - o.attachments = buildUnnamed879(); + o.attachments = buildUnnamed903(); } buildCounterAssignmentSubmission--; return o; @@ -97,7 +97,7 @@ checkAssignmentSubmission(api.AssignmentSubmission o) { buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - checkUnnamed879(o.attachments); + checkUnnamed903(o.attachments); } buildCounterAssignmentSubmission--; } @@ -127,14 +127,14 @@ buildCounterAttachment--; } -buildUnnamed880() { +buildUnnamed904() { var o = new core.List<api.CourseMaterialSet>(); o.add(buildCourseMaterialSet()); o.add(buildCourseMaterialSet()); return o; } -checkUnnamed880(core.List<api.CourseMaterialSet> o) { +checkUnnamed904(core.List<api.CourseMaterialSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterialSet(o[0]); checkCourseMaterialSet(o[1]); @@ -147,12 +147,13 @@ if (buildCounterCourse < 3) { o.alternateLink = "foo"; o.courseGroupEmail = "foo"; - o.courseMaterialSets = buildUnnamed880(); + o.courseMaterialSets = buildUnnamed904(); o.courseState = "foo"; o.creationTime = "foo"; o.description = "foo"; o.descriptionHeading = "foo"; o.enrollmentCode = "foo"; + o.guardiansEnabled = true; o.id = "foo"; o.name = "foo"; o.ownerId = "foo"; @@ -171,12 +172,13 @@ if (buildCounterCourse < 3) { unittest.expect(o.alternateLink, unittest.equals('foo')); unittest.expect(o.courseGroupEmail, unittest.equals('foo')); - checkUnnamed880(o.courseMaterialSets); + checkUnnamed904(o.courseMaterialSets); unittest.expect(o.courseState, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.descriptionHeading, unittest.equals('foo')); unittest.expect(o.enrollmentCode, unittest.equals('foo')); + unittest.expect(o.guardiansEnabled, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ownerId, unittest.equals('foo')); @@ -233,14 +235,14 @@ buildCounterCourseMaterial--; } -buildUnnamed881() { +buildUnnamed905() { var o = new core.List<api.CourseMaterial>(); o.add(buildCourseMaterial()); o.add(buildCourseMaterial()); return o; } -checkUnnamed881(core.List<api.CourseMaterial> o) { +checkUnnamed905(core.List<api.CourseMaterial> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterial(o[0]); checkCourseMaterial(o[1]); @@ -251,7 +253,7 @@ var o = new api.CourseMaterialSet(); buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - o.materials = buildUnnamed881(); + o.materials = buildUnnamed905(); o.title = "foo"; } buildCounterCourseMaterialSet--; @@ -261,20 +263,20 @@ checkCourseMaterialSet(api.CourseMaterialSet o) { buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - checkUnnamed881(o.materials); + checkUnnamed905(o.materials); unittest.expect(o.title, unittest.equals('foo')); } buildCounterCourseMaterialSet--; } -buildUnnamed882() { +buildUnnamed906() { var o = new core.List<api.Material>(); o.add(buildMaterial()); o.add(buildMaterial()); return o; } -checkUnnamed882(core.List<api.Material> o) { +checkUnnamed906(core.List<api.Material> o) { unittest.expect(o, unittest.hasLength(2)); checkMaterial(o[0]); checkMaterial(o[1]); @@ -294,7 +296,7 @@ o.dueDate = buildDate(); o.dueTime = buildTimeOfDay(); o.id = "foo"; - o.materials = buildUnnamed882(); + o.materials = buildUnnamed906(); o.maxPoints = 42.0; o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); o.state = "foo"; @@ -319,7 +321,7 @@ checkDate(o.dueDate); checkTimeOfDay(o.dueTime); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed882(o.materials); + checkUnnamed906(o.materials); unittest.expect(o.maxPoints, unittest.equals(42.0)); checkMultipleChoiceQuestion(o.multipleChoiceQuestion); unittest.expect(o.state, unittest.equals('foo')); @@ -563,14 +565,14 @@ buildCounterLink--; } -buildUnnamed883() { +buildUnnamed907() { var o = new core.List<api.CourseAlias>(); o.add(buildCourseAlias()); o.add(buildCourseAlias()); return o; } -checkUnnamed883(core.List<api.CourseAlias> o) { +checkUnnamed907(core.List<api.CourseAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseAlias(o[0]); checkCourseAlias(o[1]); @@ -581,7 +583,7 @@ var o = new api.ListCourseAliasesResponse(); buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - o.aliases = buildUnnamed883(); + o.aliases = buildUnnamed907(); o.nextPageToken = "foo"; } buildCounterListCourseAliasesResponse--; @@ -591,20 +593,20 @@ checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - checkUnnamed883(o.aliases); + checkUnnamed907(o.aliases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseAliasesResponse--; } -buildUnnamed884() { +buildUnnamed908() { var o = new core.List<api.CourseWork>(); o.add(buildCourseWork()); o.add(buildCourseWork()); return o; } -checkUnnamed884(core.List<api.CourseWork> o) { +checkUnnamed908(core.List<api.CourseWork> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseWork(o[0]); checkCourseWork(o[1]); @@ -615,7 +617,7 @@ var o = new api.ListCourseWorkResponse(); buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - o.courseWork = buildUnnamed884(); + o.courseWork = buildUnnamed908(); o.nextPageToken = "foo"; } buildCounterListCourseWorkResponse--; @@ -625,20 +627,20 @@ checkListCourseWorkResponse(api.ListCourseWorkResponse o) { buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - checkUnnamed884(o.courseWork); + checkUnnamed908(o.courseWork); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseWorkResponse--; } -buildUnnamed885() { +buildUnnamed909() { var o = new core.List<api.Course>(); o.add(buildCourse()); o.add(buildCourse()); return o; } -checkUnnamed885(core.List<api.Course> o) { +checkUnnamed909(core.List<api.Course> o) { unittest.expect(o, unittest.hasLength(2)); checkCourse(o[0]); checkCourse(o[1]); @@ -649,7 +651,7 @@ var o = new api.ListCoursesResponse(); buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - o.courses = buildUnnamed885(); + o.courses = buildUnnamed909(); o.nextPageToken = "foo"; } buildCounterListCoursesResponse--; @@ -659,20 +661,20 @@ checkListCoursesResponse(api.ListCoursesResponse o) { buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - checkUnnamed885(o.courses); + checkUnnamed909(o.courses); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoursesResponse--; } -buildUnnamed886() { +buildUnnamed910() { var o = new core.List<api.GuardianInvitation>(); o.add(buildGuardianInvitation()); o.add(buildGuardianInvitation()); return o; } -checkUnnamed886(core.List<api.GuardianInvitation> o) { +checkUnnamed910(core.List<api.GuardianInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardianInvitation(o[0]); checkGuardianInvitation(o[1]); @@ -683,7 +685,7 @@ var o = new api.ListGuardianInvitationsResponse(); buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - o.guardianInvitations = buildUnnamed886(); + o.guardianInvitations = buildUnnamed910(); o.nextPageToken = "foo"; } buildCounterListGuardianInvitationsResponse--; @@ -693,20 +695,20 @@ checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - checkUnnamed886(o.guardianInvitations); + checkUnnamed910(o.guardianInvitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardianInvitationsResponse--; } -buildUnnamed887() { +buildUnnamed911() { var o = new core.List<api.Guardian>(); o.add(buildGuardian()); o.add(buildGuardian()); return o; } -checkUnnamed887(core.List<api.Guardian> o) { +checkUnnamed911(core.List<api.Guardian> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardian(o[0]); checkGuardian(o[1]); @@ -717,7 +719,7 @@ var o = new api.ListGuardiansResponse(); buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - o.guardians = buildUnnamed887(); + o.guardians = buildUnnamed911(); o.nextPageToken = "foo"; } buildCounterListGuardiansResponse--; @@ -727,20 +729,20 @@ checkListGuardiansResponse(api.ListGuardiansResponse o) { buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - checkUnnamed887(o.guardians); + checkUnnamed911(o.guardians); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardiansResponse--; } -buildUnnamed888() { +buildUnnamed912() { var o = new core.List<api.Invitation>(); o.add(buildInvitation()); o.add(buildInvitation()); return o; } -checkUnnamed888(core.List<api.Invitation> o) { +checkUnnamed912(core.List<api.Invitation> o) { unittest.expect(o, unittest.hasLength(2)); checkInvitation(o[0]); checkInvitation(o[1]); @@ -751,7 +753,7 @@ var o = new api.ListInvitationsResponse(); buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - o.invitations = buildUnnamed888(); + o.invitations = buildUnnamed912(); o.nextPageToken = "foo"; } buildCounterListInvitationsResponse--; @@ -761,20 +763,20 @@ checkListInvitationsResponse(api.ListInvitationsResponse o) { buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - checkUnnamed888(o.invitations); + checkUnnamed912(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInvitationsResponse--; } -buildUnnamed889() { +buildUnnamed913() { var o = new core.List<api.StudentSubmission>(); o.add(buildStudentSubmission()); o.add(buildStudentSubmission()); return o; } -checkUnnamed889(core.List<api.StudentSubmission> o) { +checkUnnamed913(core.List<api.StudentSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkStudentSubmission(o[0]); checkStudentSubmission(o[1]); @@ -786,7 +788,7 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { o.nextPageToken = "foo"; - o.studentSubmissions = buildUnnamed889(); + o.studentSubmissions = buildUnnamed913(); } buildCounterListStudentSubmissionsResponse--; return o; @@ -796,19 +798,19 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed889(o.studentSubmissions); + checkUnnamed913(o.studentSubmissions); } buildCounterListStudentSubmissionsResponse--; } -buildUnnamed890() { +buildUnnamed914() { var o = new core.List<api.Student>(); o.add(buildStudent()); o.add(buildStudent()); return o; } -checkUnnamed890(core.List<api.Student> o) { +checkUnnamed914(core.List<api.Student> o) { unittest.expect(o, unittest.hasLength(2)); checkStudent(o[0]); checkStudent(o[1]); @@ -820,7 +822,7 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { o.nextPageToken = "foo"; - o.students = buildUnnamed890(); + o.students = buildUnnamed914(); } buildCounterListStudentsResponse--; return o; @@ -830,19 +832,19 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed890(o.students); + checkUnnamed914(o.students); } buildCounterListStudentsResponse--; } -buildUnnamed891() { +buildUnnamed915() { var o = new core.List<api.Teacher>(); o.add(buildTeacher()); o.add(buildTeacher()); return o; } -checkUnnamed891(core.List<api.Teacher> o) { +checkUnnamed915(core.List<api.Teacher> o) { unittest.expect(o, unittest.hasLength(2)); checkTeacher(o[0]); checkTeacher(o[1]); @@ -854,7 +856,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { o.nextPageToken = "foo"; - o.teachers = buildUnnamed891(); + o.teachers = buildUnnamed915(); } buildCounterListTeachersResponse--; return o; @@ -864,7 +866,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed891(o.teachers); + checkUnnamed915(o.teachers); } buildCounterListTeachersResponse--; } @@ -894,14 +896,14 @@ buildCounterMaterial--; } -buildUnnamed892() { +buildUnnamed916() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed892(core.List<api.Attachment> o) { +checkUnnamed916(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -912,7 +914,7 @@ var o = new api.ModifyAttachmentsRequest(); buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - o.addAttachments = buildUnnamed892(); + o.addAttachments = buildUnnamed916(); } buildCounterModifyAttachmentsRequest--; return o; @@ -921,19 +923,19 @@ checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - checkUnnamed892(o.addAttachments); + checkUnnamed916(o.addAttachments); } buildCounterModifyAttachmentsRequest--; } -buildUnnamed893() { +buildUnnamed917() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed893(core.List<core.String> o) { +checkUnnamed917(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -944,7 +946,7 @@ var o = new api.MultipleChoiceQuestion(); buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - o.choices = buildUnnamed893(); + o.choices = buildUnnamed917(); } buildCounterMultipleChoiceQuestion--; return o; @@ -953,7 +955,7 @@ checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - checkUnnamed893(o.choices); + checkUnnamed917(o.choices); } buildCounterMultipleChoiceQuestion--; } @@ -1213,14 +1215,14 @@ buildCounterTurnInStudentSubmissionRequest--; } -buildUnnamed894() { +buildUnnamed918() { var o = new core.List<api.GlobalPermission>(); o.add(buildGlobalPermission()); o.add(buildGlobalPermission()); return o; } -checkUnnamed894(core.List<api.GlobalPermission> o) { +checkUnnamed918(core.List<api.GlobalPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkGlobalPermission(o[0]); checkGlobalPermission(o[1]); @@ -1234,7 +1236,7 @@ o.emailAddress = "foo"; o.id = "foo"; o.name = buildName(); - o.permissions = buildUnnamed894(); + o.permissions = buildUnnamed918(); o.photoUrl = "foo"; } buildCounterUserProfile--; @@ -1247,7 +1249,7 @@ unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkName(o.name); - checkUnnamed894(o.permissions); + checkUnnamed918(o.permissions); unittest.expect(o.photoUrl, unittest.equals('foo')); } buildCounterUserProfile--; @@ -1278,40 +1280,53 @@ buildCounterYouTubeVideo--; } -buildUnnamed895() { +buildUnnamed919() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed895(core.List<core.String> o) { +checkUnnamed919(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed896() { +buildUnnamed920() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed896(core.List<core.String> o) { +checkUnnamed920(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed897() { +buildUnnamed921() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed897(core.List<core.String> o) { +checkUnnamed921(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed922() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed922(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1854,6 +1869,7 @@ api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; var arg_studentId = "foo"; var arg_teacherId = "foo"; + var arg_courseStates = buildUnnamed919(); var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -1884,6 +1900,7 @@ } unittest.expect(queryMap["studentId"].first, unittest.equals(arg_studentId)); unittest.expect(queryMap["teacherId"].first, unittest.equals(arg_teacherId)); + unittest.expect(queryMap["courseStates"], unittest.equals(arg_courseStates)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1894,7 +1911,7 @@ var resp = convert.JSON.encode(buildListCoursesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(studentId: arg_studentId, teacherId: arg_teacherId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCoursesResponse response) { + res.list(studentId: arg_studentId, teacherId: arg_teacherId, courseStates: arg_courseStates, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCoursesResponse response) { checkListCoursesResponse(response); }))); }); @@ -2291,7 +2308,7 @@ var mock = new HttpServerMock(); api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses.courseWork; var arg_courseId = "foo"; - var arg_courseWorkStates = buildUnnamed895(); + var arg_courseWorkStates = buildUnnamed920(); var arg_orderBy = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; @@ -2419,7 +2436,7 @@ var arg_courseId = "foo"; var arg_courseWorkId = "foo"; var arg_userId = "foo"; - var arg_states = buildUnnamed896(); + var arg_states = buildUnnamed921(); var arg_late = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; @@ -3702,7 +3719,7 @@ api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi(mock).userProfiles.guardianInvitations; var arg_studentId = "foo"; var arg_invitedEmailAddress = "foo"; - var arg_states = buildUnnamed897(); + var arg_states = buildUnnamed922(); var arg_pageToken = "foo"; var arg_pageSize = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart index 2c0e28e..451831c 100644 --- a/generated/googleapis/test/cloudbuild/v1_test.dart +++ b/generated/googleapis/test/cloudbuild/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1412() { +buildUnnamed1422() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1412(core.List<core.String> o) { +checkUnnamed1422(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1413() { +buildUnnamed1423() { var o = new core.List<api.BuildStep>(); o.add(buildBuildStep()); o.add(buildBuildStep()); return o; } -checkUnnamed1413(core.List<api.BuildStep> o) { +checkUnnamed1423(core.List<api.BuildStep> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildStep(o[0]); checkBuildStep(o[1]); @@ -82,10 +82,11 @@ var o = new api.Build(); buildCounterBuild++; if (buildCounterBuild < 3) { + o.buildTriggerId = "foo"; o.createTime = "foo"; o.finishTime = "foo"; o.id = "foo"; - o.images = buildUnnamed1412(); + o.images = buildUnnamed1422(); o.logUrl = "foo"; o.logsBucket = "foo"; o.options = buildBuildOptions(); @@ -96,7 +97,7 @@ o.startTime = "foo"; o.status = "foo"; o.statusDetail = "foo"; - o.steps = buildUnnamed1413(); + o.steps = buildUnnamed1423(); o.timeout = "foo"; } buildCounterBuild--; @@ -106,10 +107,11 @@ checkBuild(api.Build o) { buildCounterBuild++; if (buildCounterBuild < 3) { + unittest.expect(o.buildTriggerId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.finishTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1412(o.images); + checkUnnamed1422(o.images); unittest.expect(o.logUrl, unittest.equals('foo')); unittest.expect(o.logsBucket, unittest.equals('foo')); checkBuildOptions(o.options); @@ -120,7 +122,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); - checkUnnamed1413(o.steps); + checkUnnamed1423(o.steps); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterBuild--; @@ -145,14 +147,14 @@ buildCounterBuildOperationMetadata--; } -buildUnnamed1414() { +buildUnnamed1424() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1414(core.List<core.String> o) { +checkUnnamed1424(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -164,7 +166,7 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { o.requestedVerifyOption = "foo"; - o.sourceProvenanceHash = buildUnnamed1414(); + o.sourceProvenanceHash = buildUnnamed1424(); } buildCounterBuildOptions--; return o; @@ -174,45 +176,45 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { unittest.expect(o.requestedVerifyOption, unittest.equals('foo')); - checkUnnamed1414(o.sourceProvenanceHash); + checkUnnamed1424(o.sourceProvenanceHash); } buildCounterBuildOptions--; } -buildUnnamed1415() { +buildUnnamed1425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1415(core.List<core.String> o) { +checkUnnamed1425(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1416() { +buildUnnamed1426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1416(core.List<core.String> o) { +checkUnnamed1426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1417() { +buildUnnamed1427() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1417(core.List<core.String> o) { +checkUnnamed1427(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -223,12 +225,12 @@ var o = new api.BuildStep(); buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - o.args = buildUnnamed1415(); + o.args = buildUnnamed1425(); o.dir = "foo"; - o.env = buildUnnamed1416(); + o.env = buildUnnamed1426(); o.id = "foo"; o.name = "foo"; - o.waitFor = buildUnnamed1417(); + o.waitFor = buildUnnamed1427(); } buildCounterBuildStep--; return o; @@ -237,12 +239,12 @@ checkBuildStep(api.BuildStep o) { buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - checkUnnamed1415(o.args); + checkUnnamed1425(o.args); unittest.expect(o.dir, unittest.equals('foo')); - checkUnnamed1416(o.env); + checkUnnamed1426(o.env); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1417(o.waitFor); + checkUnnamed1427(o.waitFor); } buildCounterBuildStep--; } @@ -254,6 +256,8 @@ if (buildCounterBuildTrigger < 3) { o.build = buildBuild(); o.createTime = "foo"; + o.description = "foo"; + o.disabled = true; o.filename = "foo"; o.id = "foo"; o.triggerTemplate = buildRepoSource(); @@ -267,6 +271,8 @@ if (buildCounterBuildTrigger < 3) { checkBuild(o.build); unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRepoSource(o.triggerTemplate); @@ -329,14 +335,14 @@ buildCounterEmpty--; } -buildUnnamed1418() { +buildUnnamed1428() { var o = new core.List<api.Hash>(); o.add(buildHash()); o.add(buildHash()); return o; } -checkUnnamed1418(core.List<api.Hash> o) { +checkUnnamed1428(core.List<api.Hash> o) { unittest.expect(o, unittest.hasLength(2)); checkHash(o[0]); checkHash(o[1]); @@ -347,7 +353,7 @@ var o = new api.FileHashes(); buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - o.fileHash = buildUnnamed1418(); + o.fileHash = buildUnnamed1428(); } buildCounterFileHashes--; return o; @@ -356,7 +362,7 @@ checkFileHashes(api.FileHashes o) { buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - checkUnnamed1418(o.fileHash); + checkUnnamed1428(o.fileHash); } buildCounterFileHashes--; } @@ -382,14 +388,14 @@ buildCounterHash--; } -buildUnnamed1419() { +buildUnnamed1429() { var o = new core.List<api.BuildTrigger>(); o.add(buildBuildTrigger()); o.add(buildBuildTrigger()); return o; } -checkUnnamed1419(core.List<api.BuildTrigger> o) { +checkUnnamed1429(core.List<api.BuildTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildTrigger(o[0]); checkBuildTrigger(o[1]); @@ -400,7 +406,7 @@ var o = new api.ListBuildTriggersResponse(); buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - o.triggers = buildUnnamed1419(); + o.triggers = buildUnnamed1429(); } buildCounterListBuildTriggersResponse--; return o; @@ -409,19 +415,19 @@ checkListBuildTriggersResponse(api.ListBuildTriggersResponse o) { buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - checkUnnamed1419(o.triggers); + checkUnnamed1429(o.triggers); } buildCounterListBuildTriggersResponse--; } -buildUnnamed1420() { +buildUnnamed1430() { var o = new core.List<api.Build>(); o.add(buildBuild()); o.add(buildBuild()); return o; } -checkUnnamed1420(core.List<api.Build> o) { +checkUnnamed1430(core.List<api.Build> o) { unittest.expect(o, unittest.hasLength(2)); checkBuild(o[0]); checkBuild(o[1]); @@ -432,7 +438,7 @@ var o = new api.ListBuildsResponse(); buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - o.builds = buildUnnamed1420(); + o.builds = buildUnnamed1430(); o.nextPageToken = "foo"; } buildCounterListBuildsResponse--; @@ -442,20 +448,20 @@ checkListBuildsResponse(api.ListBuildsResponse o) { buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - checkUnnamed1420(o.builds); + checkUnnamed1430(o.builds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBuildsResponse--; } -buildUnnamed1421() { +buildUnnamed1431() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1421(core.List<api.Operation> o) { +checkUnnamed1431(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -467,7 +473,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1421(); + o.operations = buildUnnamed1431(); } buildCounterListOperationsResponse--; return o; @@ -477,32 +483,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1421(o.operations); + checkUnnamed1431(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1422() { +buildUnnamed1432() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1422(core.Map<core.String, core.Object> o) { +checkUnnamed1432(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1423() { +buildUnnamed1433() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1423(core.Map<core.String, core.Object> o) { +checkUnnamed1433(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -515,9 +521,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1422(); + o.metadata = buildUnnamed1432(); o.name = "foo"; - o.response = buildUnnamed1423(); + o.response = buildUnnamed1433(); } buildCounterOperation--; return o; @@ -528,9 +534,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1422(o.metadata); + checkUnnamed1432(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1423(o.response); + checkUnnamed1433(o.response); } buildCounterOperation--; } @@ -562,27 +568,27 @@ buildCounterRepoSource--; } -buildUnnamed1424() { +buildUnnamed1434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1424(core.List<core.String> o) { +checkUnnamed1434(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1425() { +buildUnnamed1435() { var o = new core.List<api.BuiltImage>(); o.add(buildBuiltImage()); o.add(buildBuiltImage()); return o; } -checkUnnamed1425(core.List<api.BuiltImage> o) { +checkUnnamed1435(core.List<api.BuiltImage> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltImage(o[0]); checkBuiltImage(o[1]); @@ -593,8 +599,8 @@ var o = new api.Results(); buildCounterResults++; if (buildCounterResults < 3) { - o.buildStepImages = buildUnnamed1424(); - o.images = buildUnnamed1425(); + o.buildStepImages = buildUnnamed1434(); + o.images = buildUnnamed1435(); } buildCounterResults--; return o; @@ -603,8 +609,8 @@ checkResults(api.Results o) { buildCounterResults++; if (buildCounterResults < 3) { - checkUnnamed1424(o.buildStepImages); - checkUnnamed1425(o.images); + checkUnnamed1434(o.buildStepImages); + checkUnnamed1435(o.images); } buildCounterResults--; } @@ -630,14 +636,14 @@ buildCounterSource--; } -buildUnnamed1426() { +buildUnnamed1436() { var o = new core.Map<core.String, api.FileHashes>(); o["x"] = buildFileHashes(); o["y"] = buildFileHashes(); return o; } -checkUnnamed1426(core.Map<core.String, api.FileHashes> o) { +checkUnnamed1436(core.Map<core.String, api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o["x"]); checkFileHashes(o["y"]); @@ -648,7 +654,7 @@ var o = new api.SourceProvenance(); buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - o.fileHashes = buildUnnamed1426(); + o.fileHashes = buildUnnamed1436(); o.resolvedRepoSource = buildRepoSource(); o.resolvedStorageSource = buildStorageSource(); } @@ -659,37 +665,37 @@ checkSourceProvenance(api.SourceProvenance o) { buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - checkUnnamed1426(o.fileHashes); + checkUnnamed1436(o.fileHashes); checkRepoSource(o.resolvedRepoSource); checkStorageSource(o.resolvedStorageSource); } buildCounterSourceProvenance--; } -buildUnnamed1427() { +buildUnnamed1437() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1427(core.Map<core.String, core.Object> o) { +checkUnnamed1437(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1428() { +buildUnnamed1438() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1427()); - o.add(buildUnnamed1427()); + o.add(buildUnnamed1437()); + o.add(buildUnnamed1437()); return o; } -checkUnnamed1428(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1438(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1427(o[0]); - checkUnnamed1427(o[1]); + checkUnnamed1437(o[0]); + checkUnnamed1437(o[1]); } core.int buildCounterStatus = 0; @@ -698,7 +704,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1428(); + o.details = buildUnnamed1438(); o.message = "foo"; } buildCounterStatus--; @@ -709,7 +715,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1428(o.details); + checkUnnamed1438(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1200,6 +1206,7 @@ api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds; var arg_projectId = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1235,6 +1242,7 @@ } } unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1244,7 +1252,7 @@ var resp = convert.JSON.encode(buildListBuildsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListBuildsResponse response) { + res.list(arg_projectId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListBuildsResponse response) { checkListBuildsResponse(response); }))); });
diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart index f45fcde..64aa684 100644 --- a/generated/googleapis/test/clouddebugger/v2_test.dart +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
@@ -72,66 +72,66 @@ buildCounterAliasContext--; } -buildUnnamed972() { +buildUnnamed998() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed972(core.List<api.Variable> o) { +checkUnnamed998(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed973() { +buildUnnamed999() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed973(core.List<core.String> o) { +checkUnnamed999(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed974() { +buildUnnamed1000() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed974(core.Map<core.String, core.String> o) { +checkUnnamed1000(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed975() { +buildUnnamed1001() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed975(core.List<api.StackFrame> o) { +checkUnnamed1001(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); } -buildUnnamed976() { +buildUnnamed1002() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed976(core.List<api.Variable> o) { +checkUnnamed1002(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -145,19 +145,19 @@ o.action = "foo"; o.condition = "foo"; o.createTime = "foo"; - o.evaluatedExpressions = buildUnnamed972(); - o.expressions = buildUnnamed973(); + o.evaluatedExpressions = buildUnnamed998(); + o.expressions = buildUnnamed999(); o.finalTime = "foo"; o.id = "foo"; o.isFinalState = true; - o.labels = buildUnnamed974(); + o.labels = buildUnnamed1000(); o.location = buildSourceLocation(); o.logLevel = "foo"; o.logMessageFormat = "foo"; - o.stackFrames = buildUnnamed975(); + o.stackFrames = buildUnnamed1001(); o.status = buildStatusMessage(); o.userEmail = "foo"; - o.variableTable = buildUnnamed976(); + o.variableTable = buildUnnamed1002(); } buildCounterBreakpoint--; return o; @@ -169,19 +169,19 @@ unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed972(o.evaluatedExpressions); - checkUnnamed973(o.expressions); + checkUnnamed998(o.evaluatedExpressions); + checkUnnamed999(o.expressions); unittest.expect(o.finalTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isFinalState, unittest.isTrue); - checkUnnamed974(o.labels); + checkUnnamed1000(o.labels); checkSourceLocation(o.location); unittest.expect(o.logLevel, unittest.equals('foo')); unittest.expect(o.logMessageFormat, unittest.equals('foo')); - checkUnnamed975(o.stackFrames); + checkUnnamed1001(o.stackFrames); checkStatusMessage(o.status); unittest.expect(o.userEmail, unittest.equals('foo')); - checkUnnamed976(o.variableTable); + checkUnnamed1002(o.variableTable); } buildCounterBreakpoint--; } @@ -253,40 +253,40 @@ buildCounterCloudWorkspaceSourceContext--; } -buildUnnamed977() { +buildUnnamed1003() { var o = new core.List<api.ExtendedSourceContext>(); o.add(buildExtendedSourceContext()); o.add(buildExtendedSourceContext()); return o; } -checkUnnamed977(core.List<api.ExtendedSourceContext> o) { +checkUnnamed1003(core.List<api.ExtendedSourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedSourceContext(o[0]); checkExtendedSourceContext(o[1]); } -buildUnnamed978() { +buildUnnamed1004() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed978(core.Map<core.String, core.String> o) { +checkUnnamed1004(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed979() { +buildUnnamed1005() { var o = new core.List<api.SourceContext>(); o.add(buildSourceContext()); o.add(buildSourceContext()); return o; } -checkUnnamed979(core.List<api.SourceContext> o) { +checkUnnamed1005(core.List<api.SourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceContext(o[0]); checkSourceContext(o[1]); @@ -299,13 +299,13 @@ if (buildCounterDebuggee < 3) { o.agentVersion = "foo"; o.description = "foo"; - o.extSourceContexts = buildUnnamed977(); + o.extSourceContexts = buildUnnamed1003(); o.id = "foo"; o.isDisabled = true; o.isInactive = true; - o.labels = buildUnnamed978(); + o.labels = buildUnnamed1004(); o.project = "foo"; - o.sourceContexts = buildUnnamed979(); + o.sourceContexts = buildUnnamed1005(); o.status = buildStatusMessage(); o.uniquifier = "foo"; } @@ -318,13 +318,13 @@ if (buildCounterDebuggee < 3) { unittest.expect(o.agentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed977(o.extSourceContexts); + checkUnnamed1003(o.extSourceContexts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isDisabled, unittest.isTrue); unittest.expect(o.isInactive, unittest.isTrue); - checkUnnamed978(o.labels); + checkUnnamed1004(o.labels); unittest.expect(o.project, unittest.equals('foo')); - checkUnnamed979(o.sourceContexts); + checkUnnamed1005(o.sourceContexts); checkStatusMessage(o.status); unittest.expect(o.uniquifier, unittest.equals('foo')); } @@ -348,14 +348,14 @@ buildCounterEmpty--; } -buildUnnamed980() { +buildUnnamed1006() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed980(core.Map<core.String, core.String> o) { +checkUnnamed1006(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -367,7 +367,7 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { o.context = buildSourceContext(); - o.labels = buildUnnamed980(); + o.labels = buildUnnamed1006(); } buildCounterExtendedSourceContext--; return o; @@ -377,19 +377,19 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { checkSourceContext(o.context); - checkUnnamed980(o.labels); + checkUnnamed1006(o.labels); } buildCounterExtendedSourceContext--; } -buildUnnamed981() { +buildUnnamed1007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed981(core.List<core.String> o) { +checkUnnamed1007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -401,7 +401,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { o.format = "foo"; - o.parameters = buildUnnamed981(); + o.parameters = buildUnnamed1007(); } buildCounterFormatMessage--; return o; @@ -411,7 +411,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed981(o.parameters); + checkUnnamed1007(o.parameters); } buildCounterFormatMessage--; } @@ -483,14 +483,14 @@ buildCounterGitSourceContext--; } -buildUnnamed982() { +buildUnnamed1008() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed982(core.List<api.Breakpoint> o) { +checkUnnamed1008(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -501,7 +501,7 @@ var o = new api.ListActiveBreakpointsResponse(); buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed982(); + o.breakpoints = buildUnnamed1008(); o.nextWaitToken = "foo"; o.waitExpired = true; } @@ -512,21 +512,21 @@ checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - checkUnnamed982(o.breakpoints); + checkUnnamed1008(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); unittest.expect(o.waitExpired, unittest.isTrue); } buildCounterListActiveBreakpointsResponse--; } -buildUnnamed983() { +buildUnnamed1009() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed983(core.List<api.Breakpoint> o) { +checkUnnamed1009(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -537,7 +537,7 @@ var o = new api.ListBreakpointsResponse(); buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed983(); + o.breakpoints = buildUnnamed1009(); o.nextWaitToken = "foo"; } buildCounterListBreakpointsResponse--; @@ -547,20 +547,20 @@ checkListBreakpointsResponse(api.ListBreakpointsResponse o) { buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - checkUnnamed983(o.breakpoints); + checkUnnamed1009(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); } buildCounterListBreakpointsResponse--; } -buildUnnamed984() { +buildUnnamed1010() { var o = new core.List<api.Debuggee>(); o.add(buildDebuggee()); o.add(buildDebuggee()); return o; } -checkUnnamed984(core.List<api.Debuggee> o) { +checkUnnamed1010(core.List<api.Debuggee> o) { unittest.expect(o, unittest.hasLength(2)); checkDebuggee(o[0]); checkDebuggee(o[1]); @@ -571,7 +571,7 @@ var o = new api.ListDebuggeesResponse(); buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - o.debuggees = buildUnnamed984(); + o.debuggees = buildUnnamed1010(); } buildCounterListDebuggeesResponse--; return o; @@ -580,7 +580,7 @@ checkListDebuggeesResponse(api.ListDebuggeesResponse o) { buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - checkUnnamed984(o.debuggees); + checkUnnamed1010(o.debuggees); } buildCounterListDebuggeesResponse--; } @@ -730,27 +730,27 @@ buildCounterSourceLocation--; } -buildUnnamed985() { +buildUnnamed1011() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed985(core.List<api.Variable> o) { +checkUnnamed1011(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed986() { +buildUnnamed1012() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed986(core.List<api.Variable> o) { +checkUnnamed1012(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -761,9 +761,9 @@ var o = new api.StackFrame(); buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - o.arguments = buildUnnamed985(); + o.arguments = buildUnnamed1011(); o.function = "foo"; - o.locals = buildUnnamed986(); + o.locals = buildUnnamed1012(); o.location = buildSourceLocation(); } buildCounterStackFrame--; @@ -773,9 +773,9 @@ checkStackFrame(api.StackFrame o) { buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - checkUnnamed985(o.arguments); + checkUnnamed1011(o.arguments); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed986(o.locals); + checkUnnamed1012(o.locals); checkSourceLocation(o.location); } buildCounterStackFrame--; @@ -840,14 +840,14 @@ buildCounterUpdateActiveBreakpointResponse--; } -buildUnnamed987() { +buildUnnamed1013() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed987(core.List<api.Variable> o) { +checkUnnamed1013(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -858,7 +858,7 @@ var o = new api.Variable(); buildCounterVariable++; if (buildCounterVariable < 3) { - o.members = buildUnnamed987(); + o.members = buildUnnamed1013(); o.name = "foo"; o.status = buildStatusMessage(); o.type = "foo"; @@ -872,7 +872,7 @@ checkVariable(api.Variable o) { buildCounterVariable++; if (buildCounterVariable < 3) { - checkUnnamed987(o.members); + checkUnnamed1013(o.members); unittest.expect(o.name, unittest.equals('foo')); checkStatusMessage(o.status); unittest.expect(o.type, unittest.equals('foo'));
diff --git a/generated/googleapis/test/cloudresourcemanager/v1_test.dart b/generated/googleapis/test/cloudresourcemanager/v1_test.dart index 81a2322..641c65f 100644 --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2174() { +buildUnnamed1927() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2174(core.List<core.String> o) { +checkUnnamed1927(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2174(); + o.members = buildUnnamed1927(); o.role = "foo"; } buildCounterBinding--; @@ -79,7 +79,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2174(o.members); + checkUnnamed1927(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -102,6 +102,50 @@ buildCounterEmpty--; } +core.int buildCounterFolderOperation = 0; +buildFolderOperation() { + var o = new api.FolderOperation(); + buildCounterFolderOperation++; + if (buildCounterFolderOperation < 3) { + o.destinationParent = "foo"; + o.displayName = "foo"; + o.operationType = "foo"; + o.sourceParent = "foo"; + } + buildCounterFolderOperation--; + return o; +} + +checkFolderOperation(api.FolderOperation o) { + buildCounterFolderOperation++; + if (buildCounterFolderOperation < 3) { + unittest.expect(o.destinationParent, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.operationType, unittest.equals('foo')); + unittest.expect(o.sourceParent, unittest.equals('foo')); + } + buildCounterFolderOperation--; +} + +core.int buildCounterFolderOperationError = 0; +buildFolderOperationError() { + var o = new api.FolderOperationError(); + buildCounterFolderOperationError++; + if (buildCounterFolderOperationError < 3) { + o.errorMessageId = "foo"; + } + buildCounterFolderOperationError--; + return o; +} + +checkFolderOperationError(api.FolderOperationError o) { + buildCounterFolderOperationError++; + if (buildCounterFolderOperationError < 3) { + unittest.expect(o.errorMessageId, unittest.equals('foo')); + } + buildCounterFolderOperationError--; +} + core.int buildCounterGetIamPolicyRequest = 0; buildGetIamPolicyRequest() { var o = new api.GetIamPolicyRequest(); @@ -119,14 +163,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2175() { +buildUnnamed1928() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2175(core.List<api.Project> o) { +checkUnnamed1928(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -138,7 +182,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed2175(); + o.projects = buildUnnamed1928(); } buildCounterListProjectsResponse--; return o; @@ -148,32 +192,32 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2175(o.projects); + checkUnnamed1928(o.projects); } buildCounterListProjectsResponse--; } -buildUnnamed2176() { +buildUnnamed1929() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2176(core.Map<core.String, core.Object> o) { +checkUnnamed1929(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2177() { +buildUnnamed1930() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2177(core.Map<core.String, core.Object> o) { +checkUnnamed1930(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -186,9 +230,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2176(); + o.metadata = buildUnnamed1929(); o.name = "foo"; - o.response = buildUnnamed2177(); + o.response = buildUnnamed1930(); } buildCounterOperation--; return o; @@ -199,21 +243,67 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2176(o.metadata); + checkUnnamed1929(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2177(o.response); + checkUnnamed1930(o.response); } buildCounterOperation--; } -buildUnnamed2178() { +core.int buildCounterOrganization = 0; +buildOrganization() { + var o = new api.Organization(); + buildCounterOrganization++; + if (buildCounterOrganization < 3) { + o.creationTime = "foo"; + o.displayName = "foo"; + o.lifecycleState = "foo"; + o.name = "foo"; + o.owner = buildOrganizationOwner(); + } + buildCounterOrganization--; + return o; +} + +checkOrganization(api.Organization o) { + buildCounterOrganization++; + if (buildCounterOrganization < 3) { + unittest.expect(o.creationTime, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.lifecycleState, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkOrganizationOwner(o.owner); + } + buildCounterOrganization--; +} + +core.int buildCounterOrganizationOwner = 0; +buildOrganizationOwner() { + var o = new api.OrganizationOwner(); + buildCounterOrganizationOwner++; + if (buildCounterOrganizationOwner < 3) { + o.directoryCustomerId = "foo"; + } + buildCounterOrganizationOwner--; + return o; +} + +checkOrganizationOwner(api.OrganizationOwner o) { + buildCounterOrganizationOwner++; + if (buildCounterOrganizationOwner < 3) { + unittest.expect(o.directoryCustomerId, unittest.equals('foo')); + } + buildCounterOrganizationOwner--; +} + +buildUnnamed1931() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2178(core.List<api.Binding> o) { +checkUnnamed1931(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -224,7 +314,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2178(); + o.bindings = buildUnnamed1931(); o.etag = "foo"; o.version = 42; } @@ -235,21 +325,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2178(o.bindings); + checkUnnamed1931(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed2179() { +buildUnnamed1932() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2179(core.Map<core.String, core.String> o) { +checkUnnamed1932(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -261,7 +351,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed2179(); + o.labels = buildUnnamed1932(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -276,7 +366,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2179(o.labels); + checkUnnamed1932(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -286,6 +376,29 @@ buildCounterProject--; } +core.int buildCounterProjectCreationStatus = 0; +buildProjectCreationStatus() { + var o = new api.ProjectCreationStatus(); + buildCounterProjectCreationStatus++; + if (buildCounterProjectCreationStatus < 3) { + o.createTime = "foo"; + o.gettable = true; + o.ready = true; + } + buildCounterProjectCreationStatus--; + return o; +} + +checkProjectCreationStatus(api.ProjectCreationStatus o) { + buildCounterProjectCreationStatus++; + if (buildCounterProjectCreationStatus < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.gettable, unittest.isTrue); + unittest.expect(o.ready, unittest.isTrue); + } + buildCounterProjectCreationStatus--; +} + core.int buildCounterResourceId = 0; buildResourceId() { var o = new api.ResourceId(); @@ -307,6 +420,63 @@ buildCounterResourceId--; } +core.int buildCounterSearchOrganizationsRequest = 0; +buildSearchOrganizationsRequest() { + var o = new api.SearchOrganizationsRequest(); + buildCounterSearchOrganizationsRequest++; + if (buildCounterSearchOrganizationsRequest < 3) { + o.filter = "foo"; + o.pageSize = 42; + o.pageToken = "foo"; + } + buildCounterSearchOrganizationsRequest--; + return o; +} + +checkSearchOrganizationsRequest(api.SearchOrganizationsRequest o) { + buildCounterSearchOrganizationsRequest++; + if (buildCounterSearchOrganizationsRequest < 3) { + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.pageSize, unittest.equals(42)); + unittest.expect(o.pageToken, unittest.equals('foo')); + } + buildCounterSearchOrganizationsRequest--; +} + +buildUnnamed1933() { + var o = new core.List<api.Organization>(); + o.add(buildOrganization()); + o.add(buildOrganization()); + return o; +} + +checkUnnamed1933(core.List<api.Organization> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOrganization(o[0]); + checkOrganization(o[1]); +} + +core.int buildCounterSearchOrganizationsResponse = 0; +buildSearchOrganizationsResponse() { + var o = new api.SearchOrganizationsResponse(); + buildCounterSearchOrganizationsResponse++; + if (buildCounterSearchOrganizationsResponse < 3) { + o.nextPageToken = "foo"; + o.organizations = buildUnnamed1933(); + } + buildCounterSearchOrganizationsResponse--; + return o; +} + +checkSearchOrganizationsResponse(api.SearchOrganizationsResponse o) { + buildCounterSearchOrganizationsResponse++; + if (buildCounterSearchOrganizationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1933(o.organizations); + } + buildCounterSearchOrganizationsResponse--; +} + core.int buildCounterSetIamPolicyRequest = 0; buildSetIamPolicyRequest() { var o = new api.SetIamPolicyRequest(); @@ -326,30 +496,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed2180() { +buildUnnamed1934() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2180(core.Map<core.String, core.Object> o) { +checkUnnamed1934(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2181() { +buildUnnamed1935() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2180()); - o.add(buildUnnamed2180()); + o.add(buildUnnamed1934()); + o.add(buildUnnamed1934()); return o; } -checkUnnamed2181(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1935(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2180(o[0]); - checkUnnamed2180(o[1]); + checkUnnamed1934(o[0]); + checkUnnamed1934(o[1]); } core.int buildCounterStatus = 0; @@ -358,7 +528,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2181(); + o.details = buildUnnamed1935(); o.message = "foo"; } buildCounterStatus--; @@ -369,20 +539,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2181(o.details); + checkUnnamed1935(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2182() { +buildUnnamed1936() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2182(core.List<core.String> o) { +checkUnnamed1936(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -393,7 +563,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2182(); + o.permissions = buildUnnamed1936(); } buildCounterTestIamPermissionsRequest--; return o; @@ -402,19 +572,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2182(o.permissions); + checkUnnamed1936(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2183() { +buildUnnamed1937() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2183(core.List<core.String> o) { +checkUnnamed1937(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -425,7 +595,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2183(); + o.permissions = buildUnnamed1937(); } buildCounterTestIamPermissionsResponse--; return o; @@ -434,7 +604,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2183(o.permissions); + checkUnnamed1937(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -476,6 +646,24 @@ }); + unittest.group("obj-schema-FolderOperation", () { + unittest.test("to-json--from-json", () { + var o = buildFolderOperation(); + var od = new api.FolderOperation.fromJson(o.toJson()); + checkFolderOperation(od); + }); + }); + + + unittest.group("obj-schema-FolderOperationError", () { + unittest.test("to-json--from-json", () { + var o = buildFolderOperationError(); + var od = new api.FolderOperationError.fromJson(o.toJson()); + checkFolderOperationError(od); + }); + }); + + unittest.group("obj-schema-GetIamPolicyRequest", () { unittest.test("to-json--from-json", () { var o = buildGetIamPolicyRequest(); @@ -503,6 +691,24 @@ }); + unittest.group("obj-schema-Organization", () { + unittest.test("to-json--from-json", () { + var o = buildOrganization(); + var od = new api.Organization.fromJson(o.toJson()); + checkOrganization(od); + }); + }); + + + unittest.group("obj-schema-OrganizationOwner", () { + unittest.test("to-json--from-json", () { + var o = buildOrganizationOwner(); + var od = new api.OrganizationOwner.fromJson(o.toJson()); + checkOrganizationOwner(od); + }); + }); + + unittest.group("obj-schema-Policy", () { unittest.test("to-json--from-json", () { var o = buildPolicy(); @@ -521,6 +727,15 @@ }); + unittest.group("obj-schema-ProjectCreationStatus", () { + unittest.test("to-json--from-json", () { + var o = buildProjectCreationStatus(); + var od = new api.ProjectCreationStatus.fromJson(o.toJson()); + checkProjectCreationStatus(od); + }); + }); + + unittest.group("obj-schema-ResourceId", () { unittest.test("to-json--from-json", () { var o = buildResourceId(); @@ -530,6 +745,24 @@ }); + unittest.group("obj-schema-SearchOrganizationsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSearchOrganizationsRequest(); + var od = new api.SearchOrganizationsRequest.fromJson(o.toJson()); + checkSearchOrganizationsRequest(od); + }); + }); + + + unittest.group("obj-schema-SearchOrganizationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSearchOrganizationsResponse(); + var od = new api.SearchOrganizationsResponse.fromJson(o.toJson()); + checkSearchOrganizationsResponse(od); + }); + }); + + unittest.group("obj-schema-SetIamPolicyRequest", () { unittest.test("to-json--from-json", () { var o = buildSetIamPolicyRequest(); @@ -624,7 +857,297 @@ }); + unittest.group("resource-OrganizationsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOrganization()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync(((api.Organization response) { + checkOrganization(response); + }))); + }); + + unittest.test("method--getIamPolicy", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildGetIamPolicyRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GetIamPolicyRequest.fromJson(json); + checkGetIamPolicyRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--search", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildSearchOrganizationsRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SearchOrganizationsRequest.fromJson(json); + checkSearchOrganizationsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1/organizations:search")); + pathOffset += 23; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSearchOrganizationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.search(arg_request).then(unittest.expectAsync(((api.SearchOrganizationsResponse response) { + checkSearchOrganizationsResponse(response); + }))); + }); + + unittest.test("method--setIamPolicy", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildSetIamPolicyRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SetIamPolicyRequest.fromJson(json); + checkSetIamPolicyRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildTestIamPermissionsRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TestIamPermissionsRequest.fromJson(json); + checkTestIamPermissionsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + checkTestIamPermissionsResponse(response); + }))); + }); + + }); + + unittest.group("resource-ProjectsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; + var arg_request = buildProject(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Project.fromJson(json); + checkProject(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/projects")); + pathOffset += 11; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--delete", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index 46c3733..7379eec 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccessConfig--; } -buildUnnamed2425() { +buildUnnamed2215() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2425(core.List<core.String> o) { +checkUnnamed2215(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -103,7 +103,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.users = buildUnnamed2425(); + o.users = buildUnnamed2215(); } buildCounterAddress--; return o; @@ -121,19 +121,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2425(o.users); + checkUnnamed2215(o.users); } buildCounterAddress--; } -buildUnnamed2426() { +buildUnnamed2216() { var o = new core.Map<core.String, api.AddressesScopedList>(); o["x"] = buildAddressesScopedList(); o["y"] = buildAddressesScopedList(); return o; } -checkUnnamed2426(core.Map<core.String, api.AddressesScopedList> o) { +checkUnnamed2216(core.Map<core.String, api.AddressesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedList(o["x"]); checkAddressesScopedList(o["y"]); @@ -145,7 +145,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2426(); + o.items = buildUnnamed2216(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -158,7 +158,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2426(o.items); + checkUnnamed2216(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -166,14 +166,14 @@ buildCounterAddressAggregatedList--; } -buildUnnamed2427() { +buildUnnamed2217() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2427(core.List<api.Address> o) { +checkUnnamed2217(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -185,7 +185,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { o.id = "foo"; - o.items = buildUnnamed2427(); + o.items = buildUnnamed2217(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -198,7 +198,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2427(o.items); + checkUnnamed2217(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -206,14 +206,14 @@ buildCounterAddressList--; } -buildUnnamed2428() { +buildUnnamed2218() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2428(core.List<api.Address> o) { +checkUnnamed2218(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -240,14 +240,14 @@ buildCounterAddressesScopedListWarningData--; } -buildUnnamed2429() { +buildUnnamed2219() { var o = new core.List<api.AddressesScopedListWarningData>(); o.add(buildAddressesScopedListWarningData()); o.add(buildAddressesScopedListWarningData()); return o; } -checkUnnamed2429(core.List<api.AddressesScopedListWarningData> o) { +checkUnnamed2219(core.List<api.AddressesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedListWarningData(o[0]); checkAddressesScopedListWarningData(o[1]); @@ -259,7 +259,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2429(); + o.data = buildUnnamed2219(); o.message = "foo"; } buildCounterAddressesScopedListWarning--; @@ -270,7 +270,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2429(o.data); + checkUnnamed2219(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressesScopedListWarning--; @@ -281,7 +281,7 @@ var o = new api.AddressesScopedList(); buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - o.addresses = buildUnnamed2428(); + o.addresses = buildUnnamed2218(); o.warning = buildAddressesScopedListWarning(); } buildCounterAddressesScopedList--; @@ -291,20 +291,20 @@ checkAddressesScopedList(api.AddressesScopedList o) { buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - checkUnnamed2428(o.addresses); + checkUnnamed2218(o.addresses); checkAddressesScopedListWarning(o.warning); } buildCounterAddressesScopedList--; } -buildUnnamed2430() { +buildUnnamed2220() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2430(core.List<core.String> o) { +checkUnnamed2220(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -323,7 +323,7 @@ o.initializeParams = buildAttachedDiskInitializeParams(); o.interface = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2430(); + o.licenses = buildUnnamed2220(); o.mode = "foo"; o.source = "foo"; o.type = "foo"; @@ -343,7 +343,7 @@ checkAttachedDiskInitializeParams(o.initializeParams); unittest.expect(o.interface, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2430(o.licenses); + checkUnnamed2220(o.licenses); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -389,6 +389,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; + o.region = "foo"; o.selfLink = "foo"; o.target = "foo"; o.zone = "foo"; @@ -406,6 +407,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -413,14 +415,14 @@ buildCounterAutoscaler--; } -buildUnnamed2431() { +buildUnnamed2221() { var o = new core.Map<core.String, api.AutoscalersScopedList>(); o["x"] = buildAutoscalersScopedList(); o["y"] = buildAutoscalersScopedList(); return o; } -checkUnnamed2431(core.Map<core.String, api.AutoscalersScopedList> o) { +checkUnnamed2221(core.Map<core.String, api.AutoscalersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedList(o["x"]); checkAutoscalersScopedList(o["y"]); @@ -432,7 +434,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2431(); + o.items = buildUnnamed2221(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -445,7 +447,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2431(o.items); + checkUnnamed2221(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -453,14 +455,14 @@ buildCounterAutoscalerAggregatedList--; } -buildUnnamed2432() { +buildUnnamed2222() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2432(core.List<api.Autoscaler> o) { +checkUnnamed2222(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -472,7 +474,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2432(); + o.items = buildUnnamed2222(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -485,7 +487,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2432(o.items); + checkUnnamed2222(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -493,14 +495,14 @@ buildCounterAutoscalerList--; } -buildUnnamed2433() { +buildUnnamed2223() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2433(core.List<api.Autoscaler> o) { +checkUnnamed2223(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -527,14 +529,14 @@ buildCounterAutoscalersScopedListWarningData--; } -buildUnnamed2434() { +buildUnnamed2224() { var o = new core.List<api.AutoscalersScopedListWarningData>(); o.add(buildAutoscalersScopedListWarningData()); o.add(buildAutoscalersScopedListWarningData()); return o; } -checkUnnamed2434(core.List<api.AutoscalersScopedListWarningData> o) { +checkUnnamed2224(core.List<api.AutoscalersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedListWarningData(o[0]); checkAutoscalersScopedListWarningData(o[1]); @@ -546,7 +548,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2434(); + o.data = buildUnnamed2224(); o.message = "foo"; } buildCounterAutoscalersScopedListWarning--; @@ -557,7 +559,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2434(o.data); + checkUnnamed2224(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalersScopedListWarning--; @@ -568,7 +570,7 @@ var o = new api.AutoscalersScopedList(); buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - o.autoscalers = buildUnnamed2433(); + o.autoscalers = buildUnnamed2223(); o.warning = buildAutoscalersScopedListWarning(); } buildCounterAutoscalersScopedList--; @@ -578,20 +580,20 @@ checkAutoscalersScopedList(api.AutoscalersScopedList o) { buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - checkUnnamed2433(o.autoscalers); + checkUnnamed2223(o.autoscalers); checkAutoscalersScopedListWarning(o.warning); } buildCounterAutoscalersScopedList--; } -buildUnnamed2435() { +buildUnnamed2225() { var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); o.add(buildAutoscalingPolicyCustomMetricUtilization()); o.add(buildAutoscalingPolicyCustomMetricUtilization()); return o; } -checkUnnamed2435(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { +checkUnnamed2225(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicyCustomMetricUtilization(o[0]); checkAutoscalingPolicyCustomMetricUtilization(o[1]); @@ -604,7 +606,7 @@ if (buildCounterAutoscalingPolicy < 3) { o.coolDownPeriodSec = 42; o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); - o.customMetricUtilizations = buildUnnamed2435(); + o.customMetricUtilizations = buildUnnamed2225(); o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(); o.maxNumReplicas = 42; o.minNumReplicas = 42; @@ -618,7 +620,7 @@ if (buildCounterAutoscalingPolicy < 3) { unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); - checkUnnamed2435(o.customMetricUtilizations); + checkUnnamed2225(o.customMetricUtilizations); checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); unittest.expect(o.maxNumReplicas, unittest.equals(42)); unittest.expect(o.minNumReplicas, unittest.equals(42)); @@ -696,6 +698,8 @@ o.capacityScaler = 42.0; o.description = "foo"; o.group = "foo"; + o.maxConnections = 42; + o.maxConnectionsPerInstance = 42; o.maxRate = 42; o.maxRatePerInstance = 42.0; o.maxUtilization = 42.0; @@ -711,6 +715,8 @@ unittest.expect(o.capacityScaler, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.group, unittest.equals('foo')); + unittest.expect(o.maxConnections, unittest.equals(42)); + unittest.expect(o.maxConnectionsPerInstance, unittest.equals(42)); unittest.expect(o.maxRate, unittest.equals(42)); unittest.expect(o.maxRatePerInstance, unittest.equals(42.0)); unittest.expect(o.maxUtilization, unittest.equals(42.0)); @@ -718,27 +724,27 @@ buildCounterBackend--; } -buildUnnamed2436() { +buildUnnamed2226() { var o = new core.List<api.Backend>(); o.add(buildBackend()); o.add(buildBackend()); return o; } -checkUnnamed2436(core.List<api.Backend> o) { +checkUnnamed2226(core.List<api.Backend> o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -buildUnnamed2437() { +buildUnnamed2227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2437(core.List<core.String> o) { +checkUnnamed2227(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -750,12 +756,13 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed2436(); + o.backends = buildUnnamed2226(); + o.connectionDraining = buildConnectionDraining(); o.creationTimestamp = "foo"; o.description = "foo"; o.enableCDN = true; o.fingerprint = "foo"; - o.healthChecks = buildUnnamed2437(); + o.healthChecks = buildUnnamed2227(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -775,12 +782,13 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); - checkUnnamed2436(o.backends); + checkUnnamed2226(o.backends); + checkConnectionDraining(o.connectionDraining); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.enableCDN, unittest.isTrue); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2437(o.healthChecks); + checkUnnamed2227(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -795,14 +803,14 @@ buildCounterBackendService--; } -buildUnnamed2438() { +buildUnnamed2228() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2438(core.List<api.HealthStatus> o) { +checkUnnamed2228(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -813,7 +821,7 @@ var o = new api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.healthStatus = buildUnnamed2438(); + o.healthStatus = buildUnnamed2228(); o.kind = "foo"; } buildCounterBackendServiceGroupHealth--; @@ -823,20 +831,20 @@ checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed2438(o.healthStatus); + checkUnnamed2228(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; } -buildUnnamed2439() { +buildUnnamed2229() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2439(core.List<api.BackendService> o) { +checkUnnamed2229(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -848,7 +856,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = "foo"; - o.items = buildUnnamed2439(); + o.items = buildUnnamed2229(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -861,7 +869,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2439(o.items); + checkUnnamed2229(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -888,6 +896,25 @@ buildCounterCacheInvalidationRule--; } +core.int buildCounterConnectionDraining = 0; +buildConnectionDraining() { + var o = new api.ConnectionDraining(); + buildCounterConnectionDraining++; + if (buildCounterConnectionDraining < 3) { + o.drainingTimeoutSec = 42; + } + buildCounterConnectionDraining--; + return o; +} + +checkConnectionDraining(api.ConnectionDraining o) { + buildCounterConnectionDraining++; + if (buildCounterConnectionDraining < 3) { + unittest.expect(o.drainingTimeoutSec, unittest.equals(42)); + } + buildCounterConnectionDraining--; +} + core.int buildCounterCustomerEncryptionKey = 0; buildCustomerEncryptionKey() { var o = new api.CustomerEncryptionKey(); @@ -957,27 +984,27 @@ buildCounterDeprecationStatus--; } -buildUnnamed2440() { +buildUnnamed2230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2440(core.List<core.String> o) { +checkUnnamed2230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2441() { +buildUnnamed2231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2441(core.List<core.String> o) { +checkUnnamed2231(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -995,7 +1022,7 @@ o.kind = "foo"; o.lastAttachTimestamp = "foo"; o.lastDetachTimestamp = "foo"; - o.licenses = buildUnnamed2440(); + o.licenses = buildUnnamed2230(); o.name = "foo"; o.options = "foo"; o.selfLink = "foo"; @@ -1008,7 +1035,7 @@ o.sourceSnapshotId = "foo"; o.status = "foo"; o.type = "foo"; - o.users = buildUnnamed2441(); + o.users = buildUnnamed2231(); o.zone = "foo"; } buildCounterDisk--; @@ -1025,7 +1052,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); - checkUnnamed2440(o.licenses); + checkUnnamed2230(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.options, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1038,20 +1065,20 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed2441(o.users); + checkUnnamed2231(o.users); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterDisk--; } -buildUnnamed2442() { +buildUnnamed2232() { var o = new core.Map<core.String, api.DisksScopedList>(); o["x"] = buildDisksScopedList(); o["y"] = buildDisksScopedList(); return o; } -checkUnnamed2442(core.Map<core.String, api.DisksScopedList> o) { +checkUnnamed2232(core.Map<core.String, api.DisksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o["x"]); checkDisksScopedList(o["y"]); @@ -1063,7 +1090,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2442(); + o.items = buildUnnamed2232(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1076,7 +1103,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2442(o.items); + checkUnnamed2232(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1084,14 +1111,14 @@ buildCounterDiskAggregatedList--; } -buildUnnamed2443() { +buildUnnamed2233() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2443(core.List<api.Disk> o) { +checkUnnamed2233(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1103,7 +1130,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = "foo"; - o.items = buildUnnamed2443(); + o.items = buildUnnamed2233(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1116,7 +1143,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2443(o.items); + checkUnnamed2233(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1182,14 +1209,14 @@ buildCounterDiskType--; } -buildUnnamed2444() { +buildUnnamed2234() { var o = new core.Map<core.String, api.DiskTypesScopedList>(); o["x"] = buildDiskTypesScopedList(); o["y"] = buildDiskTypesScopedList(); return o; } -checkUnnamed2444(core.Map<core.String, api.DiskTypesScopedList> o) { +checkUnnamed2234(core.Map<core.String, api.DiskTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o["x"]); checkDiskTypesScopedList(o["y"]); @@ -1201,7 +1228,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2444(); + o.items = buildUnnamed2234(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1214,7 +1241,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2444(o.items); + checkUnnamed2234(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1222,14 +1249,14 @@ buildCounterDiskTypeAggregatedList--; } -buildUnnamed2445() { +buildUnnamed2235() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2445(core.List<api.DiskType> o) { +checkUnnamed2235(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1241,7 +1268,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2445(); + o.items = buildUnnamed2235(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1254,7 +1281,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2445(o.items); + checkUnnamed2235(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1262,14 +1289,14 @@ buildCounterDiskTypeList--; } -buildUnnamed2446() { +buildUnnamed2236() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2446(core.List<api.DiskType> o) { +checkUnnamed2236(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1296,14 +1323,14 @@ buildCounterDiskTypesScopedListWarningData--; } -buildUnnamed2447() { +buildUnnamed2237() { var o = new core.List<api.DiskTypesScopedListWarningData>(); o.add(buildDiskTypesScopedListWarningData()); o.add(buildDiskTypesScopedListWarningData()); return o; } -checkUnnamed2447(core.List<api.DiskTypesScopedListWarningData> o) { +checkUnnamed2237(core.List<api.DiskTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -1315,7 +1342,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2447(); + o.data = buildUnnamed2237(); o.message = "foo"; } buildCounterDiskTypesScopedListWarning--; @@ -1326,7 +1353,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2447(o.data); + checkUnnamed2237(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -1337,7 +1364,7 @@ var o = new api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed2446(); + o.diskTypes = buildUnnamed2236(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -1347,7 +1374,7 @@ checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed2446(o.diskTypes); + checkUnnamed2236(o.diskTypes); checkDiskTypesScopedListWarning(o.warning); } buildCounterDiskTypesScopedList--; @@ -1372,14 +1399,14 @@ buildCounterDisksResizeRequest--; } -buildUnnamed2448() { +buildUnnamed2238() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2448(core.List<api.Disk> o) { +checkUnnamed2238(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1406,14 +1433,14 @@ buildCounterDisksScopedListWarningData--; } -buildUnnamed2449() { +buildUnnamed2239() { var o = new core.List<api.DisksScopedListWarningData>(); o.add(buildDisksScopedListWarningData()); o.add(buildDisksScopedListWarningData()); return o; } -checkUnnamed2449(core.List<api.DisksScopedListWarningData> o) { +checkUnnamed2239(core.List<api.DisksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -1425,7 +1452,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2449(); + o.data = buildUnnamed2239(); o.message = "foo"; } buildCounterDisksScopedListWarning--; @@ -1436,7 +1463,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2449(o.data); + checkUnnamed2239(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -1447,7 +1474,7 @@ var o = new api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed2448(); + o.disks = buildUnnamed2238(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -1457,20 +1484,20 @@ checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed2448(o.disks); + checkUnnamed2238(o.disks); checkDisksScopedListWarning(o.warning); } buildCounterDisksScopedList--; } -buildUnnamed2450() { +buildUnnamed2240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2450(core.List<core.String> o) { +checkUnnamed2240(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1482,7 +1509,7 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed2450(); + o.ports = buildUnnamed2240(); } buildCounterFirewallAllowed--; return o; @@ -1492,58 +1519,58 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed2450(o.ports); + checkUnnamed2240(o.ports); } buildCounterFirewallAllowed--; } -buildUnnamed2451() { +buildUnnamed2241() { var o = new core.List<api.FirewallAllowed>(); o.add(buildFirewallAllowed()); o.add(buildFirewallAllowed()); return o; } -checkUnnamed2451(core.List<api.FirewallAllowed> o) { +checkUnnamed2241(core.List<api.FirewallAllowed> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -buildUnnamed2452() { +buildUnnamed2242() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2452(core.List<core.String> o) { +checkUnnamed2242(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2453() { +buildUnnamed2243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2453(core.List<core.String> o) { +checkUnnamed2243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2454() { +buildUnnamed2244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2454(core.List<core.String> o) { +checkUnnamed2244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1554,7 +1581,7 @@ var o = new api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed2451(); + o.allowed = buildUnnamed2241(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; @@ -1562,9 +1589,9 @@ o.name = "foo"; o.network = "foo"; o.selfLink = "foo"; - o.sourceRanges = buildUnnamed2452(); - o.sourceTags = buildUnnamed2453(); - o.targetTags = buildUnnamed2454(); + o.sourceRanges = buildUnnamed2242(); + o.sourceTags = buildUnnamed2243(); + o.targetTags = buildUnnamed2244(); } buildCounterFirewall--; return o; @@ -1573,7 +1600,7 @@ checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed2451(o.allowed); + checkUnnamed2241(o.allowed); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1581,21 +1608,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2452(o.sourceRanges); - checkUnnamed2453(o.sourceTags); - checkUnnamed2454(o.targetTags); + checkUnnamed2242(o.sourceRanges); + checkUnnamed2243(o.sourceTags); + checkUnnamed2244(o.targetTags); } buildCounterFirewall--; } -buildUnnamed2455() { +buildUnnamed2245() { var o = new core.List<api.Firewall>(); o.add(buildFirewall()); o.add(buildFirewall()); return o; } -checkUnnamed2455(core.List<api.Firewall> o) { +checkUnnamed2245(core.List<api.Firewall> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -1607,7 +1634,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = "foo"; - o.items = buildUnnamed2455(); + o.items = buildUnnamed2245(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1620,7 +1647,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2455(o.items); + checkUnnamed2245(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1667,14 +1694,14 @@ buildCounterForwardingRule--; } -buildUnnamed2456() { +buildUnnamed2246() { var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); o["x"] = buildForwardingRulesScopedList(); o["y"] = buildForwardingRulesScopedList(); return o; } -checkUnnamed2456(core.Map<core.String, api.ForwardingRulesScopedList> o) { +checkUnnamed2246(core.Map<core.String, api.ForwardingRulesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o["x"]); checkForwardingRulesScopedList(o["y"]); @@ -1686,7 +1713,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2456(); + o.items = buildUnnamed2246(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1699,7 +1726,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2456(o.items); + checkUnnamed2246(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1707,14 +1734,14 @@ buildCounterForwardingRuleAggregatedList--; } -buildUnnamed2457() { +buildUnnamed2247() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2457(core.List<api.ForwardingRule> o) { +checkUnnamed2247(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -1726,7 +1753,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = "foo"; - o.items = buildUnnamed2457(); + o.items = buildUnnamed2247(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1739,7 +1766,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2457(o.items); + checkUnnamed2247(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1747,14 +1774,14 @@ buildCounterForwardingRuleList--; } -buildUnnamed2458() { +buildUnnamed2248() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2458(core.List<api.ForwardingRule> o) { +checkUnnamed2248(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -1781,14 +1808,14 @@ buildCounterForwardingRulesScopedListWarningData--; } -buildUnnamed2459() { +buildUnnamed2249() { var o = new core.List<api.ForwardingRulesScopedListWarningData>(); o.add(buildForwardingRulesScopedListWarningData()); o.add(buildForwardingRulesScopedListWarningData()); return o; } -checkUnnamed2459(core.List<api.ForwardingRulesScopedListWarningData> o) { +checkUnnamed2249(core.List<api.ForwardingRulesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -1800,7 +1827,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2459(); + o.data = buildUnnamed2249(); o.message = "foo"; } buildCounterForwardingRulesScopedListWarning--; @@ -1811,7 +1838,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2459(o.data); + checkUnnamed2249(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -1822,7 +1849,7 @@ var o = new api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed2458(); + o.forwardingRules = buildUnnamed2248(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -1832,12 +1859,182 @@ checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed2458(o.forwardingRules); + checkUnnamed2248(o.forwardingRules); checkForwardingRulesScopedListWarning(o.warning); } buildCounterForwardingRulesScopedList--; } +core.int buildCounterHTTP2HealthCheck = 0; +buildHTTP2HealthCheck() { + var o = new api.HTTP2HealthCheck(); + buildCounterHTTP2HealthCheck++; + if (buildCounterHTTP2HealthCheck < 3) { + o.host = "foo"; + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.requestPath = "foo"; + } + buildCounterHTTP2HealthCheck--; + return o; +} + +checkHTTP2HealthCheck(api.HTTP2HealthCheck o) { + buildCounterHTTP2HealthCheck++; + if (buildCounterHTTP2HealthCheck < 3) { + unittest.expect(o.host, unittest.equals('foo')); + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.requestPath, unittest.equals('foo')); + } + buildCounterHTTP2HealthCheck--; +} + +core.int buildCounterHTTPHealthCheck = 0; +buildHTTPHealthCheck() { + var o = new api.HTTPHealthCheck(); + buildCounterHTTPHealthCheck++; + if (buildCounterHTTPHealthCheck < 3) { + o.host = "foo"; + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.requestPath = "foo"; + } + buildCounterHTTPHealthCheck--; + return o; +} + +checkHTTPHealthCheck(api.HTTPHealthCheck o) { + buildCounterHTTPHealthCheck++; + if (buildCounterHTTPHealthCheck < 3) { + unittest.expect(o.host, unittest.equals('foo')); + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.requestPath, unittest.equals('foo')); + } + buildCounterHTTPHealthCheck--; +} + +core.int buildCounterHTTPSHealthCheck = 0; +buildHTTPSHealthCheck() { + var o = new api.HTTPSHealthCheck(); + buildCounterHTTPSHealthCheck++; + if (buildCounterHTTPSHealthCheck < 3) { + o.host = "foo"; + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.requestPath = "foo"; + } + buildCounterHTTPSHealthCheck--; + return o; +} + +checkHTTPSHealthCheck(api.HTTPSHealthCheck o) { + buildCounterHTTPSHealthCheck++; + if (buildCounterHTTPSHealthCheck < 3) { + unittest.expect(o.host, unittest.equals('foo')); + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.requestPath, unittest.equals('foo')); + } + buildCounterHTTPSHealthCheck--; +} + +core.int buildCounterHealthCheck = 0; +buildHealthCheck() { + var o = new api.HealthCheck(); + buildCounterHealthCheck++; + if (buildCounterHealthCheck < 3) { + o.checkIntervalSec = 42; + o.creationTimestamp = "foo"; + o.description = "foo"; + o.healthyThreshold = 42; + o.http2HealthCheck = buildHTTP2HealthCheck(); + o.httpHealthCheck = buildHTTPHealthCheck(); + o.httpsHealthCheck = buildHTTPSHealthCheck(); + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.selfLink = "foo"; + o.sslHealthCheck = buildSSLHealthCheck(); + o.tcpHealthCheck = buildTCPHealthCheck(); + o.timeoutSec = 42; + o.type = "foo"; + o.unhealthyThreshold = 42; + } + buildCounterHealthCheck--; + return o; +} + +checkHealthCheck(api.HealthCheck o) { + buildCounterHealthCheck++; + if (buildCounterHealthCheck < 3) { + unittest.expect(o.checkIntervalSec, unittest.equals(42)); + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.healthyThreshold, unittest.equals(42)); + checkHTTP2HealthCheck(o.http2HealthCheck); + checkHTTPHealthCheck(o.httpHealthCheck); + checkHTTPSHealthCheck(o.httpsHealthCheck); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkSSLHealthCheck(o.sslHealthCheck); + checkTCPHealthCheck(o.tcpHealthCheck); + unittest.expect(o.timeoutSec, unittest.equals(42)); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.unhealthyThreshold, unittest.equals(42)); + } + buildCounterHealthCheck--; +} + +buildUnnamed2250() { + var o = new core.List<api.HealthCheck>(); + o.add(buildHealthCheck()); + o.add(buildHealthCheck()); + return o; +} + +checkUnnamed2250(core.List<api.HealthCheck> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHealthCheck(o[0]); + checkHealthCheck(o[1]); +} + +core.int buildCounterHealthCheckList = 0; +buildHealthCheckList() { + var o = new api.HealthCheckList(); + buildCounterHealthCheckList++; + if (buildCounterHealthCheckList < 3) { + o.id = "foo"; + o.items = buildUnnamed2250(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterHealthCheckList--; + return o; +} + +checkHealthCheckList(api.HealthCheckList o) { + buildCounterHealthCheckList++; + if (buildCounterHealthCheckList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2250(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterHealthCheckList--; +} + core.int buildCounterHealthCheckReference = 0; buildHealthCheckReference() { var o = new api.HealthCheckReference(); @@ -1882,14 +2079,14 @@ buildCounterHealthStatus--; } -buildUnnamed2460() { +buildUnnamed2251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2460(core.List<core.String> o) { +checkUnnamed2251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1901,7 +2098,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = "foo"; - o.hosts = buildUnnamed2460(); + o.hosts = buildUnnamed2251(); o.pathMatcher = "foo"; } buildCounterHostRule--; @@ -1912,7 +2109,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2460(o.hosts); + checkUnnamed2251(o.hosts); unittest.expect(o.pathMatcher, unittest.equals('foo')); } buildCounterHostRule--; @@ -1961,14 +2158,14 @@ buildCounterHttpHealthCheck--; } -buildUnnamed2461() { +buildUnnamed2252() { var o = new core.List<api.HttpHealthCheck>(); o.add(buildHttpHealthCheck()); o.add(buildHttpHealthCheck()); return o; } -checkUnnamed2461(core.List<api.HttpHealthCheck> o) { +checkUnnamed2252(core.List<api.HttpHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -1980,7 +2177,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2461(); + o.items = buildUnnamed2252(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1993,7 +2190,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2461(o.items); + checkUnnamed2252(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2044,14 +2241,14 @@ buildCounterHttpsHealthCheck--; } -buildUnnamed2462() { +buildUnnamed2253() { var o = new core.List<api.HttpsHealthCheck>(); o.add(buildHttpsHealthCheck()); o.add(buildHttpsHealthCheck()); return o; } -checkUnnamed2462(core.List<api.HttpsHealthCheck> o) { +checkUnnamed2253(core.List<api.HttpsHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -2063,7 +2260,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2462(); + o.items = buildUnnamed2253(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2076,7 +2273,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2462(o.items); + checkUnnamed2253(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2084,14 +2281,14 @@ buildCounterHttpsHealthCheckList--; } -buildUnnamed2463() { +buildUnnamed2254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2463(core.List<core.String> o) { +checkUnnamed2254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2134,7 +2331,7 @@ o.id = "foo"; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = "foo"; - o.licenses = buildUnnamed2463(); + o.licenses = buildUnnamed2254(); o.name = "foo"; o.rawDisk = buildImageRawDisk(); o.selfLink = "foo"; @@ -2160,7 +2357,7 @@ unittest.expect(o.id, unittest.equals('foo')); checkCustomerEncryptionKey(o.imageEncryptionKey); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2463(o.licenses); + checkUnnamed2254(o.licenses); unittest.expect(o.name, unittest.equals('foo')); checkImageRawDisk(o.rawDisk); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2173,14 +2370,14 @@ buildCounterImage--; } -buildUnnamed2464() { +buildUnnamed2255() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2464(core.List<api.Image> o) { +checkUnnamed2255(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -2192,7 +2389,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { o.id = "foo"; - o.items = buildUnnamed2464(); + o.items = buildUnnamed2255(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2205,7 +2402,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2464(o.items); + checkUnnamed2255(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2213,40 +2410,40 @@ buildCounterImageList--; } -buildUnnamed2465() { +buildUnnamed2256() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2465(core.List<api.AttachedDisk> o) { +checkUnnamed2256(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2466() { +buildUnnamed2257() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2466(core.List<api.NetworkInterface> o) { +checkUnnamed2257(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2467() { +buildUnnamed2258() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2467(core.List<api.ServiceAccount> o) { +checkUnnamed2258(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -2261,16 +2458,16 @@ o.cpuPlatform = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; - o.disks = buildUnnamed2465(); + o.disks = buildUnnamed2256(); o.id = "foo"; o.kind = "foo"; o.machineType = "foo"; o.metadata = buildMetadata(); o.name = "foo"; - o.networkInterfaces = buildUnnamed2466(); + o.networkInterfaces = buildUnnamed2257(); o.scheduling = buildScheduling(); o.selfLink = "foo"; - o.serviceAccounts = buildUnnamed2467(); + o.serviceAccounts = buildUnnamed2258(); o.status = "foo"; o.statusMessage = "foo"; o.tags = buildTags(); @@ -2287,16 +2484,16 @@ unittest.expect(o.cpuPlatform, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2465(o.disks); + checkUnnamed2256(o.disks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2466(o.networkInterfaces); + checkUnnamed2257(o.networkInterfaces); checkScheduling(o.scheduling); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2467(o.serviceAccounts); + checkUnnamed2258(o.serviceAccounts); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); checkTags(o.tags); @@ -2305,14 +2502,14 @@ buildCounterInstance--; } -buildUnnamed2468() { +buildUnnamed2259() { var o = new core.Map<core.String, api.InstancesScopedList>(); o["x"] = buildInstancesScopedList(); o["y"] = buildInstancesScopedList(); return o; } -checkUnnamed2468(core.Map<core.String, api.InstancesScopedList> o) { +checkUnnamed2259(core.Map<core.String, api.InstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o["x"]); checkInstancesScopedList(o["y"]); @@ -2324,7 +2521,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2468(); + o.items = buildUnnamed2259(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2337,7 +2534,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2468(o.items); + checkUnnamed2259(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2345,14 +2542,14 @@ buildCounterInstanceAggregatedList--; } -buildUnnamed2469() { +buildUnnamed2260() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2469(core.List<api.NamedPort> o) { +checkUnnamed2260(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -2369,8 +2566,9 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2469(); + o.namedPorts = buildUnnamed2260(); o.network = "foo"; + o.region = "foo"; o.selfLink = "foo"; o.size = 42; o.subnetwork = "foo"; @@ -2389,8 +2587,9 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2469(o.namedPorts); + checkUnnamed2260(o.namedPorts); unittest.expect(o.network, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.size, unittest.equals(42)); unittest.expect(o.subnetwork, unittest.equals('foo')); @@ -2399,14 +2598,14 @@ buildCounterInstanceGroup--; } -buildUnnamed2470() { +buildUnnamed2261() { var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); o["x"] = buildInstanceGroupsScopedList(); o["y"] = buildInstanceGroupsScopedList(); return o; } -checkUnnamed2470(core.Map<core.String, api.InstanceGroupsScopedList> o) { +checkUnnamed2261(core.Map<core.String, api.InstanceGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o["x"]); checkInstanceGroupsScopedList(o["y"]); @@ -2418,7 +2617,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2470(); + o.items = buildUnnamed2261(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2431,7 +2630,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2470(o.items); + checkUnnamed2261(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2439,14 +2638,14 @@ buildCounterInstanceGroupAggregatedList--; } -buildUnnamed2471() { +buildUnnamed2262() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2471(core.List<api.InstanceGroup> o) { +checkUnnamed2262(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -2458,7 +2657,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2471(); + o.items = buildUnnamed2262(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2471,7 +2670,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2471(o.items); + checkUnnamed2262(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2479,27 +2678,27 @@ buildCounterInstanceGroupList--; } -buildUnnamed2472() { +buildUnnamed2263() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2472(core.List<api.NamedPort> o) { +checkUnnamed2263(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -buildUnnamed2473() { +buildUnnamed2264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2473(core.List<core.String> o) { +checkUnnamed2264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2520,9 +2719,10 @@ o.instanceTemplate = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2472(); + o.namedPorts = buildUnnamed2263(); + o.region = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed2473(); + o.targetPools = buildUnnamed2264(); o.targetSize = 42; o.zone = "foo"; } @@ -2543,9 +2743,10 @@ unittest.expect(o.instanceTemplate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2472(o.namedPorts); + checkUnnamed2263(o.namedPorts); + unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2473(o.targetPools); + checkUnnamed2264(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); unittest.expect(o.zone, unittest.equals('foo')); } @@ -2585,14 +2786,14 @@ buildCounterInstanceGroupManagerActionsSummary--; } -buildUnnamed2474() { +buildUnnamed2265() { var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); o["x"] = buildInstanceGroupManagersScopedList(); o["y"] = buildInstanceGroupManagersScopedList(); return o; } -checkUnnamed2474(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { +checkUnnamed2265(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedList(o["x"]); checkInstanceGroupManagersScopedList(o["y"]); @@ -2604,7 +2805,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2474(); + o.items = buildUnnamed2265(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2617,7 +2818,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2474(o.items); + checkUnnamed2265(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2625,14 +2826,14 @@ buildCounterInstanceGroupManagerAggregatedList--; } -buildUnnamed2475() { +buildUnnamed2266() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2475(core.List<api.InstanceGroupManager> o) { +checkUnnamed2266(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -2644,7 +2845,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2475(); + o.items = buildUnnamed2266(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2657,7 +2858,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2475(o.items); + checkUnnamed2266(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2665,14 +2866,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed2476() { +buildUnnamed2267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2476(core.List<core.String> o) { +checkUnnamed2267(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2683,7 +2884,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2476(); + o.instances = buildUnnamed2267(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -2692,19 +2893,19 @@ checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2476(o.instances); + checkUnnamed2267(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2477() { +buildUnnamed2268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2477(core.List<core.String> o) { +checkUnnamed2268(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2715,7 +2916,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2477(); + o.instances = buildUnnamed2268(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -2724,19 +2925,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2477(o.instances); + checkUnnamed2268(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2478() { +buildUnnamed2269() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2478(core.List<api.ManagedInstance> o) { +checkUnnamed2269(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -2747,7 +2948,7 @@ var o = new api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed2478(); + o.managedInstances = buildUnnamed2269(); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; return o; @@ -2756,19 +2957,19 @@ checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagersListManagedInstancesResponse o) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed2478(o.managedInstances); + checkUnnamed2269(o.managedInstances); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -buildUnnamed2479() { +buildUnnamed2270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2479(core.List<core.String> o) { +checkUnnamed2270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2779,7 +2980,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed2479(); + o.instances = buildUnnamed2270(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -2788,19 +2989,19 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed2479(o.instances); + checkUnnamed2270(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -buildUnnamed2480() { +buildUnnamed2271() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2480(core.List<api.InstanceGroupManager> o) { +checkUnnamed2271(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -2827,14 +3028,14 @@ buildCounterInstanceGroupManagersScopedListWarningData--; } -buildUnnamed2481() { +buildUnnamed2272() { var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); o.add(buildInstanceGroupManagersScopedListWarningData()); o.add(buildInstanceGroupManagersScopedListWarningData()); return o; } -checkUnnamed2481(core.List<api.InstanceGroupManagersScopedListWarningData> o) { +checkUnnamed2272(core.List<api.InstanceGroupManagersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedListWarningData(o[0]); checkInstanceGroupManagersScopedListWarningData(o[1]); @@ -2846,7 +3047,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2481(); + o.data = buildUnnamed2272(); o.message = "foo"; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -2857,7 +3058,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2481(o.data); + checkUnnamed2272(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -2868,7 +3069,7 @@ var o = new api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed2480(); + o.instanceGroupManagers = buildUnnamed2271(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -2878,7 +3079,7 @@ checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed2480(o.instanceGroupManagers); + checkUnnamed2271(o.instanceGroupManagers); checkInstanceGroupManagersScopedListWarning(o.warning); } buildCounterInstanceGroupManagersScopedList--; @@ -2903,14 +3104,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed2482() { +buildUnnamed2273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2482(core.List<core.String> o) { +checkUnnamed2273(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2922,7 +3123,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2482(); + o.targetPools = buildUnnamed2273(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -2932,19 +3133,19 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2482(o.targetPools); + checkUnnamed2273(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -buildUnnamed2483() { +buildUnnamed2274() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2483(core.List<api.InstanceReference> o) { +checkUnnamed2274(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -2955,7 +3156,7 @@ var o = new api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed2483(); + o.instances = buildUnnamed2274(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -2964,19 +3165,19 @@ checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed2483(o.instances); + checkUnnamed2274(o.instances); } buildCounterInstanceGroupsAddInstancesRequest--; } -buildUnnamed2484() { +buildUnnamed2275() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2484(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2275(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -2988,7 +3189,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2484(); + o.items = buildUnnamed2275(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3001,7 +3202,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2484(o.items); + checkUnnamed2275(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3028,14 +3229,14 @@ buildCounterInstanceGroupsListInstancesRequest--; } -buildUnnamed2485() { +buildUnnamed2276() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2485(core.List<api.InstanceReference> o) { +checkUnnamed2276(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -3046,7 +3247,7 @@ var o = new api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed2485(); + o.instances = buildUnnamed2276(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -3055,19 +3256,19 @@ checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesRequest o) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed2485(o.instances); + checkUnnamed2276(o.instances); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -buildUnnamed2486() { +buildUnnamed2277() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2486(core.List<api.InstanceGroup> o) { +checkUnnamed2277(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -3094,14 +3295,14 @@ buildCounterInstanceGroupsScopedListWarningData--; } -buildUnnamed2487() { +buildUnnamed2278() { var o = new core.List<api.InstanceGroupsScopedListWarningData>(); o.add(buildInstanceGroupsScopedListWarningData()); o.add(buildInstanceGroupsScopedListWarningData()); return o; } -checkUnnamed2487(core.List<api.InstanceGroupsScopedListWarningData> o) { +checkUnnamed2278(core.List<api.InstanceGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -3113,7 +3314,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2487(); + o.data = buildUnnamed2278(); o.message = "foo"; } buildCounterInstanceGroupsScopedListWarning--; @@ -3124,7 +3325,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2487(o.data); + checkUnnamed2278(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -3135,7 +3336,7 @@ var o = new api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed2486(); + o.instanceGroups = buildUnnamed2277(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -3145,20 +3346,20 @@ checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed2486(o.instanceGroups); + checkUnnamed2277(o.instanceGroups); checkInstanceGroupsScopedListWarning(o.warning); } buildCounterInstanceGroupsScopedList--; } -buildUnnamed2488() { +buildUnnamed2279() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2488(core.List<api.NamedPort> o) { +checkUnnamed2279(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3170,7 +3371,7 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2488(); + o.namedPorts = buildUnnamed2279(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -3180,19 +3381,19 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2488(o.namedPorts); + checkUnnamed2279(o.namedPorts); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2489() { +buildUnnamed2280() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2489(core.List<api.Instance> o) { +checkUnnamed2280(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -3204,7 +3405,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2489(); + o.items = buildUnnamed2280(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3217,7 +3418,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2489(o.items); + checkUnnamed2280(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3246,40 +3447,40 @@ buildCounterInstanceMoveRequest--; } -buildUnnamed2490() { +buildUnnamed2281() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2490(core.List<api.AttachedDisk> o) { +checkUnnamed2281(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2491() { +buildUnnamed2282() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2491(core.List<api.NetworkInterface> o) { +checkUnnamed2282(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2492() { +buildUnnamed2283() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2492(core.List<api.ServiceAccount> o) { +checkUnnamed2283(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -3292,12 +3493,12 @@ if (buildCounterInstanceProperties < 3) { o.canIpForward = true; o.description = "foo"; - o.disks = buildUnnamed2490(); + o.disks = buildUnnamed2281(); o.machineType = "foo"; o.metadata = buildMetadata(); - o.networkInterfaces = buildUnnamed2491(); + o.networkInterfaces = buildUnnamed2282(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed2492(); + o.serviceAccounts = buildUnnamed2283(); o.tags = buildTags(); } buildCounterInstanceProperties--; @@ -3309,12 +3510,12 @@ if (buildCounterInstanceProperties < 3) { unittest.expect(o.canIpForward, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2490(o.disks); + checkUnnamed2281(o.disks); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); - checkUnnamed2491(o.networkInterfaces); + checkUnnamed2282(o.networkInterfaces); checkScheduling(o.scheduling); - checkUnnamed2492(o.serviceAccounts); + checkUnnamed2283(o.serviceAccounts); checkTags(o.tags); } buildCounterInstanceProperties--; @@ -3370,14 +3571,14 @@ buildCounterInstanceTemplate--; } -buildUnnamed2493() { +buildUnnamed2284() { var o = new core.List<api.InstanceTemplate>(); o.add(buildInstanceTemplate()); o.add(buildInstanceTemplate()); return o; } -checkUnnamed2493(core.List<api.InstanceTemplate> o) { +checkUnnamed2284(core.List<api.InstanceTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -3389,7 +3590,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed2493(); + o.items = buildUnnamed2284(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3402,7 +3603,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2493(o.items); + checkUnnamed2284(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3410,14 +3611,14 @@ buildCounterInstanceTemplateList--; } -buildUnnamed2494() { +buildUnnamed2285() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2494(core.List<api.NamedPort> o) { +checkUnnamed2285(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3429,7 +3630,7 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = "foo"; - o.namedPorts = buildUnnamed2494(); + o.namedPorts = buildUnnamed2285(); o.status = "foo"; } buildCounterInstanceWithNamedPorts--; @@ -3440,20 +3641,20 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed2494(o.namedPorts); + checkUnnamed2285(o.namedPorts); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -buildUnnamed2495() { +buildUnnamed2286() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2495(core.List<api.Instance> o) { +checkUnnamed2286(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -3480,14 +3681,14 @@ buildCounterInstancesScopedListWarningData--; } -buildUnnamed2496() { +buildUnnamed2287() { var o = new core.List<api.InstancesScopedListWarningData>(); o.add(buildInstancesScopedListWarningData()); o.add(buildInstancesScopedListWarningData()); return o; } -checkUnnamed2496(core.List<api.InstancesScopedListWarningData> o) { +checkUnnamed2287(core.List<api.InstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -3499,7 +3700,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2496(); + o.data = buildUnnamed2287(); o.message = "foo"; } buildCounterInstancesScopedListWarning--; @@ -3510,7 +3711,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2496(o.data); + checkUnnamed2287(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -3521,7 +3722,7 @@ var o = new api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed2495(); + o.instances = buildUnnamed2286(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -3531,7 +3732,7 @@ checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed2495(o.instances); + checkUnnamed2286(o.instances); checkInstancesScopedListWarning(o.warning); } buildCounterInstancesScopedList--; @@ -3556,14 +3757,14 @@ buildCounterInstancesSetMachineTypeRequest--; } -buildUnnamed2497() { +buildUnnamed2288() { var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); o.add(buildCustomerEncryptionKeyProtectedDisk()); o.add(buildCustomerEncryptionKeyProtectedDisk()); return o; } -checkUnnamed2497(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { +checkUnnamed2288(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -3574,7 +3775,7 @@ var o = new api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed2497(); + o.disks = buildUnnamed2288(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -3583,7 +3784,7 @@ checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyRequest o) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed2497(o.disks); + checkUnnamed2288(o.disks); } buildCounterInstancesStartWithEncryptionKeyRequest--; } @@ -3632,14 +3833,14 @@ buildCounterMachineTypeScratchDisks--; } -buildUnnamed2498() { +buildUnnamed2289() { var o = new core.List<api.MachineTypeScratchDisks>(); o.add(buildMachineTypeScratchDisks()); o.add(buildMachineTypeScratchDisks()); return o; } -checkUnnamed2498(core.List<api.MachineTypeScratchDisks> o) { +checkUnnamed2289(core.List<api.MachineTypeScratchDisks> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeScratchDisks(o[0]); checkMachineTypeScratchDisks(o[1]); @@ -3662,7 +3863,7 @@ o.maximumPersistentDisksSizeGb = "foo"; o.memoryMb = 42; o.name = "foo"; - o.scratchDisks = buildUnnamed2498(); + o.scratchDisks = buildUnnamed2289(); o.selfLink = "foo"; o.zone = "foo"; } @@ -3685,21 +3886,21 @@ unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); unittest.expect(o.memoryMb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2498(o.scratchDisks); + checkUnnamed2289(o.scratchDisks); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterMachineType--; } -buildUnnamed2499() { +buildUnnamed2290() { var o = new core.Map<core.String, api.MachineTypesScopedList>(); o["x"] = buildMachineTypesScopedList(); o["y"] = buildMachineTypesScopedList(); return o; } -checkUnnamed2499(core.Map<core.String, api.MachineTypesScopedList> o) { +checkUnnamed2290(core.Map<core.String, api.MachineTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o["x"]); checkMachineTypesScopedList(o["y"]); @@ -3711,7 +3912,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2499(); + o.items = buildUnnamed2290(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3724,7 +3925,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2499(o.items); + checkUnnamed2290(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3732,14 +3933,14 @@ buildCounterMachineTypeAggregatedList--; } -buildUnnamed2500() { +buildUnnamed2291() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2500(core.List<api.MachineType> o) { +checkUnnamed2291(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -3751,7 +3952,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2500(); + o.items = buildUnnamed2291(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3764,7 +3965,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2500(o.items); + checkUnnamed2291(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3772,14 +3973,14 @@ buildCounterMachineTypeList--; } -buildUnnamed2501() { +buildUnnamed2292() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2501(core.List<api.MachineType> o) { +checkUnnamed2292(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -3806,14 +4007,14 @@ buildCounterMachineTypesScopedListWarningData--; } -buildUnnamed2502() { +buildUnnamed2293() { var o = new core.List<api.MachineTypesScopedListWarningData>(); o.add(buildMachineTypesScopedListWarningData()); o.add(buildMachineTypesScopedListWarningData()); return o; } -checkUnnamed2502(core.List<api.MachineTypesScopedListWarningData> o) { +checkUnnamed2293(core.List<api.MachineTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -3825,7 +4026,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2502(); + o.data = buildUnnamed2293(); o.message = "foo"; } buildCounterMachineTypesScopedListWarning--; @@ -3836,7 +4037,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2502(o.data); + checkUnnamed2293(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -3847,7 +4048,7 @@ var o = new api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed2501(); + o.machineTypes = buildUnnamed2292(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -3857,7 +4058,7 @@ checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed2501(o.machineTypes); + checkUnnamed2292(o.machineTypes); checkMachineTypesScopedListWarning(o.warning); } buildCounterMachineTypesScopedList--; @@ -3913,14 +4114,14 @@ buildCounterManagedInstanceLastAttemptErrorsErrors--; } -buildUnnamed2503() { +buildUnnamed2294() { var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); o.add(buildManagedInstanceLastAttemptErrorsErrors()); o.add(buildManagedInstanceLastAttemptErrorsErrors()); return o; } -checkUnnamed2503(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { +checkUnnamed2294(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -3931,7 +4132,7 @@ var o = new api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed2503(); + o.errors = buildUnnamed2294(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -3940,7 +4141,7 @@ checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed2503(o.errors); + checkUnnamed2294(o.errors); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -3985,14 +4186,14 @@ buildCounterMetadataItems--; } -buildUnnamed2504() { +buildUnnamed2295() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed2504(core.List<api.MetadataItems> o) { +checkUnnamed2295(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -4004,7 +4205,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2504(); + o.items = buildUnnamed2295(); o.kind = "foo"; } buildCounterMetadata--; @@ -4015,7 +4216,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2504(o.items); + checkUnnamed2295(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -4042,14 +4243,14 @@ buildCounterNamedPort--; } -buildUnnamed2505() { +buildUnnamed2296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2505(core.List<core.String> o) { +checkUnnamed2296(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4069,7 +4270,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.subnetworks = buildUnnamed2505(); + o.subnetworks = buildUnnamed2296(); } buildCounterNetwork--; return o; @@ -4087,19 +4288,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2505(o.subnetworks); + checkUnnamed2296(o.subnetworks); } buildCounterNetwork--; } -buildUnnamed2506() { +buildUnnamed2297() { var o = new core.List<api.AccessConfig>(); o.add(buildAccessConfig()); o.add(buildAccessConfig()); return o; } -checkUnnamed2506(core.List<api.AccessConfig> o) { +checkUnnamed2297(core.List<api.AccessConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); @@ -4110,7 +4311,7 @@ var o = new api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed2506(); + o.accessConfigs = buildUnnamed2297(); o.name = "foo"; o.network = "foo"; o.networkIP = "foo"; @@ -4123,7 +4324,7 @@ checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed2506(o.accessConfigs); + checkUnnamed2297(o.accessConfigs); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.networkIP, unittest.equals('foo')); @@ -4132,14 +4333,14 @@ buildCounterNetworkInterface--; } -buildUnnamed2507() { +buildUnnamed2298() { var o = new core.List<api.Network>(); o.add(buildNetwork()); o.add(buildNetwork()); return o; } -checkUnnamed2507(core.List<api.Network> o) { +checkUnnamed2298(core.List<api.Network> o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -4151,7 +4352,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2507(); + o.items = buildUnnamed2298(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4164,7 +4365,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2507(o.items); + checkUnnamed2298(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4195,14 +4396,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2508() { +buildUnnamed2299() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2508(core.List<api.OperationErrorErrors> o) { +checkUnnamed2299(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -4213,7 +4414,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2508(); + o.errors = buildUnnamed2299(); } buildCounterOperationError--; return o; @@ -4222,7 +4423,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2508(o.errors); + checkUnnamed2299(o.errors); } buildCounterOperationError--; } @@ -4248,14 +4449,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2509() { +buildUnnamed2300() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2509(core.List<api.OperationWarningsData> o) { +checkUnnamed2300(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -4267,7 +4468,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2509(); + o.data = buildUnnamed2300(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -4278,20 +4479,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2509(o.data); + checkUnnamed2300(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2510() { +buildUnnamed2301() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2510(core.List<api.OperationWarnings> o) { +checkUnnamed2301(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -4323,7 +4524,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2510(); + o.warnings = buildUnnamed2301(); o.zone = "foo"; } buildCounterOperation--; @@ -4354,20 +4555,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2510(o.warnings); + checkUnnamed2301(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2511() { +buildUnnamed2302() { var o = new core.Map<core.String, api.OperationsScopedList>(); o["x"] = buildOperationsScopedList(); o["y"] = buildOperationsScopedList(); return o; } -checkUnnamed2511(core.Map<core.String, api.OperationsScopedList> o) { +checkUnnamed2302(core.Map<core.String, api.OperationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o["x"]); checkOperationsScopedList(o["y"]); @@ -4379,7 +4580,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2511(); + o.items = buildUnnamed2302(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4392,7 +4593,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2511(o.items); + checkUnnamed2302(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4400,14 +4601,14 @@ buildCounterOperationAggregatedList--; } -buildUnnamed2512() { +buildUnnamed2303() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2512(core.List<api.Operation> o) { +checkUnnamed2303(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -4419,7 +4620,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed2512(); + o.items = buildUnnamed2303(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4432,7 +4633,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2512(o.items); + checkUnnamed2303(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4440,14 +4641,14 @@ buildCounterOperationList--; } -buildUnnamed2513() { +buildUnnamed2304() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2513(core.List<api.Operation> o) { +checkUnnamed2304(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -4474,14 +4675,14 @@ buildCounterOperationsScopedListWarningData--; } -buildUnnamed2514() { +buildUnnamed2305() { var o = new core.List<api.OperationsScopedListWarningData>(); o.add(buildOperationsScopedListWarningData()); o.add(buildOperationsScopedListWarningData()); return o; } -checkUnnamed2514(core.List<api.OperationsScopedListWarningData> o) { +checkUnnamed2305(core.List<api.OperationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -4493,7 +4694,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2514(); + o.data = buildUnnamed2305(); o.message = "foo"; } buildCounterOperationsScopedListWarning--; @@ -4504,7 +4705,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2514(o.data); + checkUnnamed2305(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -4515,7 +4716,7 @@ var o = new api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed2513(); + o.operations = buildUnnamed2304(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -4525,20 +4726,20 @@ checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed2513(o.operations); + checkUnnamed2304(o.operations); checkOperationsScopedListWarning(o.warning); } buildCounterOperationsScopedList--; } -buildUnnamed2515() { +buildUnnamed2306() { var o = new core.List<api.PathRule>(); o.add(buildPathRule()); o.add(buildPathRule()); return o; } -checkUnnamed2515(core.List<api.PathRule> o) { +checkUnnamed2306(core.List<api.PathRule> o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); @@ -4552,7 +4753,7 @@ o.defaultService = "foo"; o.description = "foo"; o.name = "foo"; - o.pathRules = buildUnnamed2515(); + o.pathRules = buildUnnamed2306(); } buildCounterPathMatcher--; return o; @@ -4564,19 +4765,19 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2515(o.pathRules); + checkUnnamed2306(o.pathRules); } buildCounterPathMatcher--; } -buildUnnamed2516() { +buildUnnamed2307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2516(core.List<core.String> o) { +checkUnnamed2307(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4587,7 +4788,7 @@ var o = new api.PathRule(); buildCounterPathRule++; if (buildCounterPathRule < 3) { - o.paths = buildUnnamed2516(); + o.paths = buildUnnamed2307(); o.service = "foo"; } buildCounterPathRule--; @@ -4597,33 +4798,33 @@ checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { - checkUnnamed2516(o.paths); + checkUnnamed2307(o.paths); unittest.expect(o.service, unittest.equals('foo')); } buildCounterPathRule--; } -buildUnnamed2517() { +buildUnnamed2308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2517(core.List<core.String> o) { +checkUnnamed2308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2518() { +buildUnnamed2309() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2518(core.List<api.Quota> o) { +checkUnnamed2309(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -4638,11 +4839,11 @@ o.creationTimestamp = "foo"; o.defaultServiceAccount = "foo"; o.description = "foo"; - o.enabledFeatures = buildUnnamed2517(); + o.enabledFeatures = buildUnnamed2308(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2518(); + o.quotas = buildUnnamed2309(); o.selfLink = "foo"; o.usageExportLocation = buildUsageExportLocation(); } @@ -4657,11 +4858,11 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2517(o.enabledFeatures); + checkUnnamed2308(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2518(o.quotas); + checkUnnamed2309(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation); } @@ -4691,27 +4892,27 @@ buildCounterQuota--; } -buildUnnamed2519() { +buildUnnamed2310() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2519(core.List<api.Quota> o) { +checkUnnamed2310(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -buildUnnamed2520() { +buildUnnamed2311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2520(core.List<core.String> o) { +checkUnnamed2311(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4728,10 +4929,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2519(); + o.quotas = buildUnnamed2310(); o.selfLink = "foo"; o.status = "foo"; - o.zones = buildUnnamed2520(); + o.zones = buildUnnamed2311(); } buildCounterRegion--; return o; @@ -4746,22 +4947,22 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2519(o.quotas); + checkUnnamed2310(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2520(o.zones); + checkUnnamed2311(o.zones); } buildCounterRegion--; } -buildUnnamed2521() { +buildUnnamed2312() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2521(core.List<api.Region> o) { +checkUnnamed2312(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4773,7 +4974,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = "foo"; - o.items = buildUnnamed2521(); + o.items = buildUnnamed2312(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4786,7 +4987,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2521(o.items); + checkUnnamed2312(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4813,14 +5014,14 @@ buildCounterResourceGroupReference--; } -buildUnnamed2522() { +buildUnnamed2313() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2522(core.List<core.String> o) { +checkUnnamed2313(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4847,14 +5048,14 @@ buildCounterRouteWarningsData--; } -buildUnnamed2523() { +buildUnnamed2314() { var o = new core.List<api.RouteWarningsData>(); o.add(buildRouteWarningsData()); o.add(buildRouteWarningsData()); return o; } -checkUnnamed2523(core.List<api.RouteWarningsData> o) { +checkUnnamed2314(core.List<api.RouteWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -4866,7 +5067,7 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2523(); + o.data = buildUnnamed2314(); o.message = "foo"; } buildCounterRouteWarnings--; @@ -4877,20 +5078,20 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2523(o.data); + checkUnnamed2314(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteWarnings--; } -buildUnnamed2524() { +buildUnnamed2315() { var o = new core.List<api.RouteWarnings>(); o.add(buildRouteWarnings()); o.add(buildRouteWarnings()); return o; } -checkUnnamed2524(core.List<api.RouteWarnings> o) { +checkUnnamed2315(core.List<api.RouteWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -4915,8 +5116,8 @@ o.nextHopVpnTunnel = "foo"; o.priority = 42; o.selfLink = "foo"; - o.tags = buildUnnamed2522(); - o.warnings = buildUnnamed2524(); + o.tags = buildUnnamed2313(); + o.warnings = buildUnnamed2315(); } buildCounterRoute--; return o; @@ -4939,20 +5140,20 @@ unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2522(o.tags); - checkUnnamed2524(o.warnings); + checkUnnamed2313(o.tags); + checkUnnamed2315(o.warnings); } buildCounterRoute--; } -buildUnnamed2525() { +buildUnnamed2316() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2525(core.List<api.Route> o) { +checkUnnamed2316(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -4964,7 +5165,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = "foo"; - o.items = buildUnnamed2525(); + o.items = buildUnnamed2316(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4977,7 +5178,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2525(o.items); + checkUnnamed2316(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4985,27 +5186,27 @@ buildCounterRouteList--; } -buildUnnamed2526() { +buildUnnamed2317() { var o = new core.List<api.RouterBgpPeer>(); o.add(buildRouterBgpPeer()); o.add(buildRouterBgpPeer()); return o; } -checkUnnamed2526(core.List<api.RouterBgpPeer> o) { +checkUnnamed2317(core.List<api.RouterBgpPeer> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -buildUnnamed2527() { +buildUnnamed2318() { var o = new core.List<api.RouterInterface>(); o.add(buildRouterInterface()); o.add(buildRouterInterface()); return o; } -checkUnnamed2527(core.List<api.RouterInterface> o) { +checkUnnamed2318(core.List<api.RouterInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); @@ -5017,11 +5218,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed2526(); + o.bgpPeers = buildUnnamed2317(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed2527(); + o.interfaces = buildUnnamed2318(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -5036,11 +5237,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp); - checkUnnamed2526(o.bgpPeers); + checkUnnamed2317(o.bgpPeers); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2527(o.interfaces); + checkUnnamed2318(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -5050,14 +5251,14 @@ buildCounterRouter--; } -buildUnnamed2528() { +buildUnnamed2319() { var o = new core.Map<core.String, api.RoutersScopedList>(); o["x"] = buildRoutersScopedList(); o["y"] = buildRoutersScopedList(); return o; } -checkUnnamed2528(core.Map<core.String, api.RoutersScopedList> o) { +checkUnnamed2319(core.Map<core.String, api.RoutersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o["x"]); checkRoutersScopedList(o["y"]); @@ -5069,7 +5270,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2528(); + o.items = buildUnnamed2319(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5082,7 +5283,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2528(o.items); + checkUnnamed2319(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5161,14 +5362,14 @@ buildCounterRouterInterface--; } -buildUnnamed2529() { +buildUnnamed2320() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2529(core.List<api.Router> o) { +checkUnnamed2320(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -5180,7 +5381,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = "foo"; - o.items = buildUnnamed2529(); + o.items = buildUnnamed2320(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5193,7 +5394,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2529(o.items); + checkUnnamed2320(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5201,27 +5402,27 @@ buildCounterRouterList--; } -buildUnnamed2530() { +buildUnnamed2321() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2530(core.List<api.Route> o) { +checkUnnamed2321(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2531() { +buildUnnamed2322() { var o = new core.List<api.RouterStatusBgpPeerStatus>(); o.add(buildRouterStatusBgpPeerStatus()); o.add(buildRouterStatusBgpPeerStatus()); return o; } -checkUnnamed2531(core.List<api.RouterStatusBgpPeerStatus> o) { +checkUnnamed2322(core.List<api.RouterStatusBgpPeerStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); @@ -5232,8 +5433,8 @@ var o = new api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed2530(); - o.bgpPeerStatus = buildUnnamed2531(); + o.bestRoutes = buildUnnamed2321(); + o.bgpPeerStatus = buildUnnamed2322(); o.network = "foo"; } buildCounterRouterStatus--; @@ -5243,21 +5444,21 @@ checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed2530(o.bestRoutes); - checkUnnamed2531(o.bgpPeerStatus); + checkUnnamed2321(o.bestRoutes); + checkUnnamed2322(o.bgpPeerStatus); unittest.expect(o.network, unittest.equals('foo')); } buildCounterRouterStatus--; } -buildUnnamed2532() { +buildUnnamed2323() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2532(core.List<api.Route> o) { +checkUnnamed2323(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -5268,7 +5469,7 @@ var o = new api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed2532(); + o.advertisedRoutes = buildUnnamed2323(); o.ipAddress = "foo"; o.linkedVpnTunnel = "foo"; o.name = "foo"; @@ -5286,7 +5487,7 @@ checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed2532(o.advertisedRoutes); + checkUnnamed2323(o.advertisedRoutes); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -5340,14 +5541,14 @@ buildCounterRoutersPreviewResponse--; } -buildUnnamed2533() { +buildUnnamed2324() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2533(core.List<api.Router> o) { +checkUnnamed2324(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -5374,14 +5575,14 @@ buildCounterRoutersScopedListWarningData--; } -buildUnnamed2534() { +buildUnnamed2325() { var o = new core.List<api.RoutersScopedListWarningData>(); o.add(buildRoutersScopedListWarningData()); o.add(buildRoutersScopedListWarningData()); return o; } -checkUnnamed2534(core.List<api.RoutersScopedListWarningData> o) { +checkUnnamed2325(core.List<api.RoutersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -5393,7 +5594,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2534(); + o.data = buildUnnamed2325(); o.message = "foo"; } buildCounterRoutersScopedListWarning--; @@ -5404,7 +5605,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2534(o.data); + checkUnnamed2325(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -5415,7 +5616,7 @@ var o = new api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed2533(); + o.routers = buildUnnamed2324(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -5425,12 +5626,39 @@ checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed2533(o.routers); + checkUnnamed2324(o.routers); checkRoutersScopedListWarning(o.warning); } buildCounterRoutersScopedList--; } +core.int buildCounterSSLHealthCheck = 0; +buildSSLHealthCheck() { + var o = new api.SSLHealthCheck(); + buildCounterSSLHealthCheck++; + if (buildCounterSSLHealthCheck < 3) { + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.request = "foo"; + o.response = "foo"; + } + buildCounterSSLHealthCheck--; + return o; +} + +checkSSLHealthCheck(api.SSLHealthCheck o) { + buildCounterSSLHealthCheck++; + if (buildCounterSSLHealthCheck < 3) { + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.request, unittest.equals('foo')); + unittest.expect(o.response, unittest.equals('foo')); + } + buildCounterSSLHealthCheck--; +} + core.int buildCounterScheduling = 0; buildScheduling() { var o = new api.Scheduling(); @@ -5477,14 +5705,14 @@ buildCounterSerialPortOutput--; } -buildUnnamed2535() { +buildUnnamed2326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2535(core.List<core.String> o) { +checkUnnamed2326(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5496,7 +5724,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = "foo"; - o.scopes = buildUnnamed2535(); + o.scopes = buildUnnamed2326(); } buildCounterServiceAccount--; return o; @@ -5506,19 +5734,19 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2535(o.scopes); + checkUnnamed2326(o.scopes); } buildCounterServiceAccount--; } -buildUnnamed2536() { +buildUnnamed2327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2536(core.List<core.String> o) { +checkUnnamed2327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5534,7 +5762,7 @@ o.diskSizeGb = "foo"; o.id = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2536(); + o.licenses = buildUnnamed2327(); o.name = "foo"; o.selfLink = "foo"; o.snapshotEncryptionKey = buildCustomerEncryptionKey(); @@ -5557,7 +5785,7 @@ unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2536(o.licenses); + checkUnnamed2327(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkCustomerEncryptionKey(o.snapshotEncryptionKey); @@ -5571,14 +5799,14 @@ buildCounterSnapshot--; } -buildUnnamed2537() { +buildUnnamed2328() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed2537(core.List<api.Snapshot> o) { +checkUnnamed2328(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -5590,7 +5818,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = "foo"; - o.items = buildUnnamed2537(); + o.items = buildUnnamed2328(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5603,7 +5831,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2537(o.items); + checkUnnamed2328(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5644,14 +5872,14 @@ buildCounterSslCertificate--; } -buildUnnamed2538() { +buildUnnamed2329() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2538(core.List<api.SslCertificate> o) { +checkUnnamed2329(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -5663,7 +5891,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = "foo"; - o.items = buildUnnamed2538(); + o.items = buildUnnamed2329(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5676,7 +5904,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2538(o.items); + checkUnnamed2329(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5721,14 +5949,14 @@ buildCounterSubnetwork--; } -buildUnnamed2539() { +buildUnnamed2330() { var o = new core.Map<core.String, api.SubnetworksScopedList>(); o["x"] = buildSubnetworksScopedList(); o["y"] = buildSubnetworksScopedList(); return o; } -checkUnnamed2539(core.Map<core.String, api.SubnetworksScopedList> o) { +checkUnnamed2330(core.Map<core.String, api.SubnetworksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o["x"]); checkSubnetworksScopedList(o["y"]); @@ -5740,7 +5968,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2539(); + o.items = buildUnnamed2330(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5753,7 +5981,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2539(o.items); + checkUnnamed2330(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5761,14 +5989,14 @@ buildCounterSubnetworkAggregatedList--; } -buildUnnamed2540() { +buildUnnamed2331() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2540(core.List<api.Subnetwork> o) { +checkUnnamed2331(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -5780,7 +6008,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2540(); + o.items = buildUnnamed2331(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5793,7 +6021,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2540(o.items); + checkUnnamed2331(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5801,14 +6029,33 @@ buildCounterSubnetworkList--; } -buildUnnamed2541() { +core.int buildCounterSubnetworksExpandIpCidrRangeRequest = 0; +buildSubnetworksExpandIpCidrRangeRequest() { + var o = new api.SubnetworksExpandIpCidrRangeRequest(); + buildCounterSubnetworksExpandIpCidrRangeRequest++; + if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { + o.ipCidrRange = "foo"; + } + buildCounterSubnetworksExpandIpCidrRangeRequest--; + return o; +} + +checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest o) { + buildCounterSubnetworksExpandIpCidrRangeRequest++; + if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { + unittest.expect(o.ipCidrRange, unittest.equals('foo')); + } + buildCounterSubnetworksExpandIpCidrRangeRequest--; +} + +buildUnnamed2332() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2541(core.List<api.Subnetwork> o) { +checkUnnamed2332(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -5835,14 +6082,14 @@ buildCounterSubnetworksScopedListWarningData--; } -buildUnnamed2542() { +buildUnnamed2333() { var o = new core.List<api.SubnetworksScopedListWarningData>(); o.add(buildSubnetworksScopedListWarningData()); o.add(buildSubnetworksScopedListWarningData()); return o; } -checkUnnamed2542(core.List<api.SubnetworksScopedListWarningData> o) { +checkUnnamed2333(core.List<api.SubnetworksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -5854,7 +6101,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2542(); + o.data = buildUnnamed2333(); o.message = "foo"; } buildCounterSubnetworksScopedListWarning--; @@ -5865,7 +6112,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2542(o.data); + checkUnnamed2333(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -5876,7 +6123,7 @@ var o = new api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed2541(); + o.subnetworks = buildUnnamed2332(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -5886,20 +6133,47 @@ checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed2541(o.subnetworks); + checkUnnamed2332(o.subnetworks); checkSubnetworksScopedListWarning(o.warning); } buildCounterSubnetworksScopedList--; } -buildUnnamed2543() { +core.int buildCounterTCPHealthCheck = 0; +buildTCPHealthCheck() { + var o = new api.TCPHealthCheck(); + buildCounterTCPHealthCheck++; + if (buildCounterTCPHealthCheck < 3) { + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.request = "foo"; + o.response = "foo"; + } + buildCounterTCPHealthCheck--; + return o; +} + +checkTCPHealthCheck(api.TCPHealthCheck o) { + buildCounterTCPHealthCheck++; + if (buildCounterTCPHealthCheck < 3) { + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.request, unittest.equals('foo')); + unittest.expect(o.response, unittest.equals('foo')); + } + buildCounterTCPHealthCheck--; +} + +buildUnnamed2334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2543(core.List<core.String> o) { +checkUnnamed2334(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5911,7 +6185,7 @@ buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2543(); + o.items = buildUnnamed2334(); } buildCounterTags--; return o; @@ -5921,7 +6195,7 @@ buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2543(o.items); + checkUnnamed2334(o.items); } buildCounterTags--; } @@ -5957,14 +6231,14 @@ buildCounterTargetHttpProxy--; } -buildUnnamed2544() { +buildUnnamed2335() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2544(core.List<api.TargetHttpProxy> o) { +checkUnnamed2335(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -5976,7 +6250,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2544(); + o.items = buildUnnamed2335(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5989,7 +6263,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2544(o.items); + checkUnnamed2335(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5997,14 +6271,14 @@ buildCounterTargetHttpProxyList--; } -buildUnnamed2545() { +buildUnnamed2336() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2545(core.List<core.String> o) { +checkUnnamed2336(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6015,7 +6289,7 @@ var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2545(); + o.sslCertificates = buildUnnamed2336(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -6024,19 +6298,19 @@ checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2545(o.sslCertificates); + checkUnnamed2336(o.sslCertificates); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -buildUnnamed2546() { +buildUnnamed2337() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2546(core.List<core.String> o) { +checkUnnamed2337(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6053,7 +6327,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.sslCertificates = buildUnnamed2546(); + o.sslCertificates = buildUnnamed2337(); o.urlMap = "foo"; } buildCounterTargetHttpsProxy--; @@ -6069,20 +6343,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2546(o.sslCertificates); + checkUnnamed2337(o.sslCertificates); unittest.expect(o.urlMap, unittest.equals('foo')); } buildCounterTargetHttpsProxy--; } -buildUnnamed2547() { +buildUnnamed2338() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2547(core.List<api.TargetHttpsProxy> o) { +checkUnnamed2338(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -6094,7 +6368,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2547(); + o.items = buildUnnamed2338(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6107,7 +6381,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2547(o.items); + checkUnnamed2338(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6150,14 +6424,14 @@ buildCounterTargetInstance--; } -buildUnnamed2548() { +buildUnnamed2339() { var o = new core.Map<core.String, api.TargetInstancesScopedList>(); o["x"] = buildTargetInstancesScopedList(); o["y"] = buildTargetInstancesScopedList(); return o; } -checkUnnamed2548(core.Map<core.String, api.TargetInstancesScopedList> o) { +checkUnnamed2339(core.Map<core.String, api.TargetInstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o["x"]); checkTargetInstancesScopedList(o["y"]); @@ -6169,7 +6443,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2548(); + o.items = buildUnnamed2339(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6182,7 +6456,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2548(o.items); + checkUnnamed2339(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6190,14 +6464,14 @@ buildCounterTargetInstanceAggregatedList--; } -buildUnnamed2549() { +buildUnnamed2340() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2549(core.List<api.TargetInstance> o) { +checkUnnamed2340(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -6209,7 +6483,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2549(); + o.items = buildUnnamed2340(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6222,7 +6496,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2549(o.items); + checkUnnamed2340(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6230,14 +6504,14 @@ buildCounterTargetInstanceList--; } -buildUnnamed2550() { +buildUnnamed2341() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2550(core.List<api.TargetInstance> o) { +checkUnnamed2341(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -6264,14 +6538,14 @@ buildCounterTargetInstancesScopedListWarningData--; } -buildUnnamed2551() { +buildUnnamed2342() { var o = new core.List<api.TargetInstancesScopedListWarningData>(); o.add(buildTargetInstancesScopedListWarningData()); o.add(buildTargetInstancesScopedListWarningData()); return o; } -checkUnnamed2551(core.List<api.TargetInstancesScopedListWarningData> o) { +checkUnnamed2342(core.List<api.TargetInstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -6283,7 +6557,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2551(); + o.data = buildUnnamed2342(); o.message = "foo"; } buildCounterTargetInstancesScopedListWarning--; @@ -6294,7 +6568,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2551(o.data); + checkUnnamed2342(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -6305,7 +6579,7 @@ var o = new api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed2550(); + o.targetInstances = buildUnnamed2341(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -6315,33 +6589,33 @@ checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed2550(o.targetInstances); + checkUnnamed2341(o.targetInstances); checkTargetInstancesScopedListWarning(o.warning); } buildCounterTargetInstancesScopedList--; } -buildUnnamed2552() { +buildUnnamed2343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2552(core.List<core.String> o) { +checkUnnamed2343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2553() { +buildUnnamed2344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2553(core.List<core.String> o) { +checkUnnamed2344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6356,9 +6630,9 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed2552(); + o.healthChecks = buildUnnamed2343(); o.id = "foo"; - o.instances = buildUnnamed2553(); + o.instances = buildUnnamed2344(); o.kind = "foo"; o.name = "foo"; o.region = "foo"; @@ -6376,9 +6650,9 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.failoverRatio, unittest.equals(42.0)); - checkUnnamed2552(o.healthChecks); + checkUnnamed2343(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2553(o.instances); + checkUnnamed2344(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); @@ -6388,14 +6662,14 @@ buildCounterTargetPool--; } -buildUnnamed2554() { +buildUnnamed2345() { var o = new core.Map<core.String, api.TargetPoolsScopedList>(); o["x"] = buildTargetPoolsScopedList(); o["y"] = buildTargetPoolsScopedList(); return o; } -checkUnnamed2554(core.Map<core.String, api.TargetPoolsScopedList> o) { +checkUnnamed2345(core.Map<core.String, api.TargetPoolsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o["x"]); checkTargetPoolsScopedList(o["y"]); @@ -6407,7 +6681,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2554(); + o.items = buildUnnamed2345(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6420,7 +6694,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2554(o.items); + checkUnnamed2345(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6428,14 +6702,14 @@ buildCounterTargetPoolAggregatedList--; } -buildUnnamed2555() { +buildUnnamed2346() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2555(core.List<api.HealthStatus> o) { +checkUnnamed2346(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -6446,7 +6720,7 @@ var o = new api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed2555(); + o.healthStatus = buildUnnamed2346(); o.kind = "foo"; } buildCounterTargetPoolInstanceHealth--; @@ -6456,20 +6730,20 @@ checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed2555(o.healthStatus); + checkUnnamed2346(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -buildUnnamed2556() { +buildUnnamed2347() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2556(core.List<api.TargetPool> o) { +checkUnnamed2347(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -6481,7 +6755,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = "foo"; - o.items = buildUnnamed2556(); + o.items = buildUnnamed2347(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6494,7 +6768,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2556(o.items); + checkUnnamed2347(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6502,14 +6776,14 @@ buildCounterTargetPoolList--; } -buildUnnamed2557() { +buildUnnamed2348() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2557(core.List<api.HealthCheckReference> o) { +checkUnnamed2348(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -6520,7 +6794,7 @@ var o = new api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2557(); + o.healthChecks = buildUnnamed2348(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -6529,19 +6803,19 @@ checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed2557(o.healthChecks); + checkUnnamed2348(o.healthChecks); } buildCounterTargetPoolsAddHealthCheckRequest--; } -buildUnnamed2558() { +buildUnnamed2349() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2558(core.List<api.InstanceReference> o) { +checkUnnamed2349(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -6552,7 +6826,7 @@ var o = new api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed2558(); + o.instances = buildUnnamed2349(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -6561,19 +6835,19 @@ checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed2558(o.instances); + checkUnnamed2349(o.instances); } buildCounterTargetPoolsAddInstanceRequest--; } -buildUnnamed2559() { +buildUnnamed2350() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2559(core.List<api.HealthCheckReference> o) { +checkUnnamed2350(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -6584,7 +6858,7 @@ var o = new api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2559(); + o.healthChecks = buildUnnamed2350(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -6593,19 +6867,19 @@ checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest o) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed2559(o.healthChecks); + checkUnnamed2350(o.healthChecks); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -buildUnnamed2560() { +buildUnnamed2351() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2560(core.List<api.InstanceReference> o) { +checkUnnamed2351(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -6616,7 +6890,7 @@ var o = new api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed2560(); + o.instances = buildUnnamed2351(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -6625,19 +6899,19 @@ checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed2560(o.instances); + checkUnnamed2351(o.instances); } buildCounterTargetPoolsRemoveInstanceRequest--; } -buildUnnamed2561() { +buildUnnamed2352() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2561(core.List<api.TargetPool> o) { +checkUnnamed2352(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -6664,14 +6938,14 @@ buildCounterTargetPoolsScopedListWarningData--; } -buildUnnamed2562() { +buildUnnamed2353() { var o = new core.List<api.TargetPoolsScopedListWarningData>(); o.add(buildTargetPoolsScopedListWarningData()); o.add(buildTargetPoolsScopedListWarningData()); return o; } -checkUnnamed2562(core.List<api.TargetPoolsScopedListWarningData> o) { +checkUnnamed2353(core.List<api.TargetPoolsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -6683,7 +6957,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2562(); + o.data = buildUnnamed2353(); o.message = "foo"; } buildCounterTargetPoolsScopedListWarning--; @@ -6694,7 +6968,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2562(o.data); + checkUnnamed2353(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -6705,7 +6979,7 @@ var o = new api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed2561(); + o.targetPools = buildUnnamed2352(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -6715,7 +6989,7 @@ checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed2561(o.targetPools); + checkUnnamed2352(o.targetPools); checkTargetPoolsScopedListWarning(o.warning); } buildCounterTargetPoolsScopedList--; @@ -6740,27 +7014,185 @@ buildCounterTargetReference--; } -buildUnnamed2563() { +core.int buildCounterTargetSslProxiesSetBackendServiceRequest = 0; +buildTargetSslProxiesSetBackendServiceRequest() { + var o = new api.TargetSslProxiesSetBackendServiceRequest(); + buildCounterTargetSslProxiesSetBackendServiceRequest++; + if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) { + o.service = "foo"; + } + buildCounterTargetSslProxiesSetBackendServiceRequest--; + return o; +} + +checkTargetSslProxiesSetBackendServiceRequest(api.TargetSslProxiesSetBackendServiceRequest o) { + buildCounterTargetSslProxiesSetBackendServiceRequest++; + if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) { + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterTargetSslProxiesSetBackendServiceRequest--; +} + +core.int buildCounterTargetSslProxiesSetProxyHeaderRequest = 0; +buildTargetSslProxiesSetProxyHeaderRequest() { + var o = new api.TargetSslProxiesSetProxyHeaderRequest(); + buildCounterTargetSslProxiesSetProxyHeaderRequest++; + if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { + o.proxyHeader = "foo"; + } + buildCounterTargetSslProxiesSetProxyHeaderRequest--; + return o; +} + +checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderRequest o) { + buildCounterTargetSslProxiesSetProxyHeaderRequest++; + if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { + unittest.expect(o.proxyHeader, unittest.equals('foo')); + } + buildCounterTargetSslProxiesSetProxyHeaderRequest--; +} + +buildUnnamed2354() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2563(core.List<core.String> o) { +checkUnnamed2354(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2564() { +core.int buildCounterTargetSslProxiesSetSslCertificatesRequest = 0; +buildTargetSslProxiesSetSslCertificatesRequest() { + var o = new api.TargetSslProxiesSetSslCertificatesRequest(); + buildCounterTargetSslProxiesSetSslCertificatesRequest++; + if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { + o.sslCertificates = buildUnnamed2354(); + } + buildCounterTargetSslProxiesSetSslCertificatesRequest--; + return o; +} + +checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertificatesRequest o) { + buildCounterTargetSslProxiesSetSslCertificatesRequest++; + if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { + checkUnnamed2354(o.sslCertificates); + } + buildCounterTargetSslProxiesSetSslCertificatesRequest--; +} + +buildUnnamed2355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2564(core.List<core.String> o) { +checkUnnamed2355(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterTargetSslProxy = 0; +buildTargetSslProxy() { + var o = new api.TargetSslProxy(); + buildCounterTargetSslProxy++; + if (buildCounterTargetSslProxy < 3) { + o.creationTimestamp = "foo"; + o.description = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.proxyHeader = "foo"; + o.selfLink = "foo"; + o.service = "foo"; + o.sslCertificates = buildUnnamed2355(); + } + buildCounterTargetSslProxy--; + return o; +} + +checkTargetSslProxy(api.TargetSslProxy o) { + buildCounterTargetSslProxy++; + if (buildCounterTargetSslProxy < 3) { + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.service, unittest.equals('foo')); + checkUnnamed2355(o.sslCertificates); + } + buildCounterTargetSslProxy--; +} + +buildUnnamed2356() { + var o = new core.List<api.TargetSslProxy>(); + o.add(buildTargetSslProxy()); + o.add(buildTargetSslProxy()); + return o; +} + +checkUnnamed2356(core.List<api.TargetSslProxy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetSslProxy(o[0]); + checkTargetSslProxy(o[1]); +} + +core.int buildCounterTargetSslProxyList = 0; +buildTargetSslProxyList() { + var o = new api.TargetSslProxyList(); + buildCounterTargetSslProxyList++; + if (buildCounterTargetSslProxyList < 3) { + o.id = "foo"; + o.items = buildUnnamed2356(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterTargetSslProxyList--; + return o; +} + +checkTargetSslProxyList(api.TargetSslProxyList o) { + buildCounterTargetSslProxyList++; + if (buildCounterTargetSslProxyList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2356(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterTargetSslProxyList--; +} + +buildUnnamed2357() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2357(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2358() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2358(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6773,7 +7205,7 @@ if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.forwardingRules = buildUnnamed2563(); + o.forwardingRules = buildUnnamed2357(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -6781,7 +7213,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.tunnels = buildUnnamed2564(); + o.tunnels = buildUnnamed2358(); } buildCounterTargetVpnGateway--; return o; @@ -6792,7 +7224,7 @@ if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2563(o.forwardingRules); + checkUnnamed2357(o.forwardingRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -6800,19 +7232,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2564(o.tunnels); + checkUnnamed2358(o.tunnels); } buildCounterTargetVpnGateway--; } -buildUnnamed2565() { +buildUnnamed2359() { var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); o["x"] = buildTargetVpnGatewaysScopedList(); o["y"] = buildTargetVpnGatewaysScopedList(); return o; } -checkUnnamed2565(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { +checkUnnamed2359(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o["x"]); checkTargetVpnGatewaysScopedList(o["y"]); @@ -6824,7 +7256,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2565(); + o.items = buildUnnamed2359(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6837,7 +7269,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2565(o.items); + checkUnnamed2359(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6845,14 +7277,14 @@ buildCounterTargetVpnGatewayAggregatedList--; } -buildUnnamed2566() { +buildUnnamed2360() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2566(core.List<api.TargetVpnGateway> o) { +checkUnnamed2360(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -6864,7 +7296,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2566(); + o.items = buildUnnamed2360(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6877,7 +7309,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2566(o.items); + checkUnnamed2360(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6885,14 +7317,14 @@ buildCounterTargetVpnGatewayList--; } -buildUnnamed2567() { +buildUnnamed2361() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2567(core.List<api.TargetVpnGateway> o) { +checkUnnamed2361(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -6919,14 +7351,14 @@ buildCounterTargetVpnGatewaysScopedListWarningData--; } -buildUnnamed2568() { +buildUnnamed2362() { var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); o.add(buildTargetVpnGatewaysScopedListWarningData()); o.add(buildTargetVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2568(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { +checkUnnamed2362(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -6938,7 +7370,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2568(); + o.data = buildUnnamed2362(); o.message = "foo"; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -6949,7 +7381,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2568(o.data); + checkUnnamed2362(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -6960,7 +7392,7 @@ var o = new api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed2567(); + o.targetVpnGateways = buildUnnamed2361(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -6970,7 +7402,7 @@ checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed2567(o.targetVpnGateways); + checkUnnamed2361(o.targetVpnGateways); checkTargetVpnGatewaysScopedListWarning(o.warning); } buildCounterTargetVpnGatewaysScopedList--; @@ -7001,40 +7433,40 @@ buildCounterTestFailure--; } -buildUnnamed2569() { +buildUnnamed2363() { var o = new core.List<api.HostRule>(); o.add(buildHostRule()); o.add(buildHostRule()); return o; } -checkUnnamed2569(core.List<api.HostRule> o) { +checkUnnamed2363(core.List<api.HostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -buildUnnamed2570() { +buildUnnamed2364() { var o = new core.List<api.PathMatcher>(); o.add(buildPathMatcher()); o.add(buildPathMatcher()); return o; } -checkUnnamed2570(core.List<api.PathMatcher> o) { +checkUnnamed2364(core.List<api.PathMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -buildUnnamed2571() { +buildUnnamed2365() { var o = new core.List<api.UrlMapTest>(); o.add(buildUrlMapTest()); o.add(buildUrlMapTest()); return o; } -checkUnnamed2571(core.List<api.UrlMapTest> o) { +checkUnnamed2365(core.List<api.UrlMapTest> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -7049,13 +7481,13 @@ o.defaultService = "foo"; o.description = "foo"; o.fingerprint = "foo"; - o.hostRules = buildUnnamed2569(); + o.hostRules = buildUnnamed2363(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.pathMatchers = buildUnnamed2570(); + o.pathMatchers = buildUnnamed2364(); o.selfLink = "foo"; - o.tests = buildUnnamed2571(); + o.tests = buildUnnamed2365(); } buildCounterUrlMap--; return o; @@ -7068,25 +7500,25 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2569(o.hostRules); + checkUnnamed2363(o.hostRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2570(o.pathMatchers); + checkUnnamed2364(o.pathMatchers); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2571(o.tests); + checkUnnamed2365(o.tests); } buildCounterUrlMap--; } -buildUnnamed2572() { +buildUnnamed2366() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2572(core.List<api.UrlMap> o) { +checkUnnamed2366(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -7098,7 +7530,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = "foo"; - o.items = buildUnnamed2572(); + o.items = buildUnnamed2366(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7111,7 +7543,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2572(o.items); + checkUnnamed2366(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7163,27 +7595,27 @@ buildCounterUrlMapTest--; } -buildUnnamed2573() { +buildUnnamed2367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2573(core.List<core.String> o) { +checkUnnamed2367(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2574() { +buildUnnamed2368() { var o = new core.List<api.TestFailure>(); o.add(buildTestFailure()); o.add(buildTestFailure()); return o; } -checkUnnamed2574(core.List<api.TestFailure> o) { +checkUnnamed2368(core.List<api.TestFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -7194,9 +7626,9 @@ var o = new api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed2573(); + o.loadErrors = buildUnnamed2367(); o.loadSucceeded = true; - o.testFailures = buildUnnamed2574(); + o.testFailures = buildUnnamed2368(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -7206,9 +7638,9 @@ checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed2573(o.loadErrors); + checkUnnamed2367(o.loadErrors); unittest.expect(o.loadSucceeded, unittest.isTrue); - checkUnnamed2574(o.testFailures); + checkUnnamed2368(o.testFailures); unittest.expect(o.testPassed, unittest.isTrue); } buildCounterUrlMapValidationResult--; @@ -7273,27 +7705,27 @@ buildCounterUsageExportLocation--; } -buildUnnamed2575() { +buildUnnamed2369() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2575(core.List<core.String> o) { +checkUnnamed2369(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2576() { +buildUnnamed2370() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2576(core.List<core.String> o) { +checkUnnamed2370(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7310,11 +7742,11 @@ o.id = "foo"; o.ikeVersion = 42; o.kind = "foo"; - o.localTrafficSelector = buildUnnamed2575(); + o.localTrafficSelector = buildUnnamed2369(); o.name = "foo"; o.peerIp = "foo"; o.region = "foo"; - o.remoteTrafficSelector = buildUnnamed2576(); + o.remoteTrafficSelector = buildUnnamed2370(); o.router = "foo"; o.selfLink = "foo"; o.sharedSecret = "foo"; @@ -7335,11 +7767,11 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ikeVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2575(o.localTrafficSelector); + checkUnnamed2369(o.localTrafficSelector); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerIp, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2576(o.remoteTrafficSelector); + checkUnnamed2370(o.remoteTrafficSelector); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sharedSecret, unittest.equals('foo')); @@ -7350,14 +7782,14 @@ buildCounterVpnTunnel--; } -buildUnnamed2577() { +buildUnnamed2371() { var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); o["x"] = buildVpnTunnelsScopedList(); o["y"] = buildVpnTunnelsScopedList(); return o; } -checkUnnamed2577(core.Map<core.String, api.VpnTunnelsScopedList> o) { +checkUnnamed2371(core.Map<core.String, api.VpnTunnelsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o["x"]); checkVpnTunnelsScopedList(o["y"]); @@ -7369,7 +7801,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2577(); + o.items = buildUnnamed2371(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7382,7 +7814,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2577(o.items); + checkUnnamed2371(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7390,14 +7822,14 @@ buildCounterVpnTunnelAggregatedList--; } -buildUnnamed2578() { +buildUnnamed2372() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2578(core.List<api.VpnTunnel> o) { +checkUnnamed2372(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -7409,7 +7841,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = "foo"; - o.items = buildUnnamed2578(); + o.items = buildUnnamed2372(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7422,7 +7854,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2578(o.items); + checkUnnamed2372(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7430,14 +7862,14 @@ buildCounterVpnTunnelList--; } -buildUnnamed2579() { +buildUnnamed2373() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2579(core.List<api.VpnTunnel> o) { +checkUnnamed2373(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -7464,14 +7896,14 @@ buildCounterVpnTunnelsScopedListWarningData--; } -buildUnnamed2580() { +buildUnnamed2374() { var o = new core.List<api.VpnTunnelsScopedListWarningData>(); o.add(buildVpnTunnelsScopedListWarningData()); o.add(buildVpnTunnelsScopedListWarningData()); return o; } -checkUnnamed2580(core.List<api.VpnTunnelsScopedListWarningData> o) { +checkUnnamed2374(core.List<api.VpnTunnelsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -7483,7 +7915,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2580(); + o.data = buildUnnamed2374(); o.message = "foo"; } buildCounterVpnTunnelsScopedListWarning--; @@ -7494,7 +7926,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2580(o.data); + checkUnnamed2374(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -7505,7 +7937,7 @@ var o = new api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed2579(); + o.vpnTunnels = buildUnnamed2373(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -7515,7 +7947,7 @@ checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed2579(o.vpnTunnels); + checkUnnamed2373(o.vpnTunnels); checkVpnTunnelsScopedListWarning(o.warning); } buildCounterVpnTunnelsScopedList--; @@ -7556,14 +7988,14 @@ buildCounterZone--; } -buildUnnamed2581() { +buildUnnamed2375() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2581(core.List<api.Zone> o) { +checkUnnamed2375(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -7575,7 +8007,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = "foo"; - o.items = buildUnnamed2581(); + o.items = buildUnnamed2375(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7588,7 +8020,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2581(o.items); + checkUnnamed2375(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7814,6 +8246,15 @@ }); + unittest.group("obj-schema-ConnectionDraining", () { + unittest.test("to-json--from-json", () { + var o = buildConnectionDraining(); + var od = new api.ConnectionDraining.fromJson(o.toJson()); + checkConnectionDraining(od); + }); + }); + + unittest.group("obj-schema-CustomerEncryptionKey", () { unittest.test("to-json--from-json", () { var o = buildCustomerEncryptionKey(); @@ -8048,6 +8489,51 @@ }); + unittest.group("obj-schema-HTTP2HealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHTTP2HealthCheck(); + var od = new api.HTTP2HealthCheck.fromJson(o.toJson()); + checkHTTP2HealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HTTPHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHTTPHealthCheck(); + var od = new api.HTTPHealthCheck.fromJson(o.toJson()); + checkHTTPHealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HTTPSHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHTTPSHealthCheck(); + var od = new api.HTTPSHealthCheck.fromJson(o.toJson()); + checkHTTPSHealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheck(); + var od = new api.HealthCheck.fromJson(o.toJson()); + checkHealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HealthCheckList", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheckList(); + var od = new api.HealthCheckList.fromJson(o.toJson()); + checkHealthCheckList(od); + }); + }); + + unittest.group("obj-schema-HealthCheckReference", () { unittest.test("to-json--from-json", () { var o = buildHealthCheckReference(); @@ -8948,6 +9434,15 @@ }); + unittest.group("obj-schema-SSLHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildSSLHealthCheck(); + var od = new api.SSLHealthCheck.fromJson(o.toJson()); + checkSSLHealthCheck(od); + }); + }); + + unittest.group("obj-schema-Scheduling", () { unittest.test("to-json--from-json", () { var o = buildScheduling(); @@ -9038,6 +9533,15 @@ }); + unittest.group("obj-schema-SubnetworksExpandIpCidrRangeRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSubnetworksExpandIpCidrRangeRequest(); + var od = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(o.toJson()); + checkSubnetworksExpandIpCidrRangeRequest(od); + }); + }); + + unittest.group("obj-schema-SubnetworksScopedListWarningData", () { unittest.test("to-json--from-json", () { var o = buildSubnetworksScopedListWarningData(); @@ -9065,6 +9569,15 @@ }); + unittest.group("obj-schema-TCPHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildTCPHealthCheck(); + var od = new api.TCPHealthCheck.fromJson(o.toJson()); + checkTCPHealthCheck(od); + }); + }); + + unittest.group("obj-schema-Tags", () { unittest.test("to-json--from-json", () { var o = buildTags(); @@ -9281,6 +9794,51 @@ }); + unittest.group("obj-schema-TargetSslProxiesSetBackendServiceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxiesSetBackendServiceRequest(); + var od = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(o.toJson()); + checkTargetSslProxiesSetBackendServiceRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxiesSetProxyHeaderRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxiesSetProxyHeaderRequest(); + var od = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(o.toJson()); + checkTargetSslProxiesSetProxyHeaderRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxiesSetSslCertificatesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxiesSetSslCertificatesRequest(); + var od = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(o.toJson()); + checkTargetSslProxiesSetSslCertificatesRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxy", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxy(); + var od = new api.TargetSslProxy.fromJson(o.toJson()); + checkTargetSslProxy(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxyList", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxyList(); + var od = new api.TargetSslProxyList.fromJson(o.toJson()); + checkTargetSslProxyList(od); + }); + }); + + unittest.group("obj-schema-TargetVpnGateway", () { unittest.test("to-json--from-json", () { var o = buildTargetVpnGateway(); @@ -9496,6 +10054,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -9523,6 +10082,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -9532,7 +10092,7 @@ var resp = convert.JSON.encode(buildAddressAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregatedList response) { checkAddressAggregatedList(response); }))); }); @@ -9680,6 +10240,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -9707,6 +10268,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -9716,7 +10278,7 @@ var resp = convert.JSON.encode(buildAddressList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { checkAddressList(response); }))); }); @@ -9732,6 +10294,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -9759,6 +10322,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -9768,7 +10332,7 @@ var resp = convert.JSON.encode(buildAutoscalerAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerAggregatedList response) { checkAutoscalerAggregatedList(response); }))); }); @@ -9916,6 +10480,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -9943,6 +10508,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -9952,7 +10518,7 @@ var resp = convert.JSON.encode(buildAutoscalerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerList response) { checkAutoscalerList(response); }))); }); @@ -10245,6 +10811,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -10272,6 +10839,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -10281,7 +10849,7 @@ var resp = convert.JSON.encode(buildBackendServiceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) { checkBackendServiceList(response); }))); }); @@ -10391,6 +10959,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -10418,6 +10987,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -10427,7 +10997,7 @@ var resp = convert.JSON.encode(buildDiskTypeAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregatedList response) { checkDiskTypeAggregatedList(response); }))); }); @@ -10484,6 +11054,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -10511,6 +11082,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -10520,7 +11092,7 @@ var resp = convert.JSON.encode(buildDiskTypeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList response) { checkDiskTypeList(response); }))); }); @@ -10536,6 +11108,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -10563,6 +11136,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -10572,7 +11146,7 @@ var resp = convert.JSON.encode(buildDiskAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedList response) { checkDiskAggregatedList(response); }))); }); @@ -10770,6 +11344,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -10797,6 +11372,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -10806,7 +11382,7 @@ var resp = convert.JSON.encode(buildDiskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList response) { checkDiskList(response); }))); }); @@ -11002,6 +11578,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -11029,6 +11606,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -11038,7 +11616,7 @@ var resp = convert.JSON.encode(buildFirewallList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) { checkFirewallList(response); }))); }); @@ -11148,6 +11726,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -11175,6 +11754,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -11184,7 +11764,7 @@ var resp = convert.JSON.encode(buildForwardingRuleAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAggregatedList response) { checkForwardingRuleAggregatedList(response); }))); }); @@ -11332,6 +11912,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -11359,6 +11940,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -11368,7 +11950,7 @@ var resp = convert.JSON.encode(buildForwardingRuleList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { checkForwardingRuleList(response); }))); }); @@ -11564,6 +12146,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -11591,6 +12174,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -11600,7 +12184,7 @@ var resp = convert.JSON.encode(buildAddressList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { checkAddressList(response); }))); }); @@ -11748,6 +12332,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -11775,6 +12360,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -11784,7 +12370,7 @@ var resp = convert.JSON.encode(buildForwardingRuleList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { checkForwardingRuleList(response); }))); }); @@ -11847,6 +12433,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -11874,6 +12461,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -11883,7 +12471,7 @@ var resp = convert.JSON.encode(buildOperationAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggregatedList response) { checkOperationAggregatedList(response); }))); }); @@ -11979,6 +12567,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -12006,6 +12595,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -12015,7 +12605,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { checkOperationList(response); }))); }); @@ -12023,6 +12613,286 @@ }); + unittest.group("resource-HealthChecksResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_project = "foo"; + var arg_healthCheck = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_project = "foo"; + var arg_healthCheck = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildHealthCheck()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.HealthCheck response) { + checkHealthCheck(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_request = buildHealthCheck(); + var arg_project = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.HealthCheck.fromJson(json); + checkHealthCheck(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildHealthCheckList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HealthCheckList response) { + checkHealthCheckList(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_request = buildHealthCheck(); + var arg_project = "foo"; + var arg_healthCheck = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.HealthCheck.fromJson(json); + checkHealthCheck(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_request = buildHealthCheck(); + var arg_project = "foo"; + var arg_healthCheck = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.HealthCheck.fromJson(json); + checkHealthCheck(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + unittest.group("resource-HttpHealthChecksResourceApi", () { unittest.test("method--delete", () { @@ -12163,6 +13033,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -12190,6 +13061,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -12199,7 +13071,7 @@ var resp = convert.JSON.encode(buildHttpHealthCheckList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList response) { checkHttpHealthCheckList(response); }))); }); @@ -12441,6 +13313,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -12468,6 +13341,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -12477,7 +13351,7 @@ var resp = convert.JSON.encode(buildHttpsHealthCheckList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpsHealthCheckList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpsHealthCheckList response) { checkHttpsHealthCheckList(response); }))); }); @@ -12809,6 +13683,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -12836,6 +13711,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -12845,7 +13721,7 @@ var resp = convert.JSON.encode(buildImageList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) { checkImageList(response); }))); }); @@ -12909,6 +13785,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -12936,6 +13813,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -12945,7 +13823,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManagerAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerAggregatedList response) { checkInstanceGroupManagerAggregatedList(response); }))); }); @@ -13141,6 +14019,58 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildInstanceGroupManagerList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) { + checkInstanceGroupManagerList(response); + }))); + }); + + unittest.test("method--listManagedInstances", () { + + var mock = new HttpServerMock(); + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers; + var arg_project = "foo"; + var arg_zone = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -13174,54 +14104,10 @@ var h = { "content-type" : "application/json; charset=utf-8", }; - var resp = convert.JSON.encode(buildInstanceGroupManagerList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) { - checkInstanceGroupManagerList(response); - }))); - }); - - unittest.test("method--listManagedInstances", () { - - var mock = new HttpServerMock(); - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers; - var arg_project = "foo"; - var arg_zone = "foo"; - var arg_instanceGroupManager = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; var resp = convert.JSON.encode(buildInstanceGroupManagersListManagedInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) { + res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) { checkInstanceGroupManagersListManagedInstancesResponse(response); }))); }); @@ -13475,6 +14361,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -13502,6 +14389,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -13511,7 +14399,7 @@ var resp = convert.JSON.encode(buildInstanceGroupAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupAggregatedList response) { checkInstanceGroupAggregatedList(response); }))); }); @@ -13659,6 +14547,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -13686,6 +14575,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -13695,7 +14585,7 @@ var resp = convert.JSON.encode(buildInstanceGroupList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupList response) { checkInstanceGroupList(response); }))); }); @@ -13710,6 +14600,7 @@ var arg_instanceGroup = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.InstanceGroupsListInstancesRequest.fromJson(json); @@ -13740,6 +14631,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -13749,7 +14641,7 @@ var resp = convert.JSON.encode(buildInstanceGroupsListInstances()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances response) { + res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances response) { checkInstanceGroupsListInstances(response); }))); }); @@ -13993,6 +14885,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -14020,6 +14913,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -14029,7 +14923,7 @@ var resp = convert.JSON.encode(buildInstanceTemplateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList response) { checkInstanceTemplateList(response); }))); }); @@ -14095,6 +14989,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -14122,6 +15017,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -14131,7 +15027,7 @@ var resp = convert.JSON.encode(buildInstanceAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregatedList response) { checkInstanceAggregatedList(response); }))); }); @@ -14467,6 +15363,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -14494,6 +15391,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -14503,7 +15401,7 @@ var resp = convert.JSON.encode(buildInstanceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList response) { checkInstanceList(response); }))); }); @@ -14986,6 +15884,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -15013,6 +15912,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -15022,7 +15922,7 @@ var resp = convert.JSON.encode(buildMachineTypeAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggregatedList response) { checkMachineTypeAggregatedList(response); }))); }); @@ -15079,6 +15979,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -15106,6 +16007,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -15115,7 +16017,7 @@ var resp = convert.JSON.encode(buildMachineTypeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList response) { checkMachineTypeList(response); }))); }); @@ -15263,6 +16165,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -15290,6 +16193,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -15299,11 +16203,54 @@ var resp = convert.JSON.encode(buildNetworkList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) { checkNetworkList(response); }))); }); + unittest.test("method--switchToCustomMode", () { + + var mock = new HttpServerMock(); + api.NetworksResourceApi res = new api.ComputeApi(mock).networks; + var arg_project = "foo"; + var arg_network = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + }); @@ -15632,6 +16579,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -15659,6 +16607,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -15668,7 +16617,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { checkOperationList(response); }))); }); @@ -15727,6 +16676,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -15754,6 +16704,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -15763,7 +16714,7 @@ var resp = convert.JSON.encode(buildRegionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionList response) { checkRegionList(response); }))); }); @@ -15779,6 +16730,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -15806,6 +16758,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -15815,7 +16768,7 @@ var resp = convert.JSON.encode(buildRouterAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterAggregatedList response) { checkRouterAggregatedList(response); }))); }); @@ -16007,6 +16960,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -16034,6 +16988,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -16043,7 +16998,7 @@ var resp = convert.JSON.encode(buildRouterList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterList response) { checkRouterList(response); }))); }); @@ -16335,6 +17290,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -16362,6 +17318,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -16371,7 +17328,7 @@ var resp = convert.JSON.encode(buildRouteList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouteList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouteList response) { checkRouteList(response); }))); }); @@ -16473,6 +17430,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -16500,6 +17458,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -16509,7 +17468,7 @@ var resp = convert.JSON.encode(buildSnapshotList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotList response) { checkSnapshotList(response); }))); }); @@ -16657,6 +17616,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -16684,6 +17644,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -16693,7 +17654,7 @@ var resp = convert.JSON.encode(buildSslCertificateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SslCertificateList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SslCertificateList response) { checkSslCertificateList(response); }))); }); @@ -16709,6 +17670,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -16736,6 +17698,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -16745,7 +17708,7 @@ var resp = convert.JSON.encode(buildSubnetworkAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkAggregatedList response) { checkSubnetworkAggregatedList(response); }))); }); @@ -16794,6 +17757,54 @@ }))); }); + unittest.test("method--expandIpCidrRange", () { + + var mock = new HttpServerMock(); + api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; + var arg_request = buildSubnetworksExpandIpCidrRangeRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_subnetwork = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(json); + checkSubnetworksExpandIpCidrRangeRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.expandIpCidrRange(arg_request, arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -16893,6 +17904,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -16920,6 +17932,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -16929,7 +17942,7 @@ var resp = convert.JSON.encode(buildSubnetworkList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkList response) { checkSubnetworkList(response); }))); }); @@ -17077,6 +18090,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -17104,6 +18118,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -17113,7 +18128,7 @@ var resp = convert.JSON.encode(buildTargetHttpProxyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpProxyList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpProxyList response) { checkTargetHttpProxyList(response); }))); }); @@ -17308,6 +18323,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -17335,6 +18351,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -17344,7 +18361,7 @@ var resp = convert.JSON.encode(buildTargetHttpsProxyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpsProxyList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpsProxyList response) { checkTargetHttpsProxyList(response); }))); }); @@ -17454,6 +18471,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -17481,6 +18499,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -17490,7 +18509,7 @@ var resp = convert.JSON.encode(buildTargetInstanceAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceAggregatedList response) { checkTargetInstanceAggregatedList(response); }))); }); @@ -17638,6 +18657,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -17665,6 +18685,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -17674,7 +18695,7 @@ var resp = convert.JSON.encode(buildTargetInstanceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceList response) { checkTargetInstanceList(response); }))); }); @@ -17786,6 +18807,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -17813,6 +18835,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -17822,7 +18845,7 @@ var resp = convert.JSON.encode(buildTargetPoolAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolAggregatedList response) { checkTargetPoolAggregatedList(response); }))); }); @@ -18018,6 +19041,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -18045,6 +19069,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -18054,7 +19079,7 @@ var resp = convert.JSON.encode(buildTargetPoolList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolList response) { checkTargetPoolList(response); }))); }); @@ -18208,14 +19233,147 @@ }); - unittest.group("resource-TargetVpnGatewaysResourceApi", () { - unittest.test("method--aggregatedList", () { + unittest.group("resource-TargetSslProxiesResourceApi", () { + unittest.test("method--delete", () { var mock = new HttpServerMock(); - api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnGateways; + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetSslProxy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.TargetSslProxy response) { + checkTargetSslProxy(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxy(); + var arg_project = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxy.fromJson(json); + checkTargetSslProxy(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -18243,6 +19401,202 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetSslProxyList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetSslProxyList response) { + checkTargetSslProxyList(response); + }))); + }); + + unittest.test("method--setBackendService", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxiesSetBackendServiceRequest(); + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(json); + checkTargetSslProxiesSetBackendServiceRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setBackendService(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setProxyHeader", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxiesSetProxyHeaderRequest(); + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(json); + checkTargetSslProxiesSetProxyHeaderRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setProxyHeader(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setSslCertificates", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxiesSetSslCertificatesRequest(); + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(json); + checkTargetSslProxiesSetSslCertificatesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setSslCertificates(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-TargetVpnGatewaysResourceApi", () { + unittest.test("method--aggregatedList", () { + + var mock = new HttpServerMock(); + api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnGateways; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -18252,7 +19606,7 @@ var resp = convert.JSON.encode(buildTargetVpnGatewayAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayAggregatedList response) { checkTargetVpnGatewayAggregatedList(response); }))); }); @@ -18400,6 +19754,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -18427,6 +19782,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -18436,7 +19792,7 @@ var resp = convert.JSON.encode(buildTargetVpnGatewayList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayList response) { checkTargetVpnGatewayList(response); }))); }); @@ -18631,6 +19987,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -18658,6 +20015,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -18667,7 +20025,7 @@ var resp = convert.JSON.encode(buildUrlMapList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UrlMapList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UrlMapList response) { checkUrlMapList(response); }))); }); @@ -18824,6 +20182,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -18851,6 +20210,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -18860,7 +20220,7 @@ var resp = convert.JSON.encode(buildVpnTunnelAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelAggregatedList response) { checkVpnTunnelAggregatedList(response); }))); }); @@ -19008,6 +20368,7 @@ var arg_region = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -19035,6 +20396,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -19044,7 +20406,7 @@ var resp = convert.JSON.encode(buildVpnTunnelList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelList response) { checkVpnTunnelList(response); }))); }); @@ -19147,6 +20509,7 @@ var arg_zone = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -19174,6 +20537,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -19183,7 +20547,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { checkOperationList(response); }))); }); @@ -19242,6 +20606,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -19269,6 +20634,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -19278,7 +20644,7 @@ var resp = convert.JSON.encode(buildZoneList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { checkZoneList(response); }))); });
diff --git a/generated/googleapis/test/consumersurveys/v2_test.dart b/generated/googleapis/test/consumersurveys/v2_test.dart index 14b1fe8..610d09f 100644 --- a/generated/googleapis/test/consumersurveys/v2_test.dart +++ b/generated/googleapis/test/consumersurveys/v2_test.dart
@@ -278,6 +278,7 @@ o.description = "foo"; o.owners = buildUnnamed25(); o.questions = buildUnnamed26(); + o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; o.title = "foo"; @@ -296,6 +297,7 @@ unittest.expect(o.description, unittest.equals('foo')); checkUnnamed25(o.owners); checkUnnamed26(o.questions); + checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -514,6 +516,27 @@ buildCounterSurveyQuestionImage--; } +core.int buildCounterSurveyRejection = 0; +buildSurveyRejection() { + var o = new api.SurveyRejection(); + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + o.explanation = "foo"; + o.type = "foo"; + } + buildCounterSurveyRejection--; + return o; +} + +checkSurveyRejection(api.SurveyRejection o) { + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + unittest.expect(o.explanation, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterSurveyRejection--; +} + core.int buildCounterSurveyResults = 0; buildSurveyResults() { var o = new api.SurveyResults(); @@ -775,6 +798,15 @@ }); + unittest.group("obj-schema-SurveyRejection", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyRejection(); + var od = new api.SurveyRejection.fromJson(o.toJson()); + checkSurveyRejection(od); + }); + }); + + unittest.group("obj-schema-SurveyResults", () { unittest.test("to-json--from-json", () { var o = buildSurveyResults();
diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index a1d28e4..c0f58de 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart
@@ -72,40 +72,40 @@ buildCounterAddonsConfig--; } -buildUnnamed2184() { +buildUnnamed1938() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2184(core.List<core.String> o) { +checkUnnamed1938(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2185() { +buildUnnamed1939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2185(core.List<core.String> o) { +checkUnnamed1939(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2186() { +buildUnnamed1940() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed2186(core.List<api.NodePool> o) { +checkUnnamed1940(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -126,8 +126,8 @@ o.endpoint = "foo"; o.initialClusterVersion = "foo"; o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed2184(); - o.locations = buildUnnamed2185(); + o.instanceGroupUrls = buildUnnamed1938(); + o.locations = buildUnnamed1939(); o.loggingService = "foo"; o.masterAuth = buildMasterAuth(); o.monitoringService = "foo"; @@ -135,7 +135,7 @@ o.network = "foo"; o.nodeConfig = buildNodeConfig(); o.nodeIpv4CidrSize = 42; - o.nodePools = buildUnnamed2186(); + o.nodePools = buildUnnamed1940(); o.selfLink = "foo"; o.servicesIpv4Cidr = "foo"; o.status = "foo"; @@ -160,8 +160,8 @@ unittest.expect(o.endpoint, unittest.equals('foo')); unittest.expect(o.initialClusterVersion, unittest.equals('foo')); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed2184(o.instanceGroupUrls); - checkUnnamed2185(o.locations); + checkUnnamed1938(o.instanceGroupUrls); + checkUnnamed1939(o.locations); unittest.expect(o.loggingService, unittest.equals('foo')); checkMasterAuth(o.masterAuth); unittest.expect(o.monitoringService, unittest.equals('foo')); @@ -169,7 +169,7 @@ unittest.expect(o.network, unittest.equals('foo')); checkNodeConfig(o.nodeConfig); unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); - checkUnnamed2186(o.nodePools); + checkUnnamed1940(o.nodePools); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -283,27 +283,27 @@ buildCounterHttpLoadBalancing--; } -buildUnnamed2187() { +buildUnnamed1941() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed2187(core.List<api.Cluster> o) { +checkUnnamed1941(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed2188() { +buildUnnamed1942() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2188(core.List<core.String> o) { +checkUnnamed1942(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -314,8 +314,8 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed2187(); - o.missingZones = buildUnnamed2188(); + o.clusters = buildUnnamed1941(); + o.missingZones = buildUnnamed1942(); } buildCounterListClustersResponse--; return o; @@ -324,20 +324,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed2187(o.clusters); - checkUnnamed2188(o.missingZones); + checkUnnamed1941(o.clusters); + checkUnnamed1942(o.missingZones); } buildCounterListClustersResponse--; } -buildUnnamed2189() { +buildUnnamed1943() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed2189(core.List<api.NodePool> o) { +checkUnnamed1943(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -348,7 +348,7 @@ var o = new api.ListNodePoolsResponse(); buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - o.nodePools = buildUnnamed2189(); + o.nodePools = buildUnnamed1943(); } buildCounterListNodePoolsResponse--; return o; @@ -357,32 +357,32 @@ checkListNodePoolsResponse(api.ListNodePoolsResponse o) { buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - checkUnnamed2189(o.nodePools); + checkUnnamed1943(o.nodePools); } buildCounterListNodePoolsResponse--; } -buildUnnamed2190() { +buildUnnamed1944() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2190(core.List<core.String> o) { +checkUnnamed1944(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2191() { +buildUnnamed1945() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2191(core.List<api.Operation> o) { +checkUnnamed1945(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -393,8 +393,8 @@ var o = new api.ListOperationsResponse(); buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - o.missingZones = buildUnnamed2190(); - o.operations = buildUnnamed2191(); + o.missingZones = buildUnnamed1944(); + o.operations = buildUnnamed1945(); } buildCounterListOperationsResponse--; return o; @@ -403,8 +403,8 @@ checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - checkUnnamed2190(o.missingZones); - checkUnnamed2191(o.operations); + checkUnnamed1944(o.missingZones); + checkUnnamed1945(o.operations); } buildCounterListOperationsResponse--; } @@ -436,27 +436,27 @@ buildCounterMasterAuth--; } -buildUnnamed2192() { +buildUnnamed1946() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2192(core.Map<core.String, core.String> o) { +checkUnnamed1946(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2193() { +buildUnnamed1947() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2193(core.List<core.String> o) { +checkUnnamed1947(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -469,8 +469,8 @@ if (buildCounterNodeConfig < 3) { o.diskSizeGb = 42; o.machineType = "foo"; - o.metadata = buildUnnamed2192(); - o.oauthScopes = buildUnnamed2193(); + o.metadata = buildUnnamed1946(); + o.oauthScopes = buildUnnamed1947(); } buildCounterNodeConfig--; return o; @@ -481,20 +481,20 @@ if (buildCounterNodeConfig < 3) { unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed2192(o.metadata); - checkUnnamed2193(o.oauthScopes); + checkUnnamed1946(o.metadata); + checkUnnamed1947(o.oauthScopes); } buildCounterNodeConfig--; } -buildUnnamed2194() { +buildUnnamed1948() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2194(core.List<core.String> o) { +checkUnnamed1948(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -507,7 +507,7 @@ if (buildCounterNodePool < 3) { o.config = buildNodeConfig(); o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed2194(); + o.instanceGroupUrls = buildUnnamed1948(); o.name = "foo"; o.selfLink = "foo"; o.status = "foo"; @@ -523,7 +523,7 @@ if (buildCounterNodePool < 3) { checkNodeConfig(o.config); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed2194(o.instanceGroupUrls); + checkUnnamed1948(o.instanceGroupUrls); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -566,27 +566,27 @@ buildCounterOperation--; } -buildUnnamed2195() { +buildUnnamed1949() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2195(core.List<core.String> o) { +checkUnnamed1949(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2196() { +buildUnnamed1950() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2196(core.List<core.String> o) { +checkUnnamed1950(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -599,8 +599,8 @@ if (buildCounterServerConfig < 3) { o.defaultClusterVersion = "foo"; o.defaultImageFamily = "foo"; - o.validImageFamilies = buildUnnamed2195(); - o.validNodeVersions = buildUnnamed2196(); + o.validImageFamilies = buildUnnamed1949(); + o.validNodeVersions = buildUnnamed1950(); } buildCounterServerConfig--; return o; @@ -611,8 +611,8 @@ if (buildCounterServerConfig < 3) { unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); unittest.expect(o.defaultImageFamily, unittest.equals('foo')); - checkUnnamed2195(o.validImageFamilies); - checkUnnamed2196(o.validNodeVersions); + checkUnnamed1949(o.validImageFamilies); + checkUnnamed1950(o.validNodeVersions); } buildCounterServerConfig--; }
diff --git a/generated/googleapis/test/content/v2_test.dart b/generated/googleapis/test/content/v2_test.dart index 76e7f60..3cf821d 100644 --- a/generated/googleapis/test/content/v2_test.dart +++ b/generated/googleapis/test/content/v2_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed498() { +buildUnnamed513() { var o = new core.List<api.AccountAdwordsLink>(); o.add(buildAccountAdwordsLink()); o.add(buildAccountAdwordsLink()); return o; } -checkUnnamed498(core.List<api.AccountAdwordsLink> o) { +checkUnnamed513(core.List<api.AccountAdwordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountAdwordsLink(o[0]); checkAccountAdwordsLink(o[1]); } -buildUnnamed499() { +buildUnnamed514() { var o = new core.List<api.AccountUser>(); o.add(buildAccountUser()); o.add(buildAccountUser()); return o; } -checkUnnamed499(core.List<api.AccountUser> o) { +checkUnnamed514(core.List<api.AccountUser> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUser(o[0]); checkAccountUser(o[1]); @@ -83,13 +83,13 @@ buildCounterAccount++; if (buildCounterAccount < 3) { o.adultContent = true; - o.adwordsLinks = buildUnnamed498(); + o.adwordsLinks = buildUnnamed513(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; o.reviewsUrl = "foo"; o.sellerId = "foo"; - o.users = buildUnnamed499(); + o.users = buildUnnamed514(); o.websiteUrl = "foo"; } buildCounterAccount--; @@ -100,13 +100,13 @@ buildCounterAccount++; if (buildCounterAccount < 3) { unittest.expect(o.adultContent, unittest.isTrue); - checkUnnamed498(o.adwordsLinks); + checkUnnamed513(o.adwordsLinks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.reviewsUrl, unittest.equals('foo')); unittest.expect(o.sellerId, unittest.equals('foo')); - checkUnnamed499(o.users); + checkUnnamed514(o.users); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterAccount--; @@ -154,53 +154,53 @@ buildCounterAccountIdentifier--; } -buildUnnamed500() { +buildUnnamed515() { var o = new core.List<api.AccountShippingCarrierRate>(); o.add(buildAccountShippingCarrierRate()); o.add(buildAccountShippingCarrierRate()); return o; } -checkUnnamed500(core.List<api.AccountShippingCarrierRate> o) { +checkUnnamed515(core.List<api.AccountShippingCarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingCarrierRate(o[0]); checkAccountShippingCarrierRate(o[1]); } -buildUnnamed501() { +buildUnnamed516() { var o = new core.List<api.AccountShippingLocationGroup>(); o.add(buildAccountShippingLocationGroup()); o.add(buildAccountShippingLocationGroup()); return o; } -checkUnnamed501(core.List<api.AccountShippingLocationGroup> o) { +checkUnnamed516(core.List<api.AccountShippingLocationGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingLocationGroup(o[0]); checkAccountShippingLocationGroup(o[1]); } -buildUnnamed502() { +buildUnnamed517() { var o = new core.List<api.AccountShippingRateTable>(); o.add(buildAccountShippingRateTable()); o.add(buildAccountShippingRateTable()); return o; } -checkUnnamed502(core.List<api.AccountShippingRateTable> o) { +checkUnnamed517(core.List<api.AccountShippingRateTable> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingRateTable(o[0]); checkAccountShippingRateTable(o[1]); } -buildUnnamed503() { +buildUnnamed518() { var o = new core.List<api.AccountShippingShippingService>(); o.add(buildAccountShippingShippingService()); o.add(buildAccountShippingShippingService()); return o; } -checkUnnamed503(core.List<api.AccountShippingShippingService> o) { +checkUnnamed518(core.List<api.AccountShippingShippingService> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingShippingService(o[0]); checkAccountShippingShippingService(o[1]); @@ -212,11 +212,11 @@ buildCounterAccountShipping++; if (buildCounterAccountShipping < 3) { o.accountId = "foo"; - o.carrierRates = buildUnnamed500(); + o.carrierRates = buildUnnamed515(); o.kind = "foo"; - o.locationGroups = buildUnnamed501(); - o.rateTables = buildUnnamed502(); - o.services = buildUnnamed503(); + o.locationGroups = buildUnnamed516(); + o.rateTables = buildUnnamed517(); + o.services = buildUnnamed518(); } buildCounterAccountShipping--; return o; @@ -226,11 +226,11 @@ buildCounterAccountShipping++; if (buildCounterAccountShipping < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed500(o.carrierRates); + checkUnnamed515(o.carrierRates); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed501(o.locationGroups); - checkUnnamed502(o.rateTables); - checkUnnamed503(o.services); + checkUnnamed516(o.locationGroups); + checkUnnamed517(o.rateTables); + checkUnnamed518(o.services); } buildCounterAccountShipping--; } @@ -297,40 +297,40 @@ buildCounterAccountShippingCondition--; } -buildUnnamed504() { +buildUnnamed519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed504(core.List<core.String> o) { +checkUnnamed519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed505() { +buildUnnamed520() { var o = new core.List<api.AccountShippingPostalCodeRange>(); o.add(buildAccountShippingPostalCodeRange()); o.add(buildAccountShippingPostalCodeRange()); return o; } -checkUnnamed505(core.List<api.AccountShippingPostalCodeRange> o) { +checkUnnamed520(core.List<api.AccountShippingPostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingPostalCodeRange(o[0]); checkAccountShippingPostalCodeRange(o[1]); } -buildUnnamed506() { +buildUnnamed521() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed506(core.List<core.String> o) { +checkUnnamed521(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -342,10 +342,10 @@ buildCounterAccountShippingLocationGroup++; if (buildCounterAccountShippingLocationGroup < 3) { o.country = "foo"; - o.locationIds = buildUnnamed504(); + o.locationIds = buildUnnamed519(); o.name = "foo"; - o.postalCodeRanges = buildUnnamed505(); - o.postalCodes = buildUnnamed506(); + o.postalCodeRanges = buildUnnamed520(); + o.postalCodes = buildUnnamed521(); } buildCounterAccountShippingLocationGroup--; return o; @@ -355,10 +355,10 @@ buildCounterAccountShippingLocationGroup++; if (buildCounterAccountShippingLocationGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed504(o.locationIds); + checkUnnamed519(o.locationIds); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed505(o.postalCodeRanges); - checkUnnamed506(o.postalCodes); + checkUnnamed520(o.postalCodeRanges); + checkUnnamed521(o.postalCodes); } buildCounterAccountShippingLocationGroup--; } @@ -384,14 +384,14 @@ buildCounterAccountShippingPostalCodeRange--; } -buildUnnamed507() { +buildUnnamed522() { var o = new core.List<api.AccountShippingRateTableCell>(); o.add(buildAccountShippingRateTableCell()); o.add(buildAccountShippingRateTableCell()); return o; } -checkUnnamed507(core.List<api.AccountShippingRateTableCell> o) { +checkUnnamed522(core.List<api.AccountShippingRateTableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingRateTableCell(o[0]); checkAccountShippingRateTableCell(o[1]); @@ -402,7 +402,7 @@ var o = new api.AccountShippingRateTable(); buildCounterAccountShippingRateTable++; if (buildCounterAccountShippingRateTable < 3) { - o.content = buildUnnamed507(); + o.content = buildUnnamed522(); o.name = "foo"; o.saleCountry = "foo"; } @@ -413,7 +413,7 @@ checkAccountShippingRateTable(api.AccountShippingRateTable o) { buildCounterAccountShippingRateTable++; if (buildCounterAccountShippingRateTable < 3) { - checkUnnamed507(o.content); + checkUnnamed522(o.content); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.saleCountry, unittest.equals('foo')); } @@ -499,14 +499,14 @@ buildCounterAccountShippingShippingServiceCalculationMethod--; } -buildUnnamed508() { +buildUnnamed523() { var o = new core.List<api.AccountShippingShippingServiceCostRule>(); o.add(buildAccountShippingShippingServiceCostRule()); o.add(buildAccountShippingShippingServiceCostRule()); return o; } -checkUnnamed508(core.List<api.AccountShippingShippingServiceCostRule> o) { +checkUnnamed523(core.List<api.AccountShippingShippingServiceCostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingShippingServiceCostRule(o[0]); checkAccountShippingShippingServiceCostRule(o[1]); @@ -518,7 +518,7 @@ buildCounterAccountShippingShippingServiceCostRule++; if (buildCounterAccountShippingShippingServiceCostRule < 3) { o.calculationMethod = buildAccountShippingShippingServiceCalculationMethod(); - o.children = buildUnnamed508(); + o.children = buildUnnamed523(); o.condition = buildAccountShippingCondition(); } buildCounterAccountShippingShippingServiceCostRule--; @@ -529,20 +529,20 @@ buildCounterAccountShippingShippingServiceCostRule++; if (buildCounterAccountShippingShippingServiceCostRule < 3) { checkAccountShippingShippingServiceCalculationMethod(o.calculationMethod); - checkUnnamed508(o.children); + checkUnnamed523(o.children); checkAccountShippingCondition(o.condition); } buildCounterAccountShippingShippingServiceCostRule--; } -buildUnnamed509() { +buildUnnamed524() { var o = new core.List<api.AccountStatusDataQualityIssue>(); o.add(buildAccountStatusDataQualityIssue()); o.add(buildAccountStatusDataQualityIssue()); return o; } -checkUnnamed509(core.List<api.AccountStatusDataQualityIssue> o) { +checkUnnamed524(core.List<api.AccountStatusDataQualityIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusDataQualityIssue(o[0]); checkAccountStatusDataQualityIssue(o[1]); @@ -554,7 +554,7 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { o.accountId = "foo"; - o.dataQualityIssues = buildUnnamed509(); + o.dataQualityIssues = buildUnnamed524(); o.kind = "foo"; } buildCounterAccountStatus--; @@ -565,20 +565,20 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed509(o.dataQualityIssues); + checkUnnamed524(o.dataQualityIssues); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountStatus--; } -buildUnnamed510() { +buildUnnamed525() { var o = new core.List<api.AccountStatusExampleItem>(); o.add(buildAccountStatusExampleItem()); o.add(buildAccountStatusExampleItem()); return o; } -checkUnnamed510(core.List<api.AccountStatusExampleItem> o) { +checkUnnamed525(core.List<api.AccountStatusExampleItem> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusExampleItem(o[0]); checkAccountStatusExampleItem(o[1]); @@ -591,7 +591,7 @@ if (buildCounterAccountStatusDataQualityIssue < 3) { o.country = "foo"; o.displayedValue = "foo"; - o.exampleItems = buildUnnamed510(); + o.exampleItems = buildUnnamed525(); o.id = "foo"; o.lastChecked = "foo"; o.numItems = 42; @@ -607,7 +607,7 @@ if (buildCounterAccountStatusDataQualityIssue < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.displayedValue, unittest.equals('foo')); - checkUnnamed510(o.exampleItems); + checkUnnamed525(o.exampleItems); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.lastChecked, unittest.equals('foo')); unittest.expect(o.numItems, unittest.equals(42)); @@ -644,14 +644,14 @@ buildCounterAccountStatusExampleItem--; } -buildUnnamed511() { +buildUnnamed526() { var o = new core.List<api.AccountTaxTaxRule>(); o.add(buildAccountTaxTaxRule()); o.add(buildAccountTaxTaxRule()); return o; } -checkUnnamed511(core.List<api.AccountTaxTaxRule> o) { +checkUnnamed526(core.List<api.AccountTaxTaxRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTaxTaxRule(o[0]); checkAccountTaxTaxRule(o[1]); @@ -664,7 +664,7 @@ if (buildCounterAccountTax < 3) { o.accountId = "foo"; o.kind = "foo"; - o.rules = buildUnnamed511(); + o.rules = buildUnnamed526(); } buildCounterAccountTax--; return o; @@ -675,7 +675,7 @@ if (buildCounterAccountTax < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed511(o.rules); + checkUnnamed526(o.rules); } buildCounterAccountTax--; } @@ -728,14 +728,14 @@ buildCounterAccountUser--; } -buildUnnamed512() { +buildUnnamed527() { var o = new core.List<api.AccountIdentifier>(); o.add(buildAccountIdentifier()); o.add(buildAccountIdentifier()); return o; } -checkUnnamed512(core.List<api.AccountIdentifier> o) { +checkUnnamed527(core.List<api.AccountIdentifier> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountIdentifier(o[0]); checkAccountIdentifier(o[1]); @@ -746,7 +746,7 @@ var o = new api.AccountsAuthInfoResponse(); buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - o.accountIdentifiers = buildUnnamed512(); + o.accountIdentifiers = buildUnnamed527(); o.kind = "foo"; } buildCounterAccountsAuthInfoResponse--; @@ -756,20 +756,20 @@ checkAccountsAuthInfoResponse(api.AccountsAuthInfoResponse o) { buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - checkUnnamed512(o.accountIdentifiers); + checkUnnamed527(o.accountIdentifiers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsAuthInfoResponse--; } -buildUnnamed513() { +buildUnnamed528() { var o = new core.List<api.AccountsCustomBatchRequestEntry>(); o.add(buildAccountsCustomBatchRequestEntry()); o.add(buildAccountsCustomBatchRequestEntry()); return o; } -checkUnnamed513(core.List<api.AccountsCustomBatchRequestEntry> o) { +checkUnnamed528(core.List<api.AccountsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchRequestEntry(o[0]); checkAccountsCustomBatchRequestEntry(o[1]); @@ -780,7 +780,7 @@ var o = new api.AccountsCustomBatchRequest(); buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - o.entries = buildUnnamed513(); + o.entries = buildUnnamed528(); } buildCounterAccountsCustomBatchRequest--; return o; @@ -789,7 +789,7 @@ checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - checkUnnamed513(o.entries); + checkUnnamed528(o.entries); } buildCounterAccountsCustomBatchRequest--; } @@ -821,14 +821,14 @@ buildCounterAccountsCustomBatchRequestEntry--; } -buildUnnamed514() { +buildUnnamed529() { var o = new core.List<api.AccountsCustomBatchResponseEntry>(); o.add(buildAccountsCustomBatchResponseEntry()); o.add(buildAccountsCustomBatchResponseEntry()); return o; } -checkUnnamed514(core.List<api.AccountsCustomBatchResponseEntry> o) { +checkUnnamed529(core.List<api.AccountsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchResponseEntry(o[0]); checkAccountsCustomBatchResponseEntry(o[1]); @@ -839,7 +839,7 @@ var o = new api.AccountsCustomBatchResponse(); buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - o.entries = buildUnnamed514(); + o.entries = buildUnnamed529(); o.kind = "foo"; } buildCounterAccountsCustomBatchResponse--; @@ -849,7 +849,7 @@ checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - checkUnnamed514(o.entries); + checkUnnamed529(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsCustomBatchResponse--; @@ -880,14 +880,14 @@ buildCounterAccountsCustomBatchResponseEntry--; } -buildUnnamed515() { +buildUnnamed530() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed515(core.List<api.Account> o) { +checkUnnamed530(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -900,7 +900,7 @@ if (buildCounterAccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed515(); + o.resources = buildUnnamed530(); } buildCounterAccountsListResponse--; return o; @@ -911,19 +911,19 @@ if (buildCounterAccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed515(o.resources); + checkUnnamed530(o.resources); } buildCounterAccountsListResponse--; } -buildUnnamed516() { +buildUnnamed531() { var o = new core.List<api.AccountshippingCustomBatchRequestEntry>(); o.add(buildAccountshippingCustomBatchRequestEntry()); o.add(buildAccountshippingCustomBatchRequestEntry()); return o; } -checkUnnamed516(core.List<api.AccountshippingCustomBatchRequestEntry> o) { +checkUnnamed531(core.List<api.AccountshippingCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountshippingCustomBatchRequestEntry(o[0]); checkAccountshippingCustomBatchRequestEntry(o[1]); @@ -934,7 +934,7 @@ var o = new api.AccountshippingCustomBatchRequest(); buildCounterAccountshippingCustomBatchRequest++; if (buildCounterAccountshippingCustomBatchRequest < 3) { - o.entries = buildUnnamed516(); + o.entries = buildUnnamed531(); } buildCounterAccountshippingCustomBatchRequest--; return o; @@ -943,7 +943,7 @@ checkAccountshippingCustomBatchRequest(api.AccountshippingCustomBatchRequest o) { buildCounterAccountshippingCustomBatchRequest++; if (buildCounterAccountshippingCustomBatchRequest < 3) { - checkUnnamed516(o.entries); + checkUnnamed531(o.entries); } buildCounterAccountshippingCustomBatchRequest--; } @@ -975,14 +975,14 @@ buildCounterAccountshippingCustomBatchRequestEntry--; } -buildUnnamed517() { +buildUnnamed532() { var o = new core.List<api.AccountshippingCustomBatchResponseEntry>(); o.add(buildAccountshippingCustomBatchResponseEntry()); o.add(buildAccountshippingCustomBatchResponseEntry()); return o; } -checkUnnamed517(core.List<api.AccountshippingCustomBatchResponseEntry> o) { +checkUnnamed532(core.List<api.AccountshippingCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountshippingCustomBatchResponseEntry(o[0]); checkAccountshippingCustomBatchResponseEntry(o[1]); @@ -993,7 +993,7 @@ var o = new api.AccountshippingCustomBatchResponse(); buildCounterAccountshippingCustomBatchResponse++; if (buildCounterAccountshippingCustomBatchResponse < 3) { - o.entries = buildUnnamed517(); + o.entries = buildUnnamed532(); o.kind = "foo"; } buildCounterAccountshippingCustomBatchResponse--; @@ -1003,7 +1003,7 @@ checkAccountshippingCustomBatchResponse(api.AccountshippingCustomBatchResponse o) { buildCounterAccountshippingCustomBatchResponse++; if (buildCounterAccountshippingCustomBatchResponse < 3) { - checkUnnamed517(o.entries); + checkUnnamed532(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountshippingCustomBatchResponse--; @@ -1034,14 +1034,14 @@ buildCounterAccountshippingCustomBatchResponseEntry--; } -buildUnnamed518() { +buildUnnamed533() { var o = new core.List<api.AccountShipping>(); o.add(buildAccountShipping()); o.add(buildAccountShipping()); return o; } -checkUnnamed518(core.List<api.AccountShipping> o) { +checkUnnamed533(core.List<api.AccountShipping> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShipping(o[0]); checkAccountShipping(o[1]); @@ -1054,7 +1054,7 @@ if (buildCounterAccountshippingListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed518(); + o.resources = buildUnnamed533(); } buildCounterAccountshippingListResponse--; return o; @@ -1065,19 +1065,19 @@ if (buildCounterAccountshippingListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed518(o.resources); + checkUnnamed533(o.resources); } buildCounterAccountshippingListResponse--; } -buildUnnamed519() { +buildUnnamed534() { var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); o.add(buildAccountstatusesCustomBatchRequestEntry()); o.add(buildAccountstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed519(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { +checkUnnamed534(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchRequestEntry(o[0]); checkAccountstatusesCustomBatchRequestEntry(o[1]); @@ -1088,7 +1088,7 @@ var o = new api.AccountstatusesCustomBatchRequest(); buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed519(); + o.entries = buildUnnamed534(); } buildCounterAccountstatusesCustomBatchRequest--; return o; @@ -1097,7 +1097,7 @@ checkAccountstatusesCustomBatchRequest(api.AccountstatusesCustomBatchRequest o) { buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - checkUnnamed519(o.entries); + checkUnnamed534(o.entries); } buildCounterAccountstatusesCustomBatchRequest--; } @@ -1127,14 +1127,14 @@ buildCounterAccountstatusesCustomBatchRequestEntry--; } -buildUnnamed520() { +buildUnnamed535() { var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); o.add(buildAccountstatusesCustomBatchResponseEntry()); o.add(buildAccountstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed520(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { +checkUnnamed535(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchResponseEntry(o[0]); checkAccountstatusesCustomBatchResponseEntry(o[1]); @@ -1145,7 +1145,7 @@ var o = new api.AccountstatusesCustomBatchResponse(); buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed520(); + o.entries = buildUnnamed535(); o.kind = "foo"; } buildCounterAccountstatusesCustomBatchResponse--; @@ -1155,7 +1155,7 @@ checkAccountstatusesCustomBatchResponse(api.AccountstatusesCustomBatchResponse o) { buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - checkUnnamed520(o.entries); + checkUnnamed535(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountstatusesCustomBatchResponse--; @@ -1184,14 +1184,14 @@ buildCounterAccountstatusesCustomBatchResponseEntry--; } -buildUnnamed521() { +buildUnnamed536() { var o = new core.List<api.AccountStatus>(); o.add(buildAccountStatus()); o.add(buildAccountStatus()); return o; } -checkUnnamed521(core.List<api.AccountStatus> o) { +checkUnnamed536(core.List<api.AccountStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatus(o[0]); checkAccountStatus(o[1]); @@ -1204,7 +1204,7 @@ if (buildCounterAccountstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed521(); + o.resources = buildUnnamed536(); } buildCounterAccountstatusesListResponse--; return o; @@ -1215,19 +1215,19 @@ if (buildCounterAccountstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed521(o.resources); + checkUnnamed536(o.resources); } buildCounterAccountstatusesListResponse--; } -buildUnnamed522() { +buildUnnamed537() { var o = new core.List<api.AccounttaxCustomBatchRequestEntry>(); o.add(buildAccounttaxCustomBatchRequestEntry()); o.add(buildAccounttaxCustomBatchRequestEntry()); return o; } -checkUnnamed522(core.List<api.AccounttaxCustomBatchRequestEntry> o) { +checkUnnamed537(core.List<api.AccounttaxCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchRequestEntry(o[0]); checkAccounttaxCustomBatchRequestEntry(o[1]); @@ -1238,7 +1238,7 @@ var o = new api.AccounttaxCustomBatchRequest(); buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - o.entries = buildUnnamed522(); + o.entries = buildUnnamed537(); } buildCounterAccounttaxCustomBatchRequest--; return o; @@ -1247,7 +1247,7 @@ checkAccounttaxCustomBatchRequest(api.AccounttaxCustomBatchRequest o) { buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - checkUnnamed522(o.entries); + checkUnnamed537(o.entries); } buildCounterAccounttaxCustomBatchRequest--; } @@ -1279,14 +1279,14 @@ buildCounterAccounttaxCustomBatchRequestEntry--; } -buildUnnamed523() { +buildUnnamed538() { var o = new core.List<api.AccounttaxCustomBatchResponseEntry>(); o.add(buildAccounttaxCustomBatchResponseEntry()); o.add(buildAccounttaxCustomBatchResponseEntry()); return o; } -checkUnnamed523(core.List<api.AccounttaxCustomBatchResponseEntry> o) { +checkUnnamed538(core.List<api.AccounttaxCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchResponseEntry(o[0]); checkAccounttaxCustomBatchResponseEntry(o[1]); @@ -1297,7 +1297,7 @@ var o = new api.AccounttaxCustomBatchResponse(); buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - o.entries = buildUnnamed523(); + o.entries = buildUnnamed538(); o.kind = "foo"; } buildCounterAccounttaxCustomBatchResponse--; @@ -1307,7 +1307,7 @@ checkAccounttaxCustomBatchResponse(api.AccounttaxCustomBatchResponse o) { buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - checkUnnamed523(o.entries); + checkUnnamed538(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounttaxCustomBatchResponse--; @@ -1338,14 +1338,14 @@ buildCounterAccounttaxCustomBatchResponseEntry--; } -buildUnnamed524() { +buildUnnamed539() { var o = new core.List<api.AccountTax>(); o.add(buildAccountTax()); o.add(buildAccountTax()); return o; } -checkUnnamed524(core.List<api.AccountTax> o) { +checkUnnamed539(core.List<api.AccountTax> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTax(o[0]); checkAccountTax(o[1]); @@ -1358,7 +1358,7 @@ if (buildCounterAccounttaxListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed524(); + o.resources = buildUnnamed539(); } buildCounterAccounttaxListResponse--; return o; @@ -1369,7 +1369,7 @@ if (buildCounterAccounttaxListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed524(o.resources); + checkUnnamed539(o.resources); } buildCounterAccounttaxListResponse--; } @@ -1403,14 +1403,14 @@ buildCounterCarrierRate--; } -buildUnnamed525() { +buildUnnamed540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed525(core.List<core.String> o) { +checkUnnamed540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1423,7 +1423,7 @@ if (buildCounterCarriersCarrier < 3) { o.country = "foo"; o.name = "foo"; - o.services = buildUnnamed525(); + o.services = buildUnnamed540(); } buildCounterCarriersCarrier--; return o; @@ -1434,19 +1434,19 @@ if (buildCounterCarriersCarrier < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed525(o.services); + checkUnnamed540(o.services); } buildCounterCarriersCarrier--; } -buildUnnamed526() { +buildUnnamed541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed526(core.List<core.String> o) { +checkUnnamed541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1464,7 +1464,7 @@ o.fileName = "foo"; o.format = buildDatafeedFormat(); o.id = "foo"; - o.intendedDestinations = buildUnnamed526(); + o.intendedDestinations = buildUnnamed541(); o.kind = "foo"; o.name = "foo"; o.targetCountry = "foo"; @@ -1483,7 +1483,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); checkDatafeedFormat(o.format); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed526(o.intendedDestinations); + checkUnnamed541(o.intendedDestinations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); @@ -1547,27 +1547,27 @@ buildCounterDatafeedFormat--; } -buildUnnamed527() { +buildUnnamed542() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed527(core.List<api.DatafeedStatusError> o) { +checkUnnamed542(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); } -buildUnnamed528() { +buildUnnamed543() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed528(core.List<api.DatafeedStatusError> o) { +checkUnnamed543(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); @@ -1579,13 +1579,13 @@ buildCounterDatafeedStatus++; if (buildCounterDatafeedStatus < 3) { o.datafeedId = "foo"; - o.errors = buildUnnamed527(); + o.errors = buildUnnamed542(); o.itemsTotal = "foo"; o.itemsValid = "foo"; o.kind = "foo"; o.lastUploadDate = "foo"; o.processingStatus = "foo"; - o.warnings = buildUnnamed528(); + o.warnings = buildUnnamed543(); } buildCounterDatafeedStatus--; return o; @@ -1595,25 +1595,25 @@ buildCounterDatafeedStatus++; if (buildCounterDatafeedStatus < 3) { unittest.expect(o.datafeedId, unittest.equals('foo')); - checkUnnamed527(o.errors); + checkUnnamed542(o.errors); unittest.expect(o.itemsTotal, unittest.equals('foo')); unittest.expect(o.itemsValid, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUploadDate, unittest.equals('foo')); unittest.expect(o.processingStatus, unittest.equals('foo')); - checkUnnamed528(o.warnings); + checkUnnamed543(o.warnings); } buildCounterDatafeedStatus--; } -buildUnnamed529() { +buildUnnamed544() { var o = new core.List<api.DatafeedStatusExample>(); o.add(buildDatafeedStatusExample()); o.add(buildDatafeedStatusExample()); return o; } -checkUnnamed529(core.List<api.DatafeedStatusExample> o) { +checkUnnamed544(core.List<api.DatafeedStatusExample> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusExample(o[0]); checkDatafeedStatusExample(o[1]); @@ -1626,7 +1626,7 @@ if (buildCounterDatafeedStatusError < 3) { o.code = "foo"; o.count = "foo"; - o.examples = buildUnnamed529(); + o.examples = buildUnnamed544(); o.message = "foo"; } buildCounterDatafeedStatusError--; @@ -1638,7 +1638,7 @@ if (buildCounterDatafeedStatusError < 3) { unittest.expect(o.code, unittest.equals('foo')); unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed529(o.examples); + checkUnnamed544(o.examples); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDatafeedStatusError--; @@ -1667,14 +1667,14 @@ buildCounterDatafeedStatusExample--; } -buildUnnamed530() { +buildUnnamed545() { var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); o.add(buildDatafeedsCustomBatchRequestEntry()); o.add(buildDatafeedsCustomBatchRequestEntry()); return o; } -checkUnnamed530(core.List<api.DatafeedsCustomBatchRequestEntry> o) { +checkUnnamed545(core.List<api.DatafeedsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchRequestEntry(o[0]); checkDatafeedsCustomBatchRequestEntry(o[1]); @@ -1685,7 +1685,7 @@ var o = new api.DatafeedsCustomBatchRequest(); buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - o.entries = buildUnnamed530(); + o.entries = buildUnnamed545(); } buildCounterDatafeedsCustomBatchRequest--; return o; @@ -1694,7 +1694,7 @@ checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - checkUnnamed530(o.entries); + checkUnnamed545(o.entries); } buildCounterDatafeedsCustomBatchRequest--; } @@ -1726,14 +1726,14 @@ buildCounterDatafeedsCustomBatchRequestEntry--; } -buildUnnamed531() { +buildUnnamed546() { var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); o.add(buildDatafeedsCustomBatchResponseEntry()); o.add(buildDatafeedsCustomBatchResponseEntry()); return o; } -checkUnnamed531(core.List<api.DatafeedsCustomBatchResponseEntry> o) { +checkUnnamed546(core.List<api.DatafeedsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchResponseEntry(o[0]); checkDatafeedsCustomBatchResponseEntry(o[1]); @@ -1744,7 +1744,7 @@ var o = new api.DatafeedsCustomBatchResponse(); buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - o.entries = buildUnnamed531(); + o.entries = buildUnnamed546(); o.kind = "foo"; } buildCounterDatafeedsCustomBatchResponse--; @@ -1754,7 +1754,7 @@ checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - checkUnnamed531(o.entries); + checkUnnamed546(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedsCustomBatchResponse--; @@ -1783,14 +1783,14 @@ buildCounterDatafeedsCustomBatchResponseEntry--; } -buildUnnamed532() { +buildUnnamed547() { var o = new core.List<api.Datafeed>(); o.add(buildDatafeed()); o.add(buildDatafeed()); return o; } -checkUnnamed532(core.List<api.Datafeed> o) { +checkUnnamed547(core.List<api.Datafeed> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeed(o[0]); checkDatafeed(o[1]); @@ -1803,7 +1803,7 @@ if (buildCounterDatafeedsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed532(); + o.resources = buildUnnamed547(); } buildCounterDatafeedsListResponse--; return o; @@ -1814,19 +1814,19 @@ if (buildCounterDatafeedsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed532(o.resources); + checkUnnamed547(o.resources); } buildCounterDatafeedsListResponse--; } -buildUnnamed533() { +buildUnnamed548() { var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed533(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { +checkUnnamed548(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchRequestEntry(o[0]); checkDatafeedstatusesCustomBatchRequestEntry(o[1]); @@ -1837,7 +1837,7 @@ var o = new api.DatafeedstatusesCustomBatchRequest(); buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed533(); + o.entries = buildUnnamed548(); } buildCounterDatafeedstatusesCustomBatchRequest--; return o; @@ -1846,7 +1846,7 @@ checkDatafeedstatusesCustomBatchRequest(api.DatafeedstatusesCustomBatchRequest o) { buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - checkUnnamed533(o.entries); + checkUnnamed548(o.entries); } buildCounterDatafeedstatusesCustomBatchRequest--; } @@ -1876,14 +1876,14 @@ buildCounterDatafeedstatusesCustomBatchRequestEntry--; } -buildUnnamed534() { +buildUnnamed549() { var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed534(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { +checkUnnamed549(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchResponseEntry(o[0]); checkDatafeedstatusesCustomBatchResponseEntry(o[1]); @@ -1894,7 +1894,7 @@ var o = new api.DatafeedstatusesCustomBatchResponse(); buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed534(); + o.entries = buildUnnamed549(); o.kind = "foo"; } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1904,7 +1904,7 @@ checkDatafeedstatusesCustomBatchResponse(api.DatafeedstatusesCustomBatchResponse o) { buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - checkUnnamed534(o.entries); + checkUnnamed549(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1933,14 +1933,14 @@ buildCounterDatafeedstatusesCustomBatchResponseEntry--; } -buildUnnamed535() { +buildUnnamed550() { var o = new core.List<api.DatafeedStatus>(); o.add(buildDatafeedStatus()); o.add(buildDatafeedStatus()); return o; } -checkUnnamed535(core.List<api.DatafeedStatus> o) { +checkUnnamed550(core.List<api.DatafeedStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatus(o[0]); checkDatafeedStatus(o[1]); @@ -1953,7 +1953,7 @@ if (buildCounterDatafeedstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed535(); + o.resources = buildUnnamed550(); } buildCounterDatafeedstatusesListResponse--; return o; @@ -1964,7 +1964,7 @@ if (buildCounterDatafeedstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed535(o.resources); + checkUnnamed550(o.resources); } buildCounterDatafeedstatusesListResponse--; } @@ -2013,14 +2013,14 @@ buildCounterError--; } -buildUnnamed536() { +buildUnnamed551() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed536(core.List<api.Error> o) { +checkUnnamed551(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -2032,7 +2032,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = 42; - o.errors = buildUnnamed536(); + o.errors = buildUnnamed551(); o.message = "foo"; } buildCounterErrors--; @@ -2043,72 +2043,72 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed536(o.errors); + checkUnnamed551(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed537() { +buildUnnamed552() { var o = new core.List<api.LocationIdSet>(); o.add(buildLocationIdSet()); o.add(buildLocationIdSet()); return o; } -checkUnnamed537(core.List<api.LocationIdSet> o) { +checkUnnamed552(core.List<api.LocationIdSet> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationIdSet(o[0]); checkLocationIdSet(o[1]); } -buildUnnamed538() { +buildUnnamed553() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed538(core.List<core.String> o) { +checkUnnamed553(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed539() { +buildUnnamed554() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed539(core.List<core.String> o) { +checkUnnamed554(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed540() { +buildUnnamed555() { var o = new core.List<api.Price>(); o.add(buildPrice()); o.add(buildPrice()); return o; } -checkUnnamed540(core.List<api.Price> o) { +checkUnnamed555(core.List<api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o[0]); checkPrice(o[1]); } -buildUnnamed541() { +buildUnnamed556() { var o = new core.List<api.Weight>(); o.add(buildWeight()); o.add(buildWeight()); return o; } -checkUnnamed541(core.List<api.Weight> o) { +checkUnnamed556(core.List<api.Weight> o) { unittest.expect(o, unittest.hasLength(2)); checkWeight(o[0]); checkWeight(o[1]); @@ -2119,11 +2119,11 @@ var o = new api.Headers(); buildCounterHeaders++; if (buildCounterHeaders < 3) { - o.locations = buildUnnamed537(); - o.numberOfItems = buildUnnamed538(); - o.postalCodeGroupNames = buildUnnamed539(); - o.prices = buildUnnamed540(); - o.weights = buildUnnamed541(); + o.locations = buildUnnamed552(); + o.numberOfItems = buildUnnamed553(); + o.postalCodeGroupNames = buildUnnamed554(); + o.prices = buildUnnamed555(); + o.weights = buildUnnamed556(); } buildCounterHeaders--; return o; @@ -2132,11 +2132,11 @@ checkHeaders(api.Headers o) { buildCounterHeaders++; if (buildCounterHeaders < 3) { - checkUnnamed537(o.locations); - checkUnnamed538(o.numberOfItems); - checkUnnamed539(o.postalCodeGroupNames); - checkUnnamed540(o.prices); - checkUnnamed541(o.weights); + checkUnnamed552(o.locations); + checkUnnamed553(o.numberOfItems); + checkUnnamed554(o.postalCodeGroupNames); + checkUnnamed555(o.prices); + checkUnnamed556(o.weights); } buildCounterHeaders--; } @@ -2171,6 +2171,7 @@ o.installment = buildInstallment(); o.kind = "foo"; o.loyaltyPoints = buildLoyaltyPoints(); + o.pickup = buildInventoryPickup(); o.price = buildPrice(); o.quantity = 42; o.salePrice = buildPrice(); @@ -2188,6 +2189,7 @@ checkInstallment(o.installment); unittest.expect(o.kind, unittest.equals('foo')); checkLoyaltyPoints(o.loyaltyPoints); + checkInventoryPickup(o.pickup); checkPrice(o.price); unittest.expect(o.quantity, unittest.equals(42)); checkPrice(o.salePrice); @@ -2197,14 +2199,14 @@ buildCounterInventory--; } -buildUnnamed542() { +buildUnnamed557() { var o = new core.List<api.InventoryCustomBatchRequestEntry>(); o.add(buildInventoryCustomBatchRequestEntry()); o.add(buildInventoryCustomBatchRequestEntry()); return o; } -checkUnnamed542(core.List<api.InventoryCustomBatchRequestEntry> o) { +checkUnnamed557(core.List<api.InventoryCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchRequestEntry(o[0]); checkInventoryCustomBatchRequestEntry(o[1]); @@ -2215,7 +2217,7 @@ var o = new api.InventoryCustomBatchRequest(); buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - o.entries = buildUnnamed542(); + o.entries = buildUnnamed557(); } buildCounterInventoryCustomBatchRequest--; return o; @@ -2224,7 +2226,7 @@ checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) { buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - checkUnnamed542(o.entries); + checkUnnamed557(o.entries); } buildCounterInventoryCustomBatchRequest--; } @@ -2256,14 +2258,14 @@ buildCounterInventoryCustomBatchRequestEntry--; } -buildUnnamed543() { +buildUnnamed558() { var o = new core.List<api.InventoryCustomBatchResponseEntry>(); o.add(buildInventoryCustomBatchResponseEntry()); o.add(buildInventoryCustomBatchResponseEntry()); return o; } -checkUnnamed543(core.List<api.InventoryCustomBatchResponseEntry> o) { +checkUnnamed558(core.List<api.InventoryCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchResponseEntry(o[0]); checkInventoryCustomBatchResponseEntry(o[1]); @@ -2274,7 +2276,7 @@ var o = new api.InventoryCustomBatchResponse(); buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - o.entries = buildUnnamed543(); + o.entries = buildUnnamed558(); o.kind = "foo"; } buildCounterInventoryCustomBatchResponse--; @@ -2284,7 +2286,7 @@ checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) { buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - checkUnnamed543(o.entries); + checkUnnamed558(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInventoryCustomBatchResponse--; @@ -2313,6 +2315,27 @@ buildCounterInventoryCustomBatchResponseEntry--; } +core.int buildCounterInventoryPickup = 0; +buildInventoryPickup() { + var o = new api.InventoryPickup(); + buildCounterInventoryPickup++; + if (buildCounterInventoryPickup < 3) { + o.pickupMethod = "foo"; + o.pickupSla = "foo"; + } + buildCounterInventoryPickup--; + return o; +} + +checkInventoryPickup(api.InventoryPickup o) { + buildCounterInventoryPickup++; + if (buildCounterInventoryPickup < 3) { + unittest.expect(o.pickupMethod, unittest.equals('foo')); + unittest.expect(o.pickupSla, unittest.equals('foo')); + } + buildCounterInventoryPickup--; +} + core.int buildCounterInventorySetRequest = 0; buildInventorySetRequest() { var o = new api.InventorySetRequest(); @@ -2321,6 +2344,7 @@ o.availability = "foo"; o.installment = buildInstallment(); o.loyaltyPoints = buildLoyaltyPoints(); + o.pickup = buildInventoryPickup(); o.price = buildPrice(); o.quantity = 42; o.salePrice = buildPrice(); @@ -2337,6 +2361,7 @@ unittest.expect(o.availability, unittest.equals('foo')); checkInstallment(o.installment); checkLoyaltyPoints(o.loyaltyPoints); + checkInventoryPickup(o.pickup); checkPrice(o.price); unittest.expect(o.quantity, unittest.equals(42)); checkPrice(o.salePrice); @@ -2365,14 +2390,14 @@ buildCounterInventorySetResponse--; } -buildUnnamed544() { +buildUnnamed559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed544(core.List<core.String> o) { +checkUnnamed559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2383,7 +2408,7 @@ var o = new api.LocationIdSet(); buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - o.locationIds = buildUnnamed544(); + o.locationIds = buildUnnamed559(); } buildCounterLocationIdSet--; return o; @@ -2392,7 +2417,7 @@ checkLocationIdSet(api.LocationIdSet o) { buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - checkUnnamed544(o.locationIds); + checkUnnamed559(o.locationIds); } buildCounterLocationIdSet--; } @@ -2420,53 +2445,53 @@ buildCounterLoyaltyPoints--; } -buildUnnamed545() { +buildUnnamed560() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed545(core.List<api.OrderLineItem> o) { +checkUnnamed560(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed546() { +buildUnnamed561() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed546(core.List<api.OrderPromotion> o) { +checkUnnamed561(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed547() { +buildUnnamed562() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed547(core.List<api.OrderRefund> o) { +checkUnnamed562(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed548() { +buildUnnamed563() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed548(core.List<api.OrderShipment> o) { +checkUnnamed563(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -2478,20 +2503,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { o.acknowledged = true; + o.channelType = "foo"; o.customer = buildOrderCustomer(); o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed545(); + o.lineItems = buildUnnamed560(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed546(); - o.refunds = buildUnnamed547(); - o.shipments = buildUnnamed548(); + o.promotions = buildUnnamed561(); + o.refunds = buildUnnamed562(); + o.shipments = buildUnnamed563(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -2505,20 +2531,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { unittest.expect(o.acknowledged, unittest.isTrue); + unittest.expect(o.channelType, unittest.equals('foo')); checkOrderCustomer(o.customer); checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed545(o.lineItems); + checkUnnamed560(o.lineItems); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.merchantOrderId, unittest.equals('foo')); checkPrice(o.netAmount); checkOrderPaymentMethod(o.paymentMethod); unittest.expect(o.paymentStatus, unittest.equals('foo')); unittest.expect(o.placedDate, unittest.equals('foo')); - checkUnnamed546(o.promotions); - checkUnnamed547(o.refunds); - checkUnnamed548(o.shipments); + checkUnnamed561(o.promotions); + checkUnnamed562(o.refunds); + checkUnnamed563(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -2527,27 +2554,27 @@ buildCounterOrder--; } -buildUnnamed549() { +buildUnnamed564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed549(core.List<core.String> o) { +checkUnnamed564(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed550() { +buildUnnamed565() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed550(core.List<core.String> o) { +checkUnnamed565(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2559,13 +2586,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed549(); + o.fullAddress = buildUnnamed564(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed550(); + o.streetAddress = buildUnnamed565(); } buildCounterOrderAddress--; return o; @@ -2575,13 +2602,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed549(o.fullAddress); + checkUnnamed564(o.fullAddress); unittest.expect(o.isPostOfficeBox, unittest.isTrue); unittest.expect(o.locality, unittest.equals('foo')); unittest.expect(o.postalCode, unittest.equals('foo')); unittest.expect(o.recipientName, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed550(o.streetAddress); + checkUnnamed565(o.streetAddress); } buildCounterOrderAddress--; } @@ -2657,27 +2684,27 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed551() { +buildUnnamed566() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed551(core.List<api.OrderCancellation> o) { +checkUnnamed566(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed552() { +buildUnnamed567() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed552(core.List<api.OrderReturn> o) { +checkUnnamed567(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -2688,7 +2715,7 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.cancellations = buildUnnamed551(); + o.cancellations = buildUnnamed566(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -2699,7 +2726,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed552(); + o.returns = buildUnnamed567(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -2710,7 +2737,7 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed551(o.cancellations); + checkUnnamed566(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -2721,21 +2748,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed552(o.returns); + checkUnnamed567(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed553() { +buildUnnamed568() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed553(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed568(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -2760,7 +2787,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed553(); + o.variantAttributes = buildUnnamed568(); } buildCounterOrderLineItemProduct--; return o; @@ -2783,7 +2810,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed553(o.variantAttributes); + checkUnnamed568(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -2909,14 +2936,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed554() { +buildUnnamed569() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed554(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed569(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -2927,7 +2954,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed554(); + o.benefits = buildUnnamed569(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -2942,7 +2969,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed554(o.benefits); + checkUnnamed569(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -2953,14 +2980,14 @@ buildCounterOrderPromotion--; } -buildUnnamed555() { +buildUnnamed570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed555(core.List<core.String> o) { +checkUnnamed570(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2972,7 +2999,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed555(); + o.offerIds = buildUnnamed570(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -2985,7 +3012,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed555(o.offerIds); + checkUnnamed570(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -3047,14 +3074,14 @@ buildCounterOrderReturn--; } -buildUnnamed556() { +buildUnnamed571() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed556(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed571(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3069,7 +3096,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed556(); + o.lineItems = buildUnnamed571(); o.status = "foo"; o.trackingId = "foo"; } @@ -3084,7 +3111,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed556(o.lineItems); + checkUnnamed571(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -3307,14 +3334,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed557() { +buildUnnamed572() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed557(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed572(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -3325,7 +3352,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed557(); + o.entries = buildUnnamed572(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -3334,7 +3361,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed557(o.entries); + checkUnnamed572(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -3476,14 +3503,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; } -buildUnnamed558() { +buildUnnamed573() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed558(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed573(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3495,7 +3522,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed558(); + o.lineItems = buildUnnamed573(); o.shipmentId = "foo"; o.trackingId = "foo"; } @@ -3507,7 +3534,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed558(o.lineItems); + checkUnnamed573(o.lineItems); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -3539,14 +3566,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed559() { +buildUnnamed574() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed559(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed574(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -3557,7 +3584,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed559(); + o.entries = buildUnnamed574(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -3567,7 +3594,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed559(o.entries); + checkUnnamed574(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -3642,14 +3669,14 @@ buildCounterOrdersGetTestOrderTemplateResponse--; } -buildUnnamed560() { +buildUnnamed575() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed560(core.List<api.Order> o) { +checkUnnamed575(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -3662,7 +3689,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed560(); + o.resources = buildUnnamed575(); } buildCounterOrdersListResponse--; return o; @@ -3673,7 +3700,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed560(o.resources); + checkUnnamed575(o.resources); } buildCounterOrdersListResponse--; } @@ -3772,14 +3799,14 @@ buildCounterOrdersReturnLineItemResponse--; } -buildUnnamed561() { +buildUnnamed576() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed561(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed576(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3791,7 +3818,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed561(); + o.lineItems = buildUnnamed576(); o.operationId = "foo"; o.shipmentId = "foo"; o.trackingId = "foo"; @@ -3804,7 +3831,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed561(o.lineItems); + checkUnnamed576(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); @@ -3923,14 +3950,14 @@ buildCounterOrdersUpdateShipmentResponse--; } -buildUnnamed562() { +buildUnnamed577() { var o = new core.List<api.PostalCodeRange>(); o.add(buildPostalCodeRange()); o.add(buildPostalCodeRange()); return o; } -checkUnnamed562(core.List<api.PostalCodeRange> o) { +checkUnnamed577(core.List<api.PostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeRange(o[0]); checkPostalCodeRange(o[1]); @@ -3943,7 +3970,7 @@ if (buildCounterPostalCodeGroup < 3) { o.country = "foo"; o.name = "foo"; - o.postalCodeRanges = buildUnnamed562(); + o.postalCodeRanges = buildUnnamed577(); } buildCounterPostalCodeGroup--; return o; @@ -3954,7 +3981,7 @@ if (buildCounterPostalCodeGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed562(o.postalCodeRanges); + checkUnnamed577(o.postalCodeRanges); } buildCounterPostalCodeGroup--; } @@ -4001,183 +4028,183 @@ buildCounterPrice--; } -buildUnnamed563() { +buildUnnamed578() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed563(core.List<core.String> o) { +checkUnnamed578(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed564() { +buildUnnamed579() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed564(core.List<core.String> o) { +checkUnnamed579(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed565() { +buildUnnamed580() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed565(core.List<core.String> o) { +checkUnnamed580(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed566() { +buildUnnamed581() { var o = new core.List<api.ProductAspect>(); o.add(buildProductAspect()); o.add(buildProductAspect()); return o; } -checkUnnamed566(core.List<api.ProductAspect> o) { +checkUnnamed581(core.List<api.ProductAspect> o) { unittest.expect(o, unittest.hasLength(2)); checkProductAspect(o[0]); checkProductAspect(o[1]); } -buildUnnamed567() { +buildUnnamed582() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed567(core.List<api.ProductCustomAttribute> o) { +checkUnnamed582(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); } -buildUnnamed568() { +buildUnnamed583() { var o = new core.List<api.ProductCustomGroup>(); o.add(buildProductCustomGroup()); o.add(buildProductCustomGroup()); return o; } -checkUnnamed568(core.List<api.ProductCustomGroup> o) { +checkUnnamed583(core.List<api.ProductCustomGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomGroup(o[0]); checkProductCustomGroup(o[1]); } -buildUnnamed569() { +buildUnnamed584() { var o = new core.List<api.ProductDestination>(); o.add(buildProductDestination()); o.add(buildProductDestination()); return o; } -checkUnnamed569(core.List<api.ProductDestination> o) { +checkUnnamed584(core.List<api.ProductDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDestination(o[0]); checkProductDestination(o[1]); } -buildUnnamed570() { +buildUnnamed585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed570(core.List<core.String> o) { +checkUnnamed585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed571() { +buildUnnamed586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed571(core.List<core.String> o) { +checkUnnamed586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed572() { +buildUnnamed587() { var o = new core.List<api.ProductShipping>(); o.add(buildProductShipping()); o.add(buildProductShipping()); return o; } -checkUnnamed572(core.List<api.ProductShipping> o) { +checkUnnamed587(core.List<api.ProductShipping> o) { unittest.expect(o, unittest.hasLength(2)); checkProductShipping(o[0]); checkProductShipping(o[1]); } -buildUnnamed573() { +buildUnnamed588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed573(core.List<core.String> o) { +checkUnnamed588(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed574() { +buildUnnamed589() { var o = new core.List<api.ProductTax>(); o.add(buildProductTax()); o.add(buildProductTax()); return o; } -checkUnnamed574(core.List<api.ProductTax> o) { +checkUnnamed589(core.List<api.ProductTax> o) { unittest.expect(o, unittest.hasLength(2)); checkProductTax(o[0]); checkProductTax(o[1]); } -buildUnnamed575() { +buildUnnamed590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed575(core.List<core.String> o) { +checkUnnamed590(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed576() { +buildUnnamed591() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed576(core.List<api.Error> o) { +checkUnnamed591(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -4188,14 +4215,14 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.additionalImageLinks = buildUnnamed563(); - o.additionalProductTypes = buildUnnamed564(); + o.additionalImageLinks = buildUnnamed578(); + o.additionalProductTypes = buildUnnamed579(); o.adult = true; o.adwordsGrouping = "foo"; - o.adwordsLabels = buildUnnamed565(); + o.adwordsLabels = buildUnnamed580(); o.adwordsRedirect = "foo"; o.ageGroup = "foo"; - o.aspects = buildUnnamed566(); + o.aspects = buildUnnamed581(); o.availability = "foo"; o.availabilityDate = "foo"; o.brand = "foo"; @@ -4203,18 +4230,18 @@ o.color = "foo"; o.condition = "foo"; o.contentLanguage = "foo"; - o.customAttributes = buildUnnamed567(); - o.customGroups = buildUnnamed568(); + o.customAttributes = buildUnnamed582(); + o.customGroups = buildUnnamed583(); o.customLabel0 = "foo"; o.customLabel1 = "foo"; o.customLabel2 = "foo"; o.customLabel3 = "foo"; o.customLabel4 = "foo"; o.description = "foo"; - o.destinations = buildUnnamed569(); + o.destinations = buildUnnamed584(); o.displayAdsId = "foo"; o.displayAdsLink = "foo"; - o.displayAdsSimilarIds = buildUnnamed570(); + o.displayAdsSimilarIds = buildUnnamed585(); o.displayAdsTitle = "foo"; o.displayAdsValue = 42.0; o.energyEfficiencyClass = "foo"; @@ -4240,11 +4267,11 @@ o.pattern = "foo"; o.price = buildPrice(); o.productType = "foo"; - o.promotionIds = buildUnnamed571(); + o.promotionIds = buildUnnamed586(); o.salePrice = buildPrice(); o.salePriceEffectiveDate = "foo"; o.sellOnGoogleQuantity = "foo"; - o.shipping = buildUnnamed572(); + o.shipping = buildUnnamed587(); o.shippingHeight = buildProductShippingDimension(); o.shippingLabel = "foo"; o.shippingLength = buildProductShippingDimension(); @@ -4252,14 +4279,14 @@ o.shippingWidth = buildProductShippingDimension(); o.sizeSystem = "foo"; o.sizeType = "foo"; - o.sizes = buildUnnamed573(); + o.sizes = buildUnnamed588(); o.targetCountry = "foo"; - o.taxes = buildUnnamed574(); + o.taxes = buildUnnamed589(); o.title = "foo"; o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); o.unitPricingMeasure = buildProductUnitPricingMeasure(); - o.validatedDestinations = buildUnnamed575(); - o.warnings = buildUnnamed576(); + o.validatedDestinations = buildUnnamed590(); + o.warnings = buildUnnamed591(); } buildCounterProduct--; return o; @@ -4268,14 +4295,14 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed563(o.additionalImageLinks); - checkUnnamed564(o.additionalProductTypes); + checkUnnamed578(o.additionalImageLinks); + checkUnnamed579(o.additionalProductTypes); unittest.expect(o.adult, unittest.isTrue); unittest.expect(o.adwordsGrouping, unittest.equals('foo')); - checkUnnamed565(o.adwordsLabels); + checkUnnamed580(o.adwordsLabels); unittest.expect(o.adwordsRedirect, unittest.equals('foo')); unittest.expect(o.ageGroup, unittest.equals('foo')); - checkUnnamed566(o.aspects); + checkUnnamed581(o.aspects); unittest.expect(o.availability, unittest.equals('foo')); unittest.expect(o.availabilityDate, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -4283,18 +4310,18 @@ unittest.expect(o.color, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.contentLanguage, unittest.equals('foo')); - checkUnnamed567(o.customAttributes); - checkUnnamed568(o.customGroups); + checkUnnamed582(o.customAttributes); + checkUnnamed583(o.customGroups); unittest.expect(o.customLabel0, unittest.equals('foo')); unittest.expect(o.customLabel1, unittest.equals('foo')); unittest.expect(o.customLabel2, unittest.equals('foo')); unittest.expect(o.customLabel3, unittest.equals('foo')); unittest.expect(o.customLabel4, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed569(o.destinations); + checkUnnamed584(o.destinations); unittest.expect(o.displayAdsId, unittest.equals('foo')); unittest.expect(o.displayAdsLink, unittest.equals('foo')); - checkUnnamed570(o.displayAdsSimilarIds); + checkUnnamed585(o.displayAdsSimilarIds); unittest.expect(o.displayAdsTitle, unittest.equals('foo')); unittest.expect(o.displayAdsValue, unittest.equals(42.0)); unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); @@ -4320,11 +4347,11 @@ unittest.expect(o.pattern, unittest.equals('foo')); checkPrice(o.price); unittest.expect(o.productType, unittest.equals('foo')); - checkUnnamed571(o.promotionIds); + checkUnnamed586(o.promotionIds); checkPrice(o.salePrice); unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); unittest.expect(o.sellOnGoogleQuantity, unittest.equals('foo')); - checkUnnamed572(o.shipping); + checkUnnamed587(o.shipping); checkProductShippingDimension(o.shippingHeight); unittest.expect(o.shippingLabel, unittest.equals('foo')); checkProductShippingDimension(o.shippingLength); @@ -4332,14 +4359,14 @@ checkProductShippingDimension(o.shippingWidth); unittest.expect(o.sizeSystem, unittest.equals('foo')); unittest.expect(o.sizeType, unittest.equals('foo')); - checkUnnamed573(o.sizes); + checkUnnamed588(o.sizes); unittest.expect(o.targetCountry, unittest.equals('foo')); - checkUnnamed574(o.taxes); + checkUnnamed589(o.taxes); unittest.expect(o.title, unittest.equals('foo')); checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); checkProductUnitPricingMeasure(o.unitPricingMeasure); - checkUnnamed575(o.validatedDestinations); - checkUnnamed576(o.warnings); + checkUnnamed590(o.validatedDestinations); + checkUnnamed591(o.warnings); } buildCounterProduct--; } @@ -4392,14 +4419,14 @@ buildCounterProductCustomAttribute--; } -buildUnnamed577() { +buildUnnamed592() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed577(core.List<api.ProductCustomAttribute> o) { +checkUnnamed592(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); @@ -4410,7 +4437,7 @@ var o = new api.ProductCustomGroup(); buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - o.attributes = buildUnnamed577(); + o.attributes = buildUnnamed592(); o.name = "foo"; } buildCounterProductCustomGroup--; @@ -4420,7 +4447,7 @@ checkProductCustomGroup(api.ProductCustomGroup o) { buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - checkUnnamed577(o.attributes); + checkUnnamed592(o.attributes); unittest.expect(o.name, unittest.equals('foo')); } buildCounterProductCustomGroup--; @@ -4520,27 +4547,27 @@ buildCounterProductShippingWeight--; } -buildUnnamed578() { +buildUnnamed593() { var o = new core.List<api.ProductStatusDataQualityIssue>(); o.add(buildProductStatusDataQualityIssue()); o.add(buildProductStatusDataQualityIssue()); return o; } -checkUnnamed578(core.List<api.ProductStatusDataQualityIssue> o) { +checkUnnamed593(core.List<api.ProductStatusDataQualityIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDataQualityIssue(o[0]); checkProductStatusDataQualityIssue(o[1]); } -buildUnnamed579() { +buildUnnamed594() { var o = new core.List<api.ProductStatusDestinationStatus>(); o.add(buildProductStatusDestinationStatus()); o.add(buildProductStatusDestinationStatus()); return o; } -checkUnnamed579(core.List<api.ProductStatusDestinationStatus> o) { +checkUnnamed594(core.List<api.ProductStatusDestinationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDestinationStatus(o[0]); checkProductStatusDestinationStatus(o[1]); @@ -4552,8 +4579,8 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { o.creationDate = "foo"; - o.dataQualityIssues = buildUnnamed578(); - o.destinationStatuses = buildUnnamed579(); + o.dataQualityIssues = buildUnnamed593(); + o.destinationStatuses = buildUnnamed594(); o.googleExpirationDate = "foo"; o.kind = "foo"; o.lastUpdateDate = "foo"; @@ -4569,8 +4596,8 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { unittest.expect(o.creationDate, unittest.equals('foo')); - checkUnnamed578(o.dataQualityIssues); - checkUnnamed579(o.destinationStatuses); + checkUnnamed593(o.dataQualityIssues); + checkUnnamed594(o.destinationStatuses); unittest.expect(o.googleExpirationDate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateDate, unittest.equals('foo')); @@ -4708,14 +4735,14 @@ buildCounterProductUnitPricingMeasure--; } -buildUnnamed580() { +buildUnnamed595() { var o = new core.List<api.ProductsCustomBatchRequestEntry>(); o.add(buildProductsCustomBatchRequestEntry()); o.add(buildProductsCustomBatchRequestEntry()); return o; } -checkUnnamed580(core.List<api.ProductsCustomBatchRequestEntry> o) { +checkUnnamed595(core.List<api.ProductsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchRequestEntry(o[0]); checkProductsCustomBatchRequestEntry(o[1]); @@ -4726,7 +4753,7 @@ var o = new api.ProductsCustomBatchRequest(); buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - o.entries = buildUnnamed580(); + o.entries = buildUnnamed595(); } buildCounterProductsCustomBatchRequest--; return o; @@ -4735,7 +4762,7 @@ checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - checkUnnamed580(o.entries); + checkUnnamed595(o.entries); } buildCounterProductsCustomBatchRequest--; } @@ -4767,14 +4794,14 @@ buildCounterProductsCustomBatchRequestEntry--; } -buildUnnamed581() { +buildUnnamed596() { var o = new core.List<api.ProductsCustomBatchResponseEntry>(); o.add(buildProductsCustomBatchResponseEntry()); o.add(buildProductsCustomBatchResponseEntry()); return o; } -checkUnnamed581(core.List<api.ProductsCustomBatchResponseEntry> o) { +checkUnnamed596(core.List<api.ProductsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchResponseEntry(o[0]); checkProductsCustomBatchResponseEntry(o[1]); @@ -4785,7 +4812,7 @@ var o = new api.ProductsCustomBatchResponse(); buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - o.entries = buildUnnamed581(); + o.entries = buildUnnamed596(); o.kind = "foo"; } buildCounterProductsCustomBatchResponse--; @@ -4795,7 +4822,7 @@ checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - checkUnnamed581(o.entries); + checkUnnamed596(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductsCustomBatchResponse--; @@ -4826,14 +4853,14 @@ buildCounterProductsCustomBatchResponseEntry--; } -buildUnnamed582() { +buildUnnamed597() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed582(core.List<api.Product> o) { +checkUnnamed597(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -4846,7 +4873,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed582(); + o.resources = buildUnnamed597(); } buildCounterProductsListResponse--; return o; @@ -4857,19 +4884,19 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed582(o.resources); + checkUnnamed597(o.resources); } buildCounterProductsListResponse--; } -buildUnnamed583() { +buildUnnamed598() { var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); o.add(buildProductstatusesCustomBatchRequestEntry()); o.add(buildProductstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed583(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { +checkUnnamed598(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchRequestEntry(o[0]); checkProductstatusesCustomBatchRequestEntry(o[1]); @@ -4880,7 +4907,7 @@ var o = new api.ProductstatusesCustomBatchRequest(); buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed583(); + o.entries = buildUnnamed598(); } buildCounterProductstatusesCustomBatchRequest--; return o; @@ -4889,7 +4916,7 @@ checkProductstatusesCustomBatchRequest(api.ProductstatusesCustomBatchRequest o) { buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - checkUnnamed583(o.entries); + checkUnnamed598(o.entries); } buildCounterProductstatusesCustomBatchRequest--; } @@ -4919,14 +4946,14 @@ buildCounterProductstatusesCustomBatchRequestEntry--; } -buildUnnamed584() { +buildUnnamed599() { var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); o.add(buildProductstatusesCustomBatchResponseEntry()); o.add(buildProductstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed584(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { +checkUnnamed599(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchResponseEntry(o[0]); checkProductstatusesCustomBatchResponseEntry(o[1]); @@ -4937,7 +4964,7 @@ var o = new api.ProductstatusesCustomBatchResponse(); buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed584(); + o.entries = buildUnnamed599(); o.kind = "foo"; } buildCounterProductstatusesCustomBatchResponse--; @@ -4947,7 +4974,7 @@ checkProductstatusesCustomBatchResponse(api.ProductstatusesCustomBatchResponse o) { buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - checkUnnamed584(o.entries); + checkUnnamed599(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductstatusesCustomBatchResponse--; @@ -4978,14 +5005,14 @@ buildCounterProductstatusesCustomBatchResponseEntry--; } -buildUnnamed585() { +buildUnnamed600() { var o = new core.List<api.ProductStatus>(); o.add(buildProductStatus()); o.add(buildProductStatus()); return o; } -checkUnnamed585(core.List<api.ProductStatus> o) { +checkUnnamed600(core.List<api.ProductStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatus(o[0]); checkProductStatus(o[1]); @@ -4998,7 +5025,7 @@ if (buildCounterProductstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed585(); + o.resources = buildUnnamed600(); } buildCounterProductstatusesListResponse--; return o; @@ -5009,45 +5036,45 @@ if (buildCounterProductstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed585(o.resources); + checkUnnamed600(o.resources); } buildCounterProductstatusesListResponse--; } -buildUnnamed586() { +buildUnnamed601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed586(core.List<core.String> o) { +checkUnnamed601(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed587() { +buildUnnamed602() { var o = new core.List<api.CarrierRate>(); o.add(buildCarrierRate()); o.add(buildCarrierRate()); return o; } -checkUnnamed587(core.List<api.CarrierRate> o) { +checkUnnamed602(core.List<api.CarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkCarrierRate(o[0]); checkCarrierRate(o[1]); } -buildUnnamed588() { +buildUnnamed603() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed588(core.List<api.Table> o) { +checkUnnamed603(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -5058,11 +5085,11 @@ var o = new api.RateGroup(); buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - o.applicableShippingLabels = buildUnnamed586(); - o.carrierRates = buildUnnamed587(); + o.applicableShippingLabels = buildUnnamed601(); + o.carrierRates = buildUnnamed602(); o.mainTable = buildTable(); o.singleValue = buildValue(); - o.subtables = buildUnnamed588(); + o.subtables = buildUnnamed603(); } buildCounterRateGroup--; return o; @@ -5071,23 +5098,23 @@ checkRateGroup(api.RateGroup o) { buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - checkUnnamed586(o.applicableShippingLabels); - checkUnnamed587(o.carrierRates); + checkUnnamed601(o.applicableShippingLabels); + checkUnnamed602(o.carrierRates); checkTable(o.mainTable); checkValue(o.singleValue); - checkUnnamed588(o.subtables); + checkUnnamed603(o.subtables); } buildCounterRateGroup--; } -buildUnnamed589() { +buildUnnamed604() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed589(core.List<api.Value> o) { +checkUnnamed604(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -5098,7 +5125,7 @@ var o = new api.Row(); buildCounterRow++; if (buildCounterRow < 3) { - o.cells = buildUnnamed589(); + o.cells = buildUnnamed604(); } buildCounterRow--; return o; @@ -5107,19 +5134,19 @@ checkRow(api.Row o) { buildCounterRow++; if (buildCounterRow < 3) { - checkUnnamed589(o.cells); + checkUnnamed604(o.cells); } buildCounterRow--; } -buildUnnamed590() { +buildUnnamed605() { var o = new core.List<api.RateGroup>(); o.add(buildRateGroup()); o.add(buildRateGroup()); return o; } -checkUnnamed590(core.List<api.RateGroup> o) { +checkUnnamed605(core.List<api.RateGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkRateGroup(o[0]); checkRateGroup(o[1]); @@ -5135,7 +5162,7 @@ o.deliveryCountry = "foo"; o.deliveryTime = buildDeliveryTime(); o.name = "foo"; - o.rateGroups = buildUnnamed590(); + o.rateGroups = buildUnnamed605(); } buildCounterService--; return o; @@ -5149,32 +5176,32 @@ unittest.expect(o.deliveryCountry, unittest.equals('foo')); checkDeliveryTime(o.deliveryTime); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed590(o.rateGroups); + checkUnnamed605(o.rateGroups); } buildCounterService--; } -buildUnnamed591() { +buildUnnamed606() { var o = new core.List<api.PostalCodeGroup>(); o.add(buildPostalCodeGroup()); o.add(buildPostalCodeGroup()); return o; } -checkUnnamed591(core.List<api.PostalCodeGroup> o) { +checkUnnamed606(core.List<api.PostalCodeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeGroup(o[0]); checkPostalCodeGroup(o[1]); } -buildUnnamed592() { +buildUnnamed607() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed592(core.List<api.Service> o) { +checkUnnamed607(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -5186,8 +5213,8 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { o.accountId = "foo"; - o.postalCodeGroups = buildUnnamed591(); - o.services = buildUnnamed592(); + o.postalCodeGroups = buildUnnamed606(); + o.services = buildUnnamed607(); } buildCounterShippingSettings--; return o; @@ -5197,20 +5224,20 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed591(o.postalCodeGroups); - checkUnnamed592(o.services); + checkUnnamed606(o.postalCodeGroups); + checkUnnamed607(o.services); } buildCounterShippingSettings--; } -buildUnnamed593() { +buildUnnamed608() { var o = new core.List<api.ShippingsettingsCustomBatchRequestEntry>(); o.add(buildShippingsettingsCustomBatchRequestEntry()); o.add(buildShippingsettingsCustomBatchRequestEntry()); return o; } -checkUnnamed593(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { +checkUnnamed608(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchRequestEntry(o[0]); checkShippingsettingsCustomBatchRequestEntry(o[1]); @@ -5221,7 +5248,7 @@ var o = new api.ShippingsettingsCustomBatchRequest(); buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - o.entries = buildUnnamed593(); + o.entries = buildUnnamed608(); } buildCounterShippingsettingsCustomBatchRequest--; return o; @@ -5230,7 +5257,7 @@ checkShippingsettingsCustomBatchRequest(api.ShippingsettingsCustomBatchRequest o) { buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - checkUnnamed593(o.entries); + checkUnnamed608(o.entries); } buildCounterShippingsettingsCustomBatchRequest--; } @@ -5262,14 +5289,14 @@ buildCounterShippingsettingsCustomBatchRequestEntry--; } -buildUnnamed594() { +buildUnnamed609() { var o = new core.List<api.ShippingsettingsCustomBatchResponseEntry>(); o.add(buildShippingsettingsCustomBatchResponseEntry()); o.add(buildShippingsettingsCustomBatchResponseEntry()); return o; } -checkUnnamed594(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { +checkUnnamed609(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchResponseEntry(o[0]); checkShippingsettingsCustomBatchResponseEntry(o[1]); @@ -5280,7 +5307,7 @@ var o = new api.ShippingsettingsCustomBatchResponse(); buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - o.entries = buildUnnamed594(); + o.entries = buildUnnamed609(); o.kind = "foo"; } buildCounterShippingsettingsCustomBatchResponse--; @@ -5290,7 +5317,7 @@ checkShippingsettingsCustomBatchResponse(api.ShippingsettingsCustomBatchResponse o) { buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - checkUnnamed594(o.entries); + checkUnnamed609(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsCustomBatchResponse--; @@ -5321,14 +5348,14 @@ buildCounterShippingsettingsCustomBatchResponseEntry--; } -buildUnnamed595() { +buildUnnamed610() { var o = new core.List<api.CarriersCarrier>(); o.add(buildCarriersCarrier()); o.add(buildCarriersCarrier()); return o; } -checkUnnamed595(core.List<api.CarriersCarrier> o) { +checkUnnamed610(core.List<api.CarriersCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkCarriersCarrier(o[0]); checkCarriersCarrier(o[1]); @@ -5339,7 +5366,7 @@ var o = new api.ShippingsettingsGetSupportedCarriersResponse(); buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - o.carriers = buildUnnamed595(); + o.carriers = buildUnnamed610(); o.kind = "foo"; } buildCounterShippingsettingsGetSupportedCarriersResponse--; @@ -5349,20 +5376,20 @@ checkShippingsettingsGetSupportedCarriersResponse(api.ShippingsettingsGetSupportedCarriersResponse o) { buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - checkUnnamed595(o.carriers); + checkUnnamed610(o.carriers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsGetSupportedCarriersResponse--; } -buildUnnamed596() { +buildUnnamed611() { var o = new core.List<api.ShippingSettings>(); o.add(buildShippingSettings()); o.add(buildShippingSettings()); return o; } -checkUnnamed596(core.List<api.ShippingSettings> o) { +checkUnnamed611(core.List<api.ShippingSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingSettings(o[0]); checkShippingSettings(o[1]); @@ -5375,7 +5402,7 @@ if (buildCounterShippingsettingsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed596(); + o.resources = buildUnnamed611(); } buildCounterShippingsettingsListResponse--; return o; @@ -5386,19 +5413,19 @@ if (buildCounterShippingsettingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed596(o.resources); + checkUnnamed611(o.resources); } buildCounterShippingsettingsListResponse--; } -buildUnnamed597() { +buildUnnamed612() { var o = new core.List<api.Row>(); o.add(buildRow()); o.add(buildRow()); return o; } -checkUnnamed597(core.List<api.Row> o) { +checkUnnamed612(core.List<api.Row> o) { unittest.expect(o, unittest.hasLength(2)); checkRow(o[0]); checkRow(o[1]); @@ -5412,7 +5439,7 @@ o.columnHeaders = buildHeaders(); o.name = "foo"; o.rowHeaders = buildHeaders(); - o.rows = buildUnnamed597(); + o.rows = buildUnnamed612(); } buildCounterTable--; return o; @@ -5424,32 +5451,32 @@ checkHeaders(o.columnHeaders); unittest.expect(o.name, unittest.equals('foo')); checkHeaders(o.rowHeaders); - checkUnnamed597(o.rows); + checkUnnamed612(o.rows); } buildCounterTable--; } -buildUnnamed598() { +buildUnnamed613() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed598(core.List<api.TestOrderLineItem> o) { +checkUnnamed613(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed599() { +buildUnnamed614() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed599(core.List<api.OrderPromotion> o) { +checkUnnamed614(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -5462,10 +5489,10 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed598(); + o.lineItems = buildUnnamed613(); o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed599(); + o.promotions = buildUnnamed614(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -5479,10 +5506,10 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed598(o.lineItems); + checkUnnamed613(o.lineItems); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed599(o.promotions); + checkUnnamed614(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -5540,14 +5567,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed600() { +buildUnnamed615() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed600(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed615(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -5570,7 +5597,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed600(); + o.variantAttributes = buildUnnamed615(); } buildCounterTestOrderLineItemProduct--; return o; @@ -5591,7 +5618,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed600(o.variantAttributes); + checkUnnamed615(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -5671,14 +5698,14 @@ buildCounterWeight--; } -buildUnnamed601() { +buildUnnamed616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed601(core.List<core.String> o) { +checkUnnamed616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6298,6 +6325,15 @@ }); + unittest.group("obj-schema-InventoryPickup", () { + unittest.test("to-json--from-json", () { + var o = buildInventoryPickup(); + var od = new api.InventoryPickup.fromJson(o.toJson()); + checkInventoryPickup(od); + }); + }); + + unittest.group("obj-schema-InventorySetRequest", () { unittest.test("to-json--from-json", () { var o = buildInventorySetRequest(); @@ -9193,7 +9229,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed601(); + var arg_statuses = buildUnnamed616(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/content/v2sandbox_test.dart b/generated/googleapis/test/content/v2sandbox_test.dart index d772208..39eba4b 100644 --- a/generated/googleapis/test/content/v2sandbox_test.dart +++ b/generated/googleapis/test/content/v2sandbox_test.dart
@@ -74,14 +74,14 @@ buildCounterError--; } -buildUnnamed1489() { +buildUnnamed1499() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1489(core.List<api.Error> o) { +checkUnnamed1499(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -93,7 +93,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = 42; - o.errors = buildUnnamed1489(); + o.errors = buildUnnamed1499(); o.message = "foo"; } buildCounterErrors--; @@ -104,59 +104,59 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1489(o.errors); + checkUnnamed1499(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed1490() { +buildUnnamed1500() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed1490(core.List<api.OrderLineItem> o) { +checkUnnamed1500(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed1491() { +buildUnnamed1501() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1491(core.List<api.OrderPromotion> o) { +checkUnnamed1501(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed1492() { +buildUnnamed1502() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed1492(core.List<api.OrderRefund> o) { +checkUnnamed1502(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed1493() { +buildUnnamed1503() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed1493(core.List<api.OrderShipment> o) { +checkUnnamed1503(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -168,20 +168,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { o.acknowledged = true; + o.channelType = "foo"; o.customer = buildOrderCustomer(); o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed1490(); + o.lineItems = buildUnnamed1500(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed1491(); - o.refunds = buildUnnamed1492(); - o.shipments = buildUnnamed1493(); + o.promotions = buildUnnamed1501(); + o.refunds = buildUnnamed1502(); + o.shipments = buildUnnamed1503(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -195,20 +196,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { unittest.expect(o.acknowledged, unittest.isTrue); + unittest.expect(o.channelType, unittest.equals('foo')); checkOrderCustomer(o.customer); checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1490(o.lineItems); + checkUnnamed1500(o.lineItems); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.merchantOrderId, unittest.equals('foo')); checkPrice(o.netAmount); checkOrderPaymentMethod(o.paymentMethod); unittest.expect(o.paymentStatus, unittest.equals('foo')); unittest.expect(o.placedDate, unittest.equals('foo')); - checkUnnamed1491(o.promotions); - checkUnnamed1492(o.refunds); - checkUnnamed1493(o.shipments); + checkUnnamed1501(o.promotions); + checkUnnamed1502(o.refunds); + checkUnnamed1503(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -217,27 +219,27 @@ buildCounterOrder--; } -buildUnnamed1494() { +buildUnnamed1504() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1494(core.List<core.String> o) { +checkUnnamed1504(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1495() { +buildUnnamed1505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1495(core.List<core.String> o) { +checkUnnamed1505(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -249,13 +251,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed1494(); + o.fullAddress = buildUnnamed1504(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed1495(); + o.streetAddress = buildUnnamed1505(); } buildCounterOrderAddress--; return o; @@ -265,13 +267,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed1494(o.fullAddress); + checkUnnamed1504(o.fullAddress); unittest.expect(o.isPostOfficeBox, unittest.isTrue); unittest.expect(o.locality, unittest.equals('foo')); unittest.expect(o.postalCode, unittest.equals('foo')); unittest.expect(o.recipientName, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1495(o.streetAddress); + checkUnnamed1505(o.streetAddress); } buildCounterOrderAddress--; } @@ -347,27 +349,27 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed1496() { +buildUnnamed1506() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed1496(core.List<api.OrderCancellation> o) { +checkUnnamed1506(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed1497() { +buildUnnamed1507() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed1497(core.List<api.OrderReturn> o) { +checkUnnamed1507(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -378,7 +380,7 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.cancellations = buildUnnamed1496(); + o.cancellations = buildUnnamed1506(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -389,7 +391,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed1497(); + o.returns = buildUnnamed1507(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -400,7 +402,7 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed1496(o.cancellations); + checkUnnamed1506(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -411,21 +413,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed1497(o.returns); + checkUnnamed1507(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed1498() { +buildUnnamed1508() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1498(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1508(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -450,7 +452,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1498(); + o.variantAttributes = buildUnnamed1508(); } buildCounterOrderLineItemProduct--; return o; @@ -473,7 +475,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1498(o.variantAttributes); + checkUnnamed1508(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -599,14 +601,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed1499() { +buildUnnamed1509() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed1499(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed1509(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -617,7 +619,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed1499(); + o.benefits = buildUnnamed1509(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -632,7 +634,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed1499(o.benefits); + checkUnnamed1509(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -643,14 +645,14 @@ buildCounterOrderPromotion--; } -buildUnnamed1500() { +buildUnnamed1510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1500(core.List<core.String> o) { +checkUnnamed1510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -662,7 +664,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed1500(); + o.offerIds = buildUnnamed1510(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -675,7 +677,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed1500(o.offerIds); + checkUnnamed1510(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -737,14 +739,14 @@ buildCounterOrderReturn--; } -buildUnnamed1501() { +buildUnnamed1511() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1501(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1511(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -759,7 +761,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed1501(); + o.lineItems = buildUnnamed1511(); o.status = "foo"; o.trackingId = "foo"; } @@ -774,7 +776,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1501(o.lineItems); + checkUnnamed1511(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -997,14 +999,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed1502() { +buildUnnamed1512() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed1502(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed1512(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -1015,7 +1017,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed1502(); + o.entries = buildUnnamed1512(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -1024,7 +1026,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed1502(o.entries); + checkUnnamed1512(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -1166,14 +1168,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; } -buildUnnamed1503() { +buildUnnamed1513() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1503(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1513(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -1185,7 +1187,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed1503(); + o.lineItems = buildUnnamed1513(); o.shipmentId = "foo"; o.trackingId = "foo"; } @@ -1197,7 +1199,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed1503(o.lineItems); + checkUnnamed1513(o.lineItems); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -1229,14 +1231,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed1504() { +buildUnnamed1514() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed1504(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed1514(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -1247,7 +1249,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed1504(); + o.entries = buildUnnamed1514(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -1257,7 +1259,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed1504(o.entries); + checkUnnamed1514(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -1332,14 +1334,14 @@ buildCounterOrdersGetTestOrderTemplateResponse--; } -buildUnnamed1505() { +buildUnnamed1515() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1505(core.List<api.Order> o) { +checkUnnamed1515(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -1352,7 +1354,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1505(); + o.resources = buildUnnamed1515(); } buildCounterOrdersListResponse--; return o; @@ -1363,7 +1365,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1505(o.resources); + checkUnnamed1515(o.resources); } buildCounterOrdersListResponse--; } @@ -1462,14 +1464,14 @@ buildCounterOrdersReturnLineItemResponse--; } -buildUnnamed1506() { +buildUnnamed1516() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1506(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1516(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -1481,7 +1483,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed1506(); + o.lineItems = buildUnnamed1516(); o.operationId = "foo"; o.shipmentId = "foo"; o.trackingId = "foo"; @@ -1494,7 +1496,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed1506(o.lineItems); + checkUnnamed1516(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); @@ -1634,27 +1636,27 @@ buildCounterPrice--; } -buildUnnamed1507() { +buildUnnamed1517() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed1507(core.List<api.TestOrderLineItem> o) { +checkUnnamed1517(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed1508() { +buildUnnamed1518() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1508(core.List<api.OrderPromotion> o) { +checkUnnamed1518(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -1667,10 +1669,10 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed1507(); + o.lineItems = buildUnnamed1517(); o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed1508(); + o.promotions = buildUnnamed1518(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -1684,10 +1686,10 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1507(o.lineItems); + checkUnnamed1517(o.lineItems); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed1508(o.promotions); + checkUnnamed1518(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -1745,14 +1747,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed1509() { +buildUnnamed1519() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1509(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1519(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -1775,7 +1777,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1509(); + o.variantAttributes = buildUnnamed1519(); } buildCounterTestOrderLineItemProduct--; return o; @@ -1796,7 +1798,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1509(o.variantAttributes); + checkUnnamed1519(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -1828,14 +1830,14 @@ buildCounterTestOrderPaymentMethod--; } -buildUnnamed1510() { +buildUnnamed1520() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1510(core.List<core.String> o) { +checkUnnamed1520(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2785,7 +2787,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed1510(); + var arg_statuses = buildUnnamed1520(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/customsearch/v1_test.dart b/generated/googleapis/test/customsearch/v1_test.dart index ae62cca..accc031 100644 --- a/generated/googleapis/test/customsearch/v1_test.dart +++ b/generated/googleapis/test/customsearch/v1_test.dart
@@ -74,30 +74,30 @@ buildCounterContextFacets--; } -buildUnnamed467() { +buildUnnamed482() { var o = new core.List<api.ContextFacets>(); o.add(buildContextFacets()); o.add(buildContextFacets()); return o; } -checkUnnamed467(core.List<api.ContextFacets> o) { +checkUnnamed482(core.List<api.ContextFacets> o) { unittest.expect(o, unittest.hasLength(2)); checkContextFacets(o[0]); checkContextFacets(o[1]); } -buildUnnamed468() { +buildUnnamed483() { var o = new core.List<core.List<api.ContextFacets>>(); - o.add(buildUnnamed467()); - o.add(buildUnnamed467()); + o.add(buildUnnamed482()); + o.add(buildUnnamed482()); return o; } -checkUnnamed468(core.List<core.List<api.ContextFacets>> o) { +checkUnnamed483(core.List<core.List<api.ContextFacets>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed467(o[0]); - checkUnnamed467(o[1]); + checkUnnamed482(o[0]); + checkUnnamed482(o[1]); } core.int buildCounterContext = 0; @@ -105,7 +105,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.facets = buildUnnamed468(); + o.facets = buildUnnamed483(); o.title = "foo"; } buildCounterContext--; @@ -115,7 +115,7 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed468(o.facets); + checkUnnamed483(o.facets); unittest.expect(o.title, unittest.equals('foo')); } buildCounterContext--; @@ -146,14 +146,14 @@ buildCounterPromotionBodyLines--; } -buildUnnamed469() { +buildUnnamed484() { var o = new core.List<api.PromotionBodyLines>(); o.add(buildPromotionBodyLines()); o.add(buildPromotionBodyLines()); return o; } -checkUnnamed469(core.List<api.PromotionBodyLines> o) { +checkUnnamed484(core.List<api.PromotionBodyLines> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotionBodyLines(o[0]); checkPromotionBodyLines(o[1]); @@ -187,7 +187,7 @@ var o = new api.Promotion(); buildCounterPromotion++; if (buildCounterPromotion < 3) { - o.bodyLines = buildUnnamed469(); + o.bodyLines = buildUnnamed484(); o.displayLink = "foo"; o.htmlTitle = "foo"; o.image = buildPromotionImage(); @@ -201,7 +201,7 @@ checkPromotion(api.Promotion o) { buildCounterPromotion++; if (buildCounterPromotion < 3) { - checkUnnamed469(o.bodyLines); + checkUnnamed484(o.bodyLines); unittest.expect(o.displayLink, unittest.equals('foo')); unittest.expect(o.htmlTitle, unittest.equals('foo')); checkPromotionImage(o.image); @@ -356,56 +356,56 @@ buildCounterResultLabels--; } -buildUnnamed470() { +buildUnnamed485() { var o = new core.List<api.ResultLabels>(); o.add(buildResultLabels()); o.add(buildResultLabels()); return o; } -checkUnnamed470(core.List<api.ResultLabels> o) { +checkUnnamed485(core.List<api.ResultLabels> o) { unittest.expect(o, unittest.hasLength(2)); checkResultLabels(o[0]); checkResultLabels(o[1]); } -buildUnnamed471() { +buildUnnamed486() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed471(core.Map<core.String, core.Object> o) { +checkUnnamed486(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed472() { +buildUnnamed487() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed471()); - o.add(buildUnnamed471()); + o.add(buildUnnamed486()); + o.add(buildUnnamed486()); return o; } -checkUnnamed472(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed487(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed471(o[0]); - checkUnnamed471(o[1]); + checkUnnamed486(o[0]); + checkUnnamed486(o[1]); } -buildUnnamed473() { +buildUnnamed488() { var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>>>(); - o["x"] = buildUnnamed472(); - o["y"] = buildUnnamed472(); + o["x"] = buildUnnamed487(); + o["y"] = buildUnnamed487(); return o; } -checkUnnamed473(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { +checkUnnamed488(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed472(o["x"]); - checkUnnamed472(o["y"]); + checkUnnamed487(o["x"]); + checkUnnamed487(o["y"]); } core.int buildCounterResult = 0; @@ -422,10 +422,10 @@ o.htmlTitle = "foo"; o.image = buildResultImage(); o.kind = "foo"; - o.labels = buildUnnamed470(); + o.labels = buildUnnamed485(); o.link = "foo"; o.mime = "foo"; - o.pagemap = buildUnnamed473(); + o.pagemap = buildUnnamed488(); o.snippet = "foo"; o.title = "foo"; } @@ -445,66 +445,66 @@ unittest.expect(o.htmlTitle, unittest.equals('foo')); checkResultImage(o.image); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed470(o.labels); + checkUnnamed485(o.labels); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.mime, unittest.equals('foo')); - checkUnnamed473(o.pagemap); + checkUnnamed488(o.pagemap); unittest.expect(o.snippet, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterResult--; } -buildUnnamed474() { +buildUnnamed489() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed474(core.List<api.Result> o) { +checkUnnamed489(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); } -buildUnnamed475() { +buildUnnamed490() { var o = new core.List<api.Promotion>(); o.add(buildPromotion()); o.add(buildPromotion()); return o; } -checkUnnamed475(core.List<api.Promotion> o) { +checkUnnamed490(core.List<api.Promotion> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotion(o[0]); checkPromotion(o[1]); } -buildUnnamed476() { +buildUnnamed491() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed476(core.List<api.Query> o) { +checkUnnamed491(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); } -buildUnnamed477() { +buildUnnamed492() { var o = new core.Map<core.String, core.List<api.Query>>(); - o["x"] = buildUnnamed476(); - o["y"] = buildUnnamed476(); + o["x"] = buildUnnamed491(); + o["y"] = buildUnnamed491(); return o; } -checkUnnamed477(core.Map<core.String, core.List<api.Query>> o) { +checkUnnamed492(core.Map<core.String, core.List<api.Query>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed476(o["x"]); - checkUnnamed476(o["y"]); + checkUnnamed491(o["x"]); + checkUnnamed491(o["y"]); } core.int buildCounterSearchSearchInformation = 0; @@ -580,10 +580,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { o.context = buildContext(); - o.items = buildUnnamed474(); + o.items = buildUnnamed489(); o.kind = "foo"; - o.promotions = buildUnnamed475(); - o.queries = buildUnnamed477(); + o.promotions = buildUnnamed490(); + o.queries = buildUnnamed492(); o.searchInformation = buildSearchSearchInformation(); o.spelling = buildSearchSpelling(); o.url = buildSearchUrl(); @@ -596,10 +596,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { checkContext(o.context); - checkUnnamed474(o.items); + checkUnnamed489(o.items); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed475(o.promotions); - checkUnnamed477(o.queries); + checkUnnamed490(o.promotions); + checkUnnamed492(o.queries); checkSearchSearchInformation(o.searchInformation); checkSearchSpelling(o.spelling); checkSearchUrl(o.url);
diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart index 8928160..c55d13d 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart
@@ -68,14 +68,27 @@ buildCounterCancelJobRequest--; } -buildUnnamed669() { +buildUnnamed687() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed687(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed688() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed669(core.List<api.ClusterStatus> o) { +checkUnnamed688(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -89,9 +102,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.config = buildClusterConfig(); + o.labels = buildUnnamed687(); + o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed669(); + o.statusHistory = buildUnnamed688(); } buildCounterCluster--; return o; @@ -103,21 +118,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfig(o.config); + checkUnnamed687(o.labels); + checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed669(o.statusHistory); + checkUnnamed688(o.statusHistory); } buildCounterCluster--; } -buildUnnamed670() { +buildUnnamed689() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed670(core.List<api.NodeInitializationAction> o) { +checkUnnamed689(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -130,7 +147,7 @@ if (buildCounterClusterConfig < 3) { o.configBucket = "foo"; o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed670(); + o.initializationActions = buildUnnamed689(); o.masterConfig = buildInstanceGroupConfig(); o.secondaryWorkerConfig = buildInstanceGroupConfig(); o.softwareConfig = buildSoftwareConfig(); @@ -145,7 +162,7 @@ if (buildCounterClusterConfig < 3) { unittest.expect(o.configBucket, unittest.equals('foo')); checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed670(o.initializationActions); + checkUnnamed689(o.initializationActions); checkInstanceGroupConfig(o.masterConfig); checkInstanceGroupConfig(o.secondaryWorkerConfig); checkSoftwareConfig(o.softwareConfig); @@ -154,14 +171,74 @@ buildCounterClusterConfig--; } -buildUnnamed671() { +buildUnnamed690() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed690(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed691() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed691(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterClusterMetrics = 0; +buildClusterMetrics() { + var o = new api.ClusterMetrics(); + buildCounterClusterMetrics++; + if (buildCounterClusterMetrics < 3) { + o.hdfsMetrics = buildUnnamed690(); + o.yarnMetrics = buildUnnamed691(); + } + buildCounterClusterMetrics--; + return o; +} + +checkClusterMetrics(api.ClusterMetrics o) { + buildCounterClusterMetrics++; + if (buildCounterClusterMetrics < 3) { + checkUnnamed690(o.hdfsMetrics); + checkUnnamed691(o.yarnMetrics); + } + buildCounterClusterMetrics--; +} + +buildUnnamed692() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed692(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed693() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed671(core.List<api.ClusterOperationStatus> o) { +checkUnnamed693(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); @@ -175,9 +252,10 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; + o.labels = buildUnnamed692(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed671(); + o.statusHistory = buildUnnamed693(); } buildCounterClusterOperationMetadata--; return o; @@ -189,9 +267,10 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed692(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed671(o.statusHistory); + checkUnnamed693(o.statusHistory); } buildCounterClusterOperationMetadata--; } @@ -337,40 +416,40 @@ buildCounterEmpty--; } -buildUnnamed672() { +buildUnnamed694() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed672(core.Map<core.String, core.String> o) { +checkUnnamed694(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed673() { +buildUnnamed695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed673(core.List<core.String> o) { +checkUnnamed695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed674() { +buildUnnamed696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed674(core.List<core.String> o) { +checkUnnamed696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -381,11 +460,12 @@ var o = new api.GceClusterConfig(); buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { - o.metadata = buildUnnamed672(); + o.internalIpOnly = true; + o.metadata = buildUnnamed694(); o.networkUri = "foo"; - o.serviceAccountScopes = buildUnnamed673(); + o.serviceAccountScopes = buildUnnamed695(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed674(); + o.tags = buildUnnamed696(); o.zoneUri = "foo"; } buildCounterGceClusterConfig--; @@ -395,76 +475,77 @@ checkGceClusterConfig(api.GceClusterConfig o) { buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { - checkUnnamed672(o.metadata); + unittest.expect(o.internalIpOnly, unittest.isTrue); + checkUnnamed694(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); - checkUnnamed673(o.serviceAccountScopes); + checkUnnamed695(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed674(o.tags); + checkUnnamed696(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfig--; } -buildUnnamed675() { +buildUnnamed697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed675(core.List<core.String> o) { +checkUnnamed697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed676() { +buildUnnamed698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed676(core.List<core.String> o) { +checkUnnamed698(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed677() { +buildUnnamed699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed677(core.List<core.String> o) { +checkUnnamed699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed678() { +buildUnnamed700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed678(core.List<core.String> o) { +checkUnnamed700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed679() { +buildUnnamed701() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed679(core.Map<core.String, core.String> o) { +checkUnnamed701(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -475,14 +556,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed675(); - o.args = buildUnnamed676(); - o.fileUris = buildUnnamed677(); - o.jarFileUris = buildUnnamed678(); + o.archiveUris = buildUnnamed697(); + o.args = buildUnnamed698(); + o.fileUris = buildUnnamed699(); + o.jarFileUris = buildUnnamed700(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed679(); + o.properties = buildUnnamed701(); } buildCounterHadoopJob--; return o; @@ -491,52 +572,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed675(o.archiveUris); - checkUnnamed676(o.args); - checkUnnamed677(o.fileUris); - checkUnnamed678(o.jarFileUris); + checkUnnamed697(o.archiveUris); + checkUnnamed698(o.args); + checkUnnamed699(o.fileUris); + checkUnnamed700(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed679(o.properties); + checkUnnamed701(o.properties); } buildCounterHadoopJob--; } -buildUnnamed680() { +buildUnnamed702() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed680(core.List<core.String> o) { +checkUnnamed702(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed681() { +buildUnnamed703() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed681(core.Map<core.String, core.String> o) { +checkUnnamed703(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed682() { +buildUnnamed704() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed682(core.Map<core.String, core.String> o) { +checkUnnamed704(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -548,11 +629,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed680(); - o.properties = buildUnnamed681(); + o.jarFileUris = buildUnnamed702(); + o.properties = buildUnnamed703(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed682(); + o.scriptVariables = buildUnnamed704(); } buildCounterHiveJob--; return o; @@ -562,23 +643,23 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed680(o.jarFileUris); - checkUnnamed681(o.properties); + checkUnnamed702(o.jarFileUris); + checkUnnamed703(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed682(o.scriptVariables); + checkUnnamed704(o.scriptVariables); } buildCounterHiveJob--; } -buildUnnamed683() { +buildUnnamed705() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed683(core.List<core.String> o) { +checkUnnamed705(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -591,7 +672,7 @@ if (buildCounterInstanceGroupConfig < 3) { o.diskConfig = buildDiskConfig(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed683(); + o.instanceNames = buildUnnamed705(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfig = buildManagedGroupConfig(); @@ -606,7 +687,7 @@ if (buildCounterInstanceGroupConfig < 3) { checkDiskConfig(o.diskConfig); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed683(o.instanceNames); + checkUnnamed705(o.instanceNames); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfig(o.managedGroupConfig); @@ -615,19 +696,45 @@ buildCounterInstanceGroupConfig--; } -buildUnnamed684() { +buildUnnamed706() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed706(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed707() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed684(core.List<api.JobStatus> o) { +checkUnnamed707(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } +buildUnnamed708() { + var o = new core.List<api.YarnApplication>(); + o.add(buildYarnApplication()); + o.add(buildYarnApplication()); + return o; +} + +checkUnnamed708(core.List<api.YarnApplication> o) { + unittest.expect(o, unittest.hasLength(2)); + checkYarnApplication(o[0]); + checkYarnApplication(o[1]); +} + core.int buildCounterJob = 0; buildJob() { var o = new api.Job(); @@ -637,6 +744,7 @@ o.driverOutputResourceUri = "foo"; o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); + o.labels = buildUnnamed706(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -644,7 +752,8 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed684(); + o.statusHistory = buildUnnamed707(); + o.yarnApplications = buildUnnamed708(); } buildCounterJob--; return o; @@ -657,6 +766,7 @@ unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); + checkUnnamed706(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -664,7 +774,8 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed684(o.statusHistory); + checkUnnamed707(o.statusHistory); + checkUnnamed708(o.yarnApplications); } buildCounterJob--; } @@ -734,14 +845,14 @@ buildCounterJobStatus--; } -buildUnnamed685() { +buildUnnamed709() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed685(core.List<api.Cluster> o) { +checkUnnamed709(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -752,7 +863,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed685(); + o.clusters = buildUnnamed709(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -762,20 +873,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed685(o.clusters); + checkUnnamed709(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed686() { +buildUnnamed710() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed686(core.List<api.Job> o) { +checkUnnamed710(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -786,7 +897,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed686(); + o.jobs = buildUnnamed710(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -796,20 +907,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed686(o.jobs); + checkUnnamed710(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed687() { +buildUnnamed711() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed687(core.List<api.Operation> o) { +checkUnnamed711(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -821,7 +932,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed687(); + o.operations = buildUnnamed711(); } buildCounterListOperationsResponse--; return o; @@ -831,19 +942,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed687(o.operations); + checkUnnamed711(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed688() { +buildUnnamed712() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed688(core.Map<core.String, core.String> o) { +checkUnnamed712(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -854,7 +965,7 @@ var o = new api.LoggingConfig(); buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed688(); + o.driverLogLevels = buildUnnamed712(); } buildCounterLoggingConfig--; return o; @@ -863,7 +974,7 @@ checkLoggingConfig(api.LoggingConfig o) { buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - checkUnnamed688(o.driverLogLevels); + checkUnnamed712(o.driverLogLevels); } buildCounterLoggingConfig--; } @@ -910,27 +1021,27 @@ buildCounterNodeInitializationAction--; } -buildUnnamed689() { +buildUnnamed713() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed689(core.Map<core.String, core.Object> o) { +checkUnnamed713(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed690() { +buildUnnamed714() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed690(core.Map<core.String, core.Object> o) { +checkUnnamed714(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -943,9 +1054,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed689(); + o.metadata = buildUnnamed713(); o.name = "foo"; - o.response = buildUnnamed690(); + o.response = buildUnnamed714(); } buildCounterOperation--; return o; @@ -956,21 +1067,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed689(o.metadata); + checkUnnamed713(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed690(o.response); + checkUnnamed714(o.response); } buildCounterOperation--; } -buildUnnamed691() { +buildUnnamed715() { var o = new core.List<api.OperationStatus>(); o.add(buildOperationStatus()); o.add(buildOperationStatus()); return o; } -checkUnnamed691(core.List<api.OperationStatus> o) { +checkUnnamed715(core.List<api.OperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationStatus(o[0]); checkOperationStatus(o[1]); @@ -992,7 +1103,7 @@ o.startTime = "foo"; o.state = "foo"; o.status = buildOperationStatus(); - o.statusHistory = buildUnnamed691(); + o.statusHistory = buildUnnamed715(); } buildCounterOperationMetadata--; return o; @@ -1012,7 +1123,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); checkOperationStatus(o.status); - checkUnnamed691(o.statusHistory); + checkUnnamed715(o.statusHistory); } buildCounterOperationMetadata--; } @@ -1042,40 +1153,40 @@ buildCounterOperationStatus--; } -buildUnnamed692() { +buildUnnamed716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed692(core.List<core.String> o) { +checkUnnamed716(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed693() { +buildUnnamed717() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed693(core.Map<core.String, core.String> o) { +checkUnnamed717(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed694() { +buildUnnamed718() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed694(core.Map<core.String, core.String> o) { +checkUnnamed718(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1087,12 +1198,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed692(); + o.jarFileUris = buildUnnamed716(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed693(); + o.properties = buildUnnamed717(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed694(); + o.scriptVariables = buildUnnamed718(); } buildCounterPigJob--; return o; @@ -1102,89 +1213,89 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed692(o.jarFileUris); + checkUnnamed716(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed693(o.properties); + checkUnnamed717(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed694(o.scriptVariables); + checkUnnamed718(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed695() { +buildUnnamed719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed695(core.List<core.String> o) { +checkUnnamed719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed696() { +buildUnnamed720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed696(core.List<core.String> o) { +checkUnnamed720(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed697() { +buildUnnamed721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed697(core.List<core.String> o) { +checkUnnamed721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed698() { +buildUnnamed722() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed698(core.List<core.String> o) { +checkUnnamed722(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed699() { +buildUnnamed723() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed699(core.Map<core.String, core.String> o) { +checkUnnamed723(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed700() { +buildUnnamed724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed700(core.List<core.String> o) { +checkUnnamed724(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1195,14 +1306,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed695(); - o.args = buildUnnamed696(); - o.fileUris = buildUnnamed697(); - o.jarFileUris = buildUnnamed698(); + o.archiveUris = buildUnnamed719(); + o.args = buildUnnamed720(); + o.fileUris = buildUnnamed721(); + o.jarFileUris = buildUnnamed722(); o.loggingConfig = buildLoggingConfig(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed699(); - o.pythonFileUris = buildUnnamed700(); + o.properties = buildUnnamed723(); + o.pythonFileUris = buildUnnamed724(); } buildCounterPySparkJob--; return o; @@ -1211,26 +1322,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed695(o.archiveUris); - checkUnnamed696(o.args); - checkUnnamed697(o.fileUris); - checkUnnamed698(o.jarFileUris); + checkUnnamed719(o.archiveUris); + checkUnnamed720(o.args); + checkUnnamed721(o.fileUris); + checkUnnamed722(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed699(o.properties); - checkUnnamed700(o.pythonFileUris); + checkUnnamed723(o.properties); + checkUnnamed724(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed701() { +buildUnnamed725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed701(core.List<core.String> o) { +checkUnnamed725(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1241,7 +1352,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed701(); + o.queries = buildUnnamed725(); } buildCounterQueryList--; return o; @@ -1250,19 +1361,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed701(o.queries); + checkUnnamed725(o.queries); } buildCounterQueryList--; } -buildUnnamed702() { +buildUnnamed726() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed702(core.Map<core.String, core.String> o) { +checkUnnamed726(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1274,7 +1385,7 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { o.imageVersion = "foo"; - o.properties = buildUnnamed702(); + o.properties = buildUnnamed726(); } buildCounterSoftwareConfig--; return o; @@ -1284,71 +1395,71 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed702(o.properties); + checkUnnamed726(o.properties); } buildCounterSoftwareConfig--; } -buildUnnamed703() { +buildUnnamed727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed703(core.List<core.String> o) { +checkUnnamed727(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed704() { +buildUnnamed728() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed704(core.List<core.String> o) { +checkUnnamed728(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed705() { +buildUnnamed729() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed705(core.List<core.String> o) { +checkUnnamed729(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed706() { +buildUnnamed730() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed706(core.List<core.String> o) { +checkUnnamed730(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed707() { +buildUnnamed731() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed707(core.Map<core.String, core.String> o) { +checkUnnamed731(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1359,14 +1470,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed703(); - o.args = buildUnnamed704(); - o.fileUris = buildUnnamed705(); - o.jarFileUris = buildUnnamed706(); + o.archiveUris = buildUnnamed727(); + o.args = buildUnnamed728(); + o.fileUris = buildUnnamed729(); + o.jarFileUris = buildUnnamed730(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed707(); + o.properties = buildUnnamed731(); } buildCounterSparkJob--; return o; @@ -1375,52 +1486,52 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed703(o.archiveUris); - checkUnnamed704(o.args); - checkUnnamed705(o.fileUris); - checkUnnamed706(o.jarFileUris); + checkUnnamed727(o.archiveUris); + checkUnnamed728(o.args); + checkUnnamed729(o.fileUris); + checkUnnamed730(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed707(o.properties); + checkUnnamed731(o.properties); } buildCounterSparkJob--; } -buildUnnamed708() { +buildUnnamed732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed708(core.List<core.String> o) { +checkUnnamed732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed709() { +buildUnnamed733() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed709(core.Map<core.String, core.String> o) { +checkUnnamed733(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed710() { +buildUnnamed734() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed710(core.Map<core.String, core.String> o) { +checkUnnamed734(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1431,12 +1542,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed708(); + o.jarFileUris = buildUnnamed732(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed709(); + o.properties = buildUnnamed733(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed710(); + o.scriptVariables = buildUnnamed734(); } buildCounterSparkSqlJob--; return o; @@ -1445,40 +1556,40 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed708(o.jarFileUris); + checkUnnamed732(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed709(o.properties); + checkUnnamed733(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed710(o.scriptVariables); + checkUnnamed734(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed711() { +buildUnnamed735() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed711(core.Map<core.String, core.Object> o) { +checkUnnamed735(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed712() { +buildUnnamed736() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed711()); - o.add(buildUnnamed711()); + o.add(buildUnnamed735()); + o.add(buildUnnamed735()); return o; } -checkUnnamed712(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed736(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed711(o[0]); - checkUnnamed711(o[1]); + checkUnnamed735(o[0]); + checkUnnamed735(o[1]); } core.int buildCounterStatus = 0; @@ -1487,7 +1598,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed712(); + o.details = buildUnnamed736(); o.message = "foo"; } buildCounterStatus--; @@ -1498,7 +1609,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed712(o.details); + checkUnnamed736(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1523,6 +1634,31 @@ buildCounterSubmitJobRequest--; } +core.int buildCounterYarnApplication = 0; +buildYarnApplication() { + var o = new api.YarnApplication(); + buildCounterYarnApplication++; + if (buildCounterYarnApplication < 3) { + o.name = "foo"; + o.progress = 42.0; + o.state = "foo"; + o.trackingUrl = "foo"; + } + buildCounterYarnApplication--; + return o; +} + +checkYarnApplication(api.YarnApplication o) { + buildCounterYarnApplication++; + if (buildCounterYarnApplication < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.progress, unittest.equals(42.0)); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.trackingUrl, unittest.equals('foo')); + } + buildCounterYarnApplication--; +} + main() { unittest.group("obj-schema-CancelJobRequest", () { @@ -1552,6 +1688,15 @@ }); + unittest.group("obj-schema-ClusterMetrics", () { + unittest.test("to-json--from-json", () { + var o = buildClusterMetrics(); + var od = new api.ClusterMetrics.fromJson(o.toJson()); + checkClusterMetrics(od); + }); + }); + + unittest.group("obj-schema-ClusterOperationMetadata", () { unittest.test("to-json--from-json", () { var o = buildClusterOperationMetadata(); @@ -1849,6 +1994,15 @@ }); + unittest.group("obj-schema-YarnApplication", () { + unittest.test("to-json--from-json", () { + var o = buildYarnApplication(); + var od = new api.YarnApplication.fromJson(o.toJson()); + checkYarnApplication(od); + }); + }); + + unittest.group("resource-ProjectsRegionsClustersResourceApi", () { unittest.test("method--create", () { @@ -2116,6 +2270,7 @@ api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; var arg_projectId = "foo"; var arg_region = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -2158,6 +2313,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -2168,7 +2324,7 @@ var resp = convert.JSON.encode(buildListClustersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) { + res.list(arg_projectId, arg_region, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) { checkListClustersResponse(response); }))); }); @@ -2453,6 +2609,7 @@ var arg_pageToken = "foo"; var arg_clusterName = "foo"; var arg_jobStateMatcher = "foo"; + var arg_filter = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2497,6 +2654,7 @@ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clusterName)); unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_jobStateMatcher)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -2505,7 +2663,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher, filter: arg_filter).then(unittest.expectAsync(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); });
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart index 357d9eb..8bd0bb2 100644 --- a/generated/googleapis/test/datastore/v1_test.dart +++ b/generated/googleapis/test/datastore/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed778() { +buildUnnamed802() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed778(core.List<api.Key> o) { +checkUnnamed802(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -69,7 +69,7 @@ var o = new api.AllocateIdsRequest(); buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - o.keys = buildUnnamed778(); + o.keys = buildUnnamed802(); } buildCounterAllocateIdsRequest--; return o; @@ -78,19 +78,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed778(o.keys); + checkUnnamed802(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed779() { +buildUnnamed803() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed779(core.List<api.Key> o) { +checkUnnamed803(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -101,7 +101,7 @@ var o = new api.AllocateIdsResponse(); buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - o.keys = buildUnnamed779(); + o.keys = buildUnnamed803(); } buildCounterAllocateIdsResponse--; return o; @@ -110,19 +110,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed779(o.keys); + checkUnnamed803(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed780() { +buildUnnamed804() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed780(core.List<api.Value> o) { +checkUnnamed804(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -133,7 +133,7 @@ var o = new api.ArrayValue(); buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - o.values = buildUnnamed780(); + o.values = buildUnnamed804(); } buildCounterArrayValue--; return o; @@ -142,7 +142,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed780(o.values); + checkUnnamed804(o.values); } buildCounterArrayValue--; } @@ -183,14 +183,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed781() { +buildUnnamed805() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed781(core.List<api.Mutation> o) { +checkUnnamed805(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -202,7 +202,7 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { o.mode = "foo"; - o.mutations = buildUnnamed781(); + o.mutations = buildUnnamed805(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -213,20 +213,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed781(o.mutations); + checkUnnamed805(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed782() { +buildUnnamed806() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed782(core.List<api.MutationResult> o) { +checkUnnamed806(core.List<api.MutationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkMutationResult(o[0]); checkMutationResult(o[1]); @@ -238,7 +238,7 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { o.indexUpdates = 42; - o.mutationResults = buildUnnamed782(); + o.mutationResults = buildUnnamed806(); } buildCounterCommitResponse--; return o; @@ -248,19 +248,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed782(o.mutationResults); + checkUnnamed806(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed783() { +buildUnnamed807() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed783(core.List<api.Filter> o) { +checkUnnamed807(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -271,7 +271,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed783(); + o.filters = buildUnnamed807(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -281,20 +281,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed783(o.filters); + checkUnnamed807(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed784() { +buildUnnamed808() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed784(core.Map<core.String, api.Value> o) { +checkUnnamed808(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -306,7 +306,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { o.key = buildKey(); - o.properties = buildUnnamed784(); + o.properties = buildUnnamed808(); } buildCounterEntity--; return o; @@ -316,7 +316,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed784(o.properties); + checkUnnamed808(o.properties); } buildCounterEntity--; } @@ -365,27 +365,27 @@ buildCounterFilter--; } -buildUnnamed785() { +buildUnnamed809() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed785(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed809(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed786() { +buildUnnamed810() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed786(core.List<api.GqlQueryParameter> o) { +checkUnnamed810(core.List<api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o[0]); checkGqlQueryParameter(o[1]); @@ -397,8 +397,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { o.allowLiterals = true; - o.namedBindings = buildUnnamed785(); - o.positionalBindings = buildUnnamed786(); + o.namedBindings = buildUnnamed809(); + o.positionalBindings = buildUnnamed810(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -409,8 +409,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed785(o.namedBindings); - checkUnnamed786(o.positionalBindings); + checkUnnamed809(o.namedBindings); + checkUnnamed810(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -437,14 +437,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed787() { +buildUnnamed811() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed787(core.List<api.PathElement> o) { +checkUnnamed811(core.List<api.PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPathElement(o[0]); checkPathElement(o[1]); @@ -456,7 +456,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed787(); + o.path = buildUnnamed811(); } buildCounterKey--; return o; @@ -466,7 +466,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed787(o.path); + checkUnnamed811(o.path); } buildCounterKey--; } @@ -511,14 +511,14 @@ buildCounterLatLng--; } -buildUnnamed788() { +buildUnnamed812() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed788(core.List<api.Key> o) { +checkUnnamed812(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -529,7 +529,7 @@ var o = new api.LookupRequest(); buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - o.keys = buildUnnamed788(); + o.keys = buildUnnamed812(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -539,46 +539,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed788(o.keys); + checkUnnamed812(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed789() { +buildUnnamed813() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed789(core.List<api.Key> o) { +checkUnnamed813(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed790() { +buildUnnamed814() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed790(core.List<api.EntityResult> o) { +checkUnnamed814(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed791() { +buildUnnamed815() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed791(core.List<api.EntityResult> o) { +checkUnnamed815(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -589,9 +589,9 @@ var o = new api.LookupResponse(); buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - o.deferred = buildUnnamed789(); - o.found = buildUnnamed790(); - o.missing = buildUnnamed791(); + o.deferred = buildUnnamed813(); + o.found = buildUnnamed814(); + o.missing = buildUnnamed815(); } buildCounterLookupResponse--; return o; @@ -600,9 +600,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed789(o.deferred); - checkUnnamed790(o.found); - checkUnnamed791(o.missing); + checkUnnamed813(o.deferred); + checkUnnamed814(o.found); + checkUnnamed815(o.missing); } buildCounterLookupResponse--; } @@ -783,53 +783,53 @@ buildCounterPropertyReference--; } -buildUnnamed792() { +buildUnnamed816() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed792(core.List<api.PropertyReference> o) { +checkUnnamed816(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed793() { +buildUnnamed817() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed793(core.List<api.KindExpression> o) { +checkUnnamed817(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed794() { +buildUnnamed818() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed794(core.List<api.PropertyOrder> o) { +checkUnnamed818(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed795() { +buildUnnamed819() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed795(core.List<api.Projection> o) { +checkUnnamed819(core.List<api.Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkProjection(o[0]); checkProjection(o[1]); @@ -840,14 +840,14 @@ var o = new api.Query(); buildCounterQuery++; if (buildCounterQuery < 3) { - o.distinctOn = buildUnnamed792(); + o.distinctOn = buildUnnamed816(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed793(); + o.kind = buildUnnamed817(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed794(); - o.projection = buildUnnamed795(); + o.order = buildUnnamed818(); + o.projection = buildUnnamed819(); o.startCursor = "foo"; } buildCounterQuery--; @@ -857,27 +857,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed792(o.distinctOn); + checkUnnamed816(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed793(o.kind); + checkUnnamed817(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed794(o.order); - checkUnnamed795(o.projection); + checkUnnamed818(o.order); + checkUnnamed819(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed796() { +buildUnnamed820() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed796(core.List<api.EntityResult> o) { +checkUnnamed820(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -890,7 +890,7 @@ if (buildCounterQueryResultBatch < 3) { o.endCursor = "foo"; o.entityResultType = "foo"; - o.entityResults = buildUnnamed796(); + o.entityResults = buildUnnamed820(); o.moreResults = "foo"; o.skippedCursor = "foo"; o.skippedResults = 42; @@ -905,7 +905,7 @@ if (buildCounterQueryResultBatch < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); unittest.expect(o.entityResultType, unittest.equals('foo')); - checkUnnamed796(o.entityResults); + checkUnnamed820(o.entityResults); unittest.expect(o.moreResults, unittest.equals('foo')); unittest.expect(o.skippedCursor, unittest.equals('foo')); unittest.expect(o.skippedResults, unittest.equals(42));
diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart index bbad98f..29c261f 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart
@@ -51,6 +51,116 @@ return new http.StreamedResponse(stream, status, headers: headers); } +buildUnnamed2172() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2172(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterAuditConfig = 0; +buildAuditConfig() { + var o = new api.AuditConfig(); + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + o.exemptedMembers = buildUnnamed2172(); + o.service = "foo"; + } + buildCounterAuditConfig--; + return o; +} + +checkAuditConfig(api.AuditConfig o) { + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + checkUnnamed2172(o.exemptedMembers); + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterAuditConfig--; +} + +buildUnnamed2173() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2173(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterBinding = 0; +buildBinding() { + var o = new api.Binding(); + buildCounterBinding++; + if (buildCounterBinding < 3) { + o.members = buildUnnamed2173(); + o.role = "foo"; + } + buildCounterBinding--; + return o; +} + +checkBinding(api.Binding o) { + buildCounterBinding++; + if (buildCounterBinding < 3) { + checkUnnamed2173(o.members); + unittest.expect(o.role, unittest.equals('foo')); + } + buildCounterBinding--; +} + +buildUnnamed2174() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2174(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterCondition = 0; +buildCondition() { + var o = new api.Condition(); + buildCounterCondition++; + if (buildCounterCondition < 3) { + o.iam = "foo"; + o.op = "foo"; + o.svc = "foo"; + o.sys = "foo"; + o.value = "foo"; + o.values = buildUnnamed2174(); + } + buildCounterCondition--; + return o; +} + +checkCondition(api.Condition o) { + buildCounterCondition++; + if (buildCounterCondition < 3) { + unittest.expect(o.iam, unittest.equals('foo')); + unittest.expect(o.op, unittest.equals('foo')); + unittest.expect(o.svc, unittest.equals('foo')); + unittest.expect(o.sys, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + checkUnnamed2174(o.values); + } + buildCounterCondition--; +} + core.int buildCounterConfigFile = 0; buildConfigFile() { var o = new api.ConfigFile(); @@ -70,14 +180,14 @@ buildCounterConfigFile--; } -buildUnnamed2408() { +buildUnnamed2175() { var o = new core.List<api.DeploymentLabelEntry>(); o.add(buildDeploymentLabelEntry()); o.add(buildDeploymentLabelEntry()); return o; } -checkUnnamed2408(core.List<api.DeploymentLabelEntry> o) { +checkUnnamed2175(core.List<api.DeploymentLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentLabelEntry(o[0]); checkDeploymentLabelEntry(o[1]); @@ -92,7 +202,7 @@ o.fingerprint = "foo"; o.id = "foo"; o.insertTime = "foo"; - o.labels = buildUnnamed2408(); + o.labels = buildUnnamed2175(); o.manifest = "foo"; o.name = "foo"; o.operation = buildOperation(); @@ -111,7 +221,7 @@ unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); - checkUnnamed2408(o.labels); + checkUnnamed2175(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkOperation(o.operation); @@ -143,14 +253,14 @@ buildCounterDeploymentLabelEntry--; } -buildUnnamed2409() { +buildUnnamed2176() { var o = new core.List<api.DeploymentUpdateLabelEntry>(); o.add(buildDeploymentUpdateLabelEntry()); o.add(buildDeploymentUpdateLabelEntry()); return o; } -checkUnnamed2409(core.List<api.DeploymentUpdateLabelEntry> o) { +checkUnnamed2176(core.List<api.DeploymentUpdateLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentUpdateLabelEntry(o[0]); checkDeploymentUpdateLabelEntry(o[1]); @@ -161,7 +271,7 @@ var o = new api.DeploymentUpdate(); buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { - o.labels = buildUnnamed2409(); + o.labels = buildUnnamed2176(); o.manifest = "foo"; } buildCounterDeploymentUpdate--; @@ -171,7 +281,7 @@ checkDeploymentUpdate(api.DeploymentUpdate o) { buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { - checkUnnamed2409(o.labels); + checkUnnamed2176(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); } buildCounterDeploymentUpdate--; @@ -217,14 +327,14 @@ buildCounterDeploymentsCancelPreviewRequest--; } -buildUnnamed2410() { +buildUnnamed2177() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed2410(core.List<api.Deployment> o) { +checkUnnamed2177(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -235,7 +345,7 @@ var o = new api.DeploymentsListResponse(); buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - o.deployments = buildUnnamed2410(); + o.deployments = buildUnnamed2177(); o.nextPageToken = "foo"; } buildCounterDeploymentsListResponse--; @@ -245,7 +355,7 @@ checkDeploymentsListResponse(api.DeploymentsListResponse o) { buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - checkUnnamed2410(o.deployments); + checkUnnamed2177(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDeploymentsListResponse--; @@ -291,14 +401,54 @@ buildCounterImportFile--; } -buildUnnamed2411() { +core.int buildCounterLogConfig = 0; +buildLogConfig() { + var o = new api.LogConfig(); + buildCounterLogConfig++; + if (buildCounterLogConfig < 3) { + o.counter = buildLogConfigCounterOptions(); + } + buildCounterLogConfig--; + return o; +} + +checkLogConfig(api.LogConfig o) { + buildCounterLogConfig++; + if (buildCounterLogConfig < 3) { + checkLogConfigCounterOptions(o.counter); + } + buildCounterLogConfig--; +} + +core.int buildCounterLogConfigCounterOptions = 0; +buildLogConfigCounterOptions() { + var o = new api.LogConfigCounterOptions(); + buildCounterLogConfigCounterOptions++; + if (buildCounterLogConfigCounterOptions < 3) { + o.field = "foo"; + o.metric = "foo"; + } + buildCounterLogConfigCounterOptions--; + return o; +} + +checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { + buildCounterLogConfigCounterOptions++; + if (buildCounterLogConfigCounterOptions < 3) { + unittest.expect(o.field, unittest.equals('foo')); + unittest.expect(o.metric, unittest.equals('foo')); + } + buildCounterLogConfigCounterOptions--; +} + +buildUnnamed2178() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2411(core.List<api.ImportFile> o) { +checkUnnamed2178(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -312,7 +462,7 @@ o.config = buildConfigFile(); o.expandedConfig = "foo"; o.id = "foo"; - o.imports = buildUnnamed2411(); + o.imports = buildUnnamed2178(); o.insertTime = "foo"; o.layout = "foo"; o.name = "foo"; @@ -328,7 +478,7 @@ checkConfigFile(o.config); unittest.expect(o.expandedConfig, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2411(o.imports); + checkUnnamed2178(o.imports); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.layout, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -337,14 +487,14 @@ buildCounterManifest--; } -buildUnnamed2412() { +buildUnnamed2179() { var o = new core.List<api.Manifest>(); o.add(buildManifest()); o.add(buildManifest()); return o; } -checkUnnamed2412(core.List<api.Manifest> o) { +checkUnnamed2179(core.List<api.Manifest> o) { unittest.expect(o, unittest.hasLength(2)); checkManifest(o[0]); checkManifest(o[1]); @@ -355,7 +505,7 @@ var o = new api.ManifestsListResponse(); buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - o.manifests = buildUnnamed2412(); + o.manifests = buildUnnamed2179(); o.nextPageToken = "foo"; } buildCounterManifestsListResponse--; @@ -365,7 +515,7 @@ checkManifestsListResponse(api.ManifestsListResponse o) { buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - checkUnnamed2412(o.manifests); + checkUnnamed2179(o.manifests); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManifestsListResponse--; @@ -394,14 +544,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2413() { +buildUnnamed2180() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2413(core.List<api.OperationErrorErrors> o) { +checkUnnamed2180(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -412,7 +562,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2413(); + o.errors = buildUnnamed2180(); } buildCounterOperationError--; return o; @@ -421,7 +571,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2413(o.errors); + checkUnnamed2180(o.errors); } buildCounterOperationError--; } @@ -447,14 +597,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2414() { +buildUnnamed2181() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2414(core.List<api.OperationWarningsData> o) { +checkUnnamed2181(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -466,7 +616,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2414(); + o.data = buildUnnamed2181(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -477,20 +627,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2414(o.data); + checkUnnamed2181(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2415() { +buildUnnamed2182() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2415(core.List<api.OperationWarnings> o) { +checkUnnamed2182(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -522,7 +672,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2415(); + o.warnings = buildUnnamed2182(); o.zone = "foo"; } buildCounterOperation--; @@ -553,20 +703,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2415(o.warnings); + checkUnnamed2182(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2416() { +buildUnnamed2183() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2416(core.List<api.Operation> o) { +checkUnnamed2183(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -578,7 +728,7 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2416(); + o.operations = buildUnnamed2183(); } buildCounterOperationsListResponse--; return o; @@ -588,11 +738,79 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2416(o.operations); + checkUnnamed2183(o.operations); } buildCounterOperationsListResponse--; } +buildUnnamed2184() { + var o = new core.List<api.AuditConfig>(); + o.add(buildAuditConfig()); + o.add(buildAuditConfig()); + return o; +} + +checkUnnamed2184(core.List<api.AuditConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditConfig(o[0]); + checkAuditConfig(o[1]); +} + +buildUnnamed2185() { + var o = new core.List<api.Binding>(); + o.add(buildBinding()); + o.add(buildBinding()); + return o; +} + +checkUnnamed2185(core.List<api.Binding> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBinding(o[0]); + checkBinding(o[1]); +} + +buildUnnamed2186() { + var o = new core.List<api.Rule>(); + o.add(buildRule()); + o.add(buildRule()); + return o; +} + +checkUnnamed2186(core.List<api.Rule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRule(o[0]); + checkRule(o[1]); +} + +core.int buildCounterPolicy = 0; +buildPolicy() { + var o = new api.Policy(); + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + o.auditConfigs = buildUnnamed2184(); + o.bindings = buildUnnamed2185(); + o.etag = "foo"; + o.iamOwned = true; + o.rules = buildUnnamed2186(); + o.version = 42; + } + buildCounterPolicy--; + return o; +} + +checkPolicy(api.Policy o) { + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + checkUnnamed2184(o.auditConfigs); + checkUnnamed2185(o.bindings); + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.iamOwned, unittest.isTrue); + checkUnnamed2186(o.rules); + unittest.expect(o.version, unittest.equals(42)); + } + buildCounterPolicy--; +} + core.int buildCounterResourceWarningsData = 0; buildResourceWarningsData() { var o = new api.ResourceWarningsData(); @@ -614,14 +832,14 @@ buildCounterResourceWarningsData--; } -buildUnnamed2417() { +buildUnnamed2187() { var o = new core.List<api.ResourceWarningsData>(); o.add(buildResourceWarningsData()); o.add(buildResourceWarningsData()); return o; } -checkUnnamed2417(core.List<api.ResourceWarningsData> o) { +checkUnnamed2187(core.List<api.ResourceWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarningsData(o[0]); checkResourceWarningsData(o[1]); @@ -633,7 +851,7 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2417(); + o.data = buildUnnamed2187(); o.message = "foo"; } buildCounterResourceWarnings--; @@ -644,20 +862,20 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2417(o.data); + checkUnnamed2187(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceWarnings--; } -buildUnnamed2418() { +buildUnnamed2188() { var o = new core.List<api.ResourceWarnings>(); o.add(buildResourceWarnings()); o.add(buildResourceWarnings()); return o; } -checkUnnamed2418(core.List<api.ResourceWarnings> o) { +checkUnnamed2188(core.List<api.ResourceWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarnings(o[0]); checkResourceWarnings(o[1]); @@ -668,6 +886,7 @@ var o = new api.Resource(); buildCounterResource++; if (buildCounterResource < 3) { + o.accessControl = buildResourceAccessControl(); o.finalProperties = "foo"; o.id = "foo"; o.insertTime = "foo"; @@ -678,7 +897,7 @@ o.update = buildResourceUpdate(); o.updateTime = "foo"; o.url = "foo"; - o.warnings = buildUnnamed2418(); + o.warnings = buildUnnamed2188(); } buildCounterResource--; return o; @@ -687,6 +906,7 @@ checkResource(api.Resource o) { buildCounterResource++; if (buildCounterResource < 3) { + checkResourceAccessControl(o.accessControl); unittest.expect(o.finalProperties, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); @@ -697,11 +917,30 @@ checkResourceUpdate(o.update); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed2418(o.warnings); + checkUnnamed2188(o.warnings); } buildCounterResource--; } +core.int buildCounterResourceAccessControl = 0; +buildResourceAccessControl() { + var o = new api.ResourceAccessControl(); + buildCounterResourceAccessControl++; + if (buildCounterResourceAccessControl < 3) { + o.gcpIamPolicy = "foo"; + } + buildCounterResourceAccessControl--; + return o; +} + +checkResourceAccessControl(api.ResourceAccessControl o) { + buildCounterResourceAccessControl++; + if (buildCounterResourceAccessControl < 3) { + unittest.expect(o.gcpIamPolicy, unittest.equals('foo')); + } + buildCounterResourceAccessControl--; +} + core.int buildCounterResourceUpdateErrorErrors = 0; buildResourceUpdateErrorErrors() { var o = new api.ResourceUpdateErrorErrors(); @@ -725,14 +964,14 @@ buildCounterResourceUpdateErrorErrors--; } -buildUnnamed2419() { +buildUnnamed2189() { var o = new core.List<api.ResourceUpdateErrorErrors>(); o.add(buildResourceUpdateErrorErrors()); o.add(buildResourceUpdateErrorErrors()); return o; } -checkUnnamed2419(core.List<api.ResourceUpdateErrorErrors> o) { +checkUnnamed2189(core.List<api.ResourceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateErrorErrors(o[0]); checkResourceUpdateErrorErrors(o[1]); @@ -743,7 +982,7 @@ var o = new api.ResourceUpdateError(); buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - o.errors = buildUnnamed2419(); + o.errors = buildUnnamed2189(); } buildCounterResourceUpdateError--; return o; @@ -752,7 +991,7 @@ checkResourceUpdateError(api.ResourceUpdateError o) { buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - checkUnnamed2419(o.errors); + checkUnnamed2189(o.errors); } buildCounterResourceUpdateError--; } @@ -778,14 +1017,14 @@ buildCounterResourceUpdateWarningsData--; } -buildUnnamed2420() { +buildUnnamed2190() { var o = new core.List<api.ResourceUpdateWarningsData>(); o.add(buildResourceUpdateWarningsData()); o.add(buildResourceUpdateWarningsData()); return o; } -checkUnnamed2420(core.List<api.ResourceUpdateWarningsData> o) { +checkUnnamed2190(core.List<api.ResourceUpdateWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarningsData(o[0]); checkResourceUpdateWarningsData(o[1]); @@ -797,7 +1036,7 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2420(); + o.data = buildUnnamed2190(); o.message = "foo"; } buildCounterResourceUpdateWarnings--; @@ -808,20 +1047,20 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2420(o.data); + checkUnnamed2190(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceUpdateWarnings--; } -buildUnnamed2421() { +buildUnnamed2191() { var o = new core.List<api.ResourceUpdateWarnings>(); o.add(buildResourceUpdateWarnings()); o.add(buildResourceUpdateWarnings()); return o; } -checkUnnamed2421(core.List<api.ResourceUpdateWarnings> o) { +checkUnnamed2191(core.List<api.ResourceUpdateWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarnings(o[0]); checkResourceUpdateWarnings(o[1]); @@ -832,13 +1071,14 @@ var o = new api.ResourceUpdate(); buildCounterResourceUpdate++; if (buildCounterResourceUpdate < 3) { + o.accessControl = buildResourceAccessControl(); o.error = buildResourceUpdateError(); o.finalProperties = "foo"; o.intent = "foo"; o.manifest = "foo"; o.properties = "foo"; o.state = "foo"; - o.warnings = buildUnnamed2421(); + o.warnings = buildUnnamed2191(); } buildCounterResourceUpdate--; return o; @@ -847,25 +1087,26 @@ checkResourceUpdate(api.ResourceUpdate o) { buildCounterResourceUpdate++; if (buildCounterResourceUpdate < 3) { + checkResourceAccessControl(o.accessControl); checkResourceUpdateError(o.error); unittest.expect(o.finalProperties, unittest.equals('foo')); unittest.expect(o.intent, unittest.equals('foo')); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.properties, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2421(o.warnings); + checkUnnamed2191(o.warnings); } buildCounterResourceUpdate--; } -buildUnnamed2422() { +buildUnnamed2192() { var o = new core.List<api.Resource>(); o.add(buildResource()); o.add(buildResource()); return o; } -checkUnnamed2422(core.List<api.Resource> o) { +checkUnnamed2192(core.List<api.Resource> o) { unittest.expect(o, unittest.hasLength(2)); checkResource(o[0]); checkResource(o[1]); @@ -877,7 +1118,7 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { o.nextPageToken = "foo"; - o.resources = buildUnnamed2422(); + o.resources = buildUnnamed2192(); } buildCounterResourcesListResponse--; return o; @@ -887,19 +1128,115 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2422(o.resources); + checkUnnamed2192(o.resources); } buildCounterResourcesListResponse--; } -buildUnnamed2423() { +buildUnnamed2193() { + var o = new core.List<api.Condition>(); + o.add(buildCondition()); + o.add(buildCondition()); + return o; +} + +checkUnnamed2193(core.List<api.Condition> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCondition(o[0]); + checkCondition(o[1]); +} + +buildUnnamed2194() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2194(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2195() { + var o = new core.List<api.LogConfig>(); + o.add(buildLogConfig()); + o.add(buildLogConfig()); + return o; +} + +checkUnnamed2195(core.List<api.LogConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogConfig(o[0]); + checkLogConfig(o[1]); +} + +buildUnnamed2196() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2196(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2197() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2197(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRule = 0; +buildRule() { + var o = new api.Rule(); + buildCounterRule++; + if (buildCounterRule < 3) { + o.action = "foo"; + o.conditions = buildUnnamed2193(); + o.description = "foo"; + o.ins = buildUnnamed2194(); + o.logConfigs = buildUnnamed2195(); + o.notIns = buildUnnamed2196(); + o.permissions = buildUnnamed2197(); + } + buildCounterRule--; + return o; +} + +checkRule(api.Rule o) { + buildCounterRule++; + if (buildCounterRule < 3) { + unittest.expect(o.action, unittest.equals('foo')); + checkUnnamed2193(o.conditions); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed2194(o.ins); + checkUnnamed2195(o.logConfigs); + checkUnnamed2196(o.notIns); + checkUnnamed2197(o.permissions); + } + buildCounterRule--; +} + +buildUnnamed2198() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2423(core.List<api.ImportFile> o) { +checkUnnamed2198(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -911,7 +1248,7 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { o.config = buildConfigFile(); - o.imports = buildUnnamed2423(); + o.imports = buildUnnamed2198(); } buildCounterTargetConfiguration--; return o; @@ -921,11 +1258,75 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { checkConfigFile(o.config); - checkUnnamed2423(o.imports); + checkUnnamed2198(o.imports); } buildCounterTargetConfiguration--; } +buildUnnamed2199() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2199(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterTestPermissionsRequest = 0; +buildTestPermissionsRequest() { + var o = new api.TestPermissionsRequest(); + buildCounterTestPermissionsRequest++; + if (buildCounterTestPermissionsRequest < 3) { + o.permissions = buildUnnamed2199(); + } + buildCounterTestPermissionsRequest--; + return o; +} + +checkTestPermissionsRequest(api.TestPermissionsRequest o) { + buildCounterTestPermissionsRequest++; + if (buildCounterTestPermissionsRequest < 3) { + checkUnnamed2199(o.permissions); + } + buildCounterTestPermissionsRequest--; +} + +buildUnnamed2200() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2200(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterTestPermissionsResponse = 0; +buildTestPermissionsResponse() { + var o = new api.TestPermissionsResponse(); + buildCounterTestPermissionsResponse++; + if (buildCounterTestPermissionsResponse < 3) { + o.permissions = buildUnnamed2200(); + } + buildCounterTestPermissionsResponse--; + return o; +} + +checkTestPermissionsResponse(api.TestPermissionsResponse o) { + buildCounterTestPermissionsResponse++; + if (buildCounterTestPermissionsResponse < 3) { + checkUnnamed2200(o.permissions); + } + buildCounterTestPermissionsResponse--; +} + core.int buildCounterType = 0; buildType() { var o = new api.Type(); @@ -953,14 +1354,14 @@ buildCounterType--; } -buildUnnamed2424() { +buildUnnamed2201() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2424(core.List<api.Type> o) { +checkUnnamed2201(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -972,7 +1373,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { o.nextPageToken = "foo"; - o.types = buildUnnamed2424(); + o.types = buildUnnamed2201(); } buildCounterTypesListResponse--; return o; @@ -982,13 +1383,40 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2424(o.types); + checkUnnamed2201(o.types); } buildCounterTypesListResponse--; } main() { + unittest.group("obj-schema-AuditConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAuditConfig(); + var od = new api.AuditConfig.fromJson(o.toJson()); + checkAuditConfig(od); + }); + }); + + + unittest.group("obj-schema-Binding", () { + unittest.test("to-json--from-json", () { + var o = buildBinding(); + var od = new api.Binding.fromJson(o.toJson()); + checkBinding(od); + }); + }); + + + unittest.group("obj-schema-Condition", () { + unittest.test("to-json--from-json", () { + var o = buildCondition(); + var od = new api.Condition.fromJson(o.toJson()); + checkCondition(od); + }); + }); + + unittest.group("obj-schema-ConfigFile", () { unittest.test("to-json--from-json", () { var o = buildConfigFile(); @@ -1070,6 +1498,24 @@ }); + unittest.group("obj-schema-LogConfig", () { + unittest.test("to-json--from-json", () { + var o = buildLogConfig(); + var od = new api.LogConfig.fromJson(o.toJson()); + checkLogConfig(od); + }); + }); + + + unittest.group("obj-schema-LogConfigCounterOptions", () { + unittest.test("to-json--from-json", () { + var o = buildLogConfigCounterOptions(); + var od = new api.LogConfigCounterOptions.fromJson(o.toJson()); + checkLogConfigCounterOptions(od); + }); + }); + + unittest.group("obj-schema-Manifest", () { unittest.test("to-json--from-json", () { var o = buildManifest(); @@ -1142,6 +1588,15 @@ }); + unittest.group("obj-schema-Policy", () { + unittest.test("to-json--from-json", () { + var o = buildPolicy(); + var od = new api.Policy.fromJson(o.toJson()); + checkPolicy(od); + }); + }); + + unittest.group("obj-schema-ResourceWarningsData", () { unittest.test("to-json--from-json", () { var o = buildResourceWarningsData(); @@ -1169,6 +1624,15 @@ }); + unittest.group("obj-schema-ResourceAccessControl", () { + unittest.test("to-json--from-json", () { + var o = buildResourceAccessControl(); + var od = new api.ResourceAccessControl.fromJson(o.toJson()); + checkResourceAccessControl(od); + }); + }); + + unittest.group("obj-schema-ResourceUpdateErrorErrors", () { unittest.test("to-json--from-json", () { var o = buildResourceUpdateErrorErrors(); @@ -1223,6 +1687,15 @@ }); + unittest.group("obj-schema-Rule", () { + unittest.test("to-json--from-json", () { + var o = buildRule(); + var od = new api.Rule.fromJson(o.toJson()); + checkRule(od); + }); + }); + + unittest.group("obj-schema-TargetConfiguration", () { unittest.test("to-json--from-json", () { var o = buildTargetConfiguration(); @@ -1232,6 +1705,24 @@ }); + unittest.group("obj-schema-TestPermissionsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTestPermissionsRequest(); + var od = new api.TestPermissionsRequest.fromJson(o.toJson()); + checkTestPermissionsRequest(od); + }); + }); + + + unittest.group("obj-schema-TestPermissionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildTestPermissionsResponse(); + var od = new api.TestPermissionsResponse.fromJson(o.toJson()); + checkTestPermissionsResponse(od); + }); + }); + + unittest.group("obj-schema-Type", () { unittest.test("to-json--from-json", () { var o = buildType(); @@ -1384,6 +1875,49 @@ }))); }); + unittest.test("method--getIamPolicy", () { + + var mock = new HttpServerMock(); + api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; + var arg_project = "foo"; + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getIamPolicy(arg_project, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + unittest.test("method--insert", () { var mock = new HttpServerMock(); @@ -1439,6 +1973,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1466,6 +2001,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1475,7 +2011,7 @@ var resp = convert.JSON.encode(buildDeploymentsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DeploymentsListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DeploymentsListResponse response) { checkDeploymentsListResponse(response); }))); }); @@ -1533,6 +2069,53 @@ }))); }); + unittest.test("method--setIamPolicy", () { + + var mock = new HttpServerMock(); + api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; + var arg_request = buildPolicy(); + var arg_project = "foo"; + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Policy.fromJson(json); + checkPolicy(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setIamPolicy(arg_request, arg_project, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + unittest.test("method--stop", () { var mock = new HttpServerMock(); @@ -1580,6 +2163,53 @@ }))); }); + unittest.test("method--testIamPermissions", () { + + var mock = new HttpServerMock(); + api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; + var arg_request = buildTestPermissionsRequest(); + var arg_project = "foo"; + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TestPermissionsRequest.fromJson(json); + checkTestPermissionsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTestPermissionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.testIamPermissions(arg_request, arg_project, arg_resource).then(unittest.expectAsync(((api.TestPermissionsResponse response) { + checkTestPermissionsResponse(response); + }))); + }); + unittest.test("method--update", () { var mock = new HttpServerMock(); @@ -1689,6 +2319,7 @@ var arg_deployment = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1716,6 +2347,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1725,7 +2357,7 @@ var resp = convert.JSON.encode(buildManifestsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManifestsListResponse response) { + res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManifestsListResponse response) { checkManifestsListResponse(response); }))); }); @@ -1784,6 +2416,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1811,6 +2444,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1820,7 +2454,7 @@ var resp = convert.JSON.encode(buildOperationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationsListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationsListResponse response) { checkOperationsListResponse(response); }))); }); @@ -1881,6 +2515,7 @@ var arg_deployment = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1908,6 +2543,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1917,7 +2553,7 @@ var resp = convert.JSON.encode(buildResourcesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ResourcesListResponse response) { + res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ResourcesListResponse response) { checkResourcesListResponse(response); }))); }); @@ -1933,6 +2569,7 @@ var arg_project = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1960,6 +2597,7 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1969,7 +2607,7 @@ var resp = convert.JSON.encode(buildTypesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response) { checkTypesListResponse(response); }))); });
diff --git a/generated/googleapis/test/dfareporting/v2_2_test.dart b/generated/googleapis/test/dfareporting/v2_2_test.dart deleted file mode 100644 index 211b4b4..0000000 --- a/generated/googleapis/test/dfareporting/v2_2_test.dart +++ /dev/null
@@ -1,22742 +0,0 @@ -library googleapis.dfareporting.v2_2.test; - -import "dart:core" as core; -import "dart:collection" as collection; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; - -import 'package:googleapis/dfareporting/v2_2.dart' as api; - -class HttpServerMock extends http.BaseClient { - core.Function _callback; - core.bool _expectJson; - - void register(core.Function callback, core.bool expectJson) { - _callback = callback; - _expectJson = expectJson; - } - - async.Future<http.StreamedResponse> send(http.BaseRequest request) { - if (_expectJson) { - return request.finalize() - .transform(convert.UTF8.decoder) - .join('') - .then((core.String jsonString) { - if (jsonString.isEmpty) { - return _callback(request, null); - } else { - return _callback(request, convert.JSON.decode(jsonString)); - } - }); - } else { - var stream = request.finalize(); - if (stream == null) { - return _callback(request, []); - } else { - return stream.toBytes().then((data) { - return _callback(request, data); - }); - } - } - } -} - -http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -buildUnnamed3042() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3042(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3043() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3043(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterAccount = 0; -buildAccount() { - var o = new api.Account(); - buildCounterAccount++; - if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed3042(); - o.accountProfile = "foo"; - o.active = true; - o.activeAdsLimitTier = "foo"; - o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed3043(); - o.comscoreVceEnabled = true; - o.countryId = "foo"; - o.currencyId = "foo"; - o.defaultCreativeSizeId = "foo"; - o.description = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.locale = "foo"; - o.maximumImageSize = "foo"; - o.name = "foo"; - o.nielsenOcrEnabled = true; - o.reportsConfiguration = buildReportsConfiguration(); - o.teaserSizeLimit = "foo"; - } - buildCounterAccount--; - return o; -} - -checkAccount(api.Account o) { - buildCounterAccount++; - if (buildCounterAccount < 3) { - checkUnnamed3042(o.accountPermissionIds); - unittest.expect(o.accountProfile, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); - unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed3043(o.availablePermissionIds); - unittest.expect(o.comscoreVceEnabled, unittest.isTrue); - unittest.expect(o.countryId, unittest.equals('foo')); - unittest.expect(o.currencyId, unittest.equals('foo')); - unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.locale, unittest.equals('foo')); - unittest.expect(o.maximumImageSize, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); - checkReportsConfiguration(o.reportsConfiguration); - unittest.expect(o.teaserSizeLimit, unittest.equals('foo')); - } - buildCounterAccount--; -} - -core.int buildCounterAccountActiveAdSummary = 0; -buildAccountActiveAdSummary() { - var o = new api.AccountActiveAdSummary(); - buildCounterAccountActiveAdSummary++; - if (buildCounterAccountActiveAdSummary < 3) { - o.accountId = "foo"; - o.activeAds = "foo"; - o.activeAdsLimitTier = "foo"; - o.availableAds = "foo"; - o.kind = "foo"; - } - buildCounterAccountActiveAdSummary--; - return o; -} - -checkAccountActiveAdSummary(api.AccountActiveAdSummary o) { - buildCounterAccountActiveAdSummary++; - if (buildCounterAccountActiveAdSummary < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.activeAds, unittest.equals('foo')); - unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); - unittest.expect(o.availableAds, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAccountActiveAdSummary--; -} - -buildUnnamed3044() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3044(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterAccountPermission = 0; -buildAccountPermission() { - var o = new api.AccountPermission(); - buildCounterAccountPermission++; - if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed3044(); - o.id = "foo"; - o.kind = "foo"; - o.level = "foo"; - o.name = "foo"; - o.permissionGroupId = "foo"; - } - buildCounterAccountPermission--; - return o; -} - -checkAccountPermission(api.AccountPermission o) { - buildCounterAccountPermission++; - if (buildCounterAccountPermission < 3) { - checkUnnamed3044(o.accountProfiles); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.level, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.permissionGroupId, unittest.equals('foo')); - } - buildCounterAccountPermission--; -} - -core.int buildCounterAccountPermissionGroup = 0; -buildAccountPermissionGroup() { - var o = new api.AccountPermissionGroup(); - buildCounterAccountPermissionGroup++; - if (buildCounterAccountPermissionGroup < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterAccountPermissionGroup--; - return o; -} - -checkAccountPermissionGroup(api.AccountPermissionGroup o) { - buildCounterAccountPermissionGroup++; - if (buildCounterAccountPermissionGroup < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAccountPermissionGroup--; -} - -buildUnnamed3045() { - var o = new core.List<api.AccountPermissionGroup>(); - o.add(buildAccountPermissionGroup()); - o.add(buildAccountPermissionGroup()); - return o; -} - -checkUnnamed3045(core.List<api.AccountPermissionGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccountPermissionGroup(o[0]); - checkAccountPermissionGroup(o[1]); -} - -core.int buildCounterAccountPermissionGroupsListResponse = 0; -buildAccountPermissionGroupsListResponse() { - var o = new api.AccountPermissionGroupsListResponse(); - buildCounterAccountPermissionGroupsListResponse++; - if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed3045(); - o.kind = "foo"; - } - buildCounterAccountPermissionGroupsListResponse--; - return o; -} - -checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { - buildCounterAccountPermissionGroupsListResponse++; - if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed3045(o.accountPermissionGroups); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAccountPermissionGroupsListResponse--; -} - -buildUnnamed3046() { - var o = new core.List<api.AccountPermission>(); - o.add(buildAccountPermission()); - o.add(buildAccountPermission()); - return o; -} - -checkUnnamed3046(core.List<api.AccountPermission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccountPermission(o[0]); - checkAccountPermission(o[1]); -} - -core.int buildCounterAccountPermissionsListResponse = 0; -buildAccountPermissionsListResponse() { - var o = new api.AccountPermissionsListResponse(); - buildCounterAccountPermissionsListResponse++; - if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed3046(); - o.kind = "foo"; - } - buildCounterAccountPermissionsListResponse--; - return o; -} - -checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { - buildCounterAccountPermissionsListResponse++; - if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed3046(o.accountPermissions); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAccountPermissionsListResponse--; -} - -core.int buildCounterAccountUserProfile = 0; -buildAccountUserProfile() { - var o = new api.AccountUserProfile(); - buildCounterAccountUserProfile++; - if (buildCounterAccountUserProfile < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserFilter = buildObjectFilter(); - o.campaignFilter = buildObjectFilter(); - o.comments = "foo"; - o.email = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.locale = "foo"; - o.name = "foo"; - o.siteFilter = buildObjectFilter(); - o.subaccountId = "foo"; - o.traffickerType = "foo"; - o.userAccessType = "foo"; - o.userRoleFilter = buildObjectFilter(); - o.userRoleId = "foo"; - } - buildCounterAccountUserProfile--; - return o; -} - -checkAccountUserProfile(api.AccountUserProfile o) { - buildCounterAccountUserProfile++; - if (buildCounterAccountUserProfile < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - checkObjectFilter(o.advertiserFilter); - checkObjectFilter(o.campaignFilter); - unittest.expect(o.comments, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.locale, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkObjectFilter(o.siteFilter); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.traffickerType, unittest.equals('foo')); - unittest.expect(o.userAccessType, unittest.equals('foo')); - checkObjectFilter(o.userRoleFilter); - unittest.expect(o.userRoleId, unittest.equals('foo')); - } - buildCounterAccountUserProfile--; -} - -buildUnnamed3047() { - var o = new core.List<api.AccountUserProfile>(); - o.add(buildAccountUserProfile()); - o.add(buildAccountUserProfile()); - return o; -} - -checkUnnamed3047(core.List<api.AccountUserProfile> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccountUserProfile(o[0]); - checkAccountUserProfile(o[1]); -} - -core.int buildCounterAccountUserProfilesListResponse = 0; -buildAccountUserProfilesListResponse() { - var o = new api.AccountUserProfilesListResponse(); - buildCounterAccountUserProfilesListResponse++; - if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed3047(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAccountUserProfilesListResponse--; - return o; -} - -checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { - buildCounterAccountUserProfilesListResponse++; - if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed3047(o.accountUserProfiles); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAccountUserProfilesListResponse--; -} - -buildUnnamed3048() { - var o = new core.List<api.Account>(); - o.add(buildAccount()); - o.add(buildAccount()); - return o; -} - -checkUnnamed3048(core.List<api.Account> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccount(o[0]); - checkAccount(o[1]); -} - -core.int buildCounterAccountsListResponse = 0; -buildAccountsListResponse() { - var o = new api.AccountsListResponse(); - buildCounterAccountsListResponse++; - if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed3048(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAccountsListResponse--; - return o; -} - -checkAccountsListResponse(api.AccountsListResponse o) { - buildCounterAccountsListResponse++; - if (buildCounterAccountsListResponse < 3) { - checkUnnamed3048(o.accounts); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAccountsListResponse--; -} - -buildUnnamed3049() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3049(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3050() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3050(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterActivities = 0; -buildActivities() { - var o = new api.Activities(); - buildCounterActivities++; - if (buildCounterActivities < 3) { - o.filters = buildUnnamed3049(); - o.kind = "foo"; - o.metricNames = buildUnnamed3050(); - } - buildCounterActivities--; - return o; -} - -checkActivities(api.Activities o) { - buildCounterActivities++; - if (buildCounterActivities < 3) { - checkUnnamed3049(o.filters); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3050(o.metricNames); - } - buildCounterActivities--; -} - -buildUnnamed3051() { - var o = new core.List<api.CreativeGroupAssignment>(); - o.add(buildCreativeGroupAssignment()); - o.add(buildCreativeGroupAssignment()); - return o; -} - -checkUnnamed3051(core.List<api.CreativeGroupAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroupAssignment(o[0]); - checkCreativeGroupAssignment(o[1]); -} - -buildUnnamed3052() { - var o = new core.List<api.EventTagOverride>(); - o.add(buildEventTagOverride()); - o.add(buildEventTagOverride()); - return o; -} - -checkUnnamed3052(core.List<api.EventTagOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTagOverride(o[0]); - checkEventTagOverride(o[1]); -} - -buildUnnamed3053() { - var o = new core.List<api.PlacementAssignment>(); - o.add(buildPlacementAssignment()); - o.add(buildPlacementAssignment()); - return o; -} - -checkUnnamed3053(core.List<api.PlacementAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementAssignment(o[0]); - checkPlacementAssignment(o[1]); -} - -core.int buildCounterAd = 0; -buildAd() { - var o = new api.Ad(); - buildCounterAd++; - if (buildCounterAd < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.audienceSegmentId = "foo"; - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.clickThroughUrl = buildClickThroughUrl(); - o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); - o.comments = "foo"; - o.compatibility = "foo"; - o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed3051(); - o.creativeRotation = buildCreativeRotation(); - o.dayPartTargeting = buildDayPartTargeting(); - o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); - o.deliverySchedule = buildDeliverySchedule(); - o.dynamicClickTracker = true; - o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed3052(); - o.geoTargeting = buildGeoTargeting(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.placementAssignments = buildUnnamed3053(); - o.remarketingListExpression = buildListTargetingExpression(); - o.size = buildSize(); - o.sslCompliant = true; - o.sslRequired = true; - o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.subaccountId = "foo"; - o.technologyTargeting = buildTechnologyTargeting(); - o.type = "foo"; - } - buildCounterAd--; - return o; -} - -checkAd(api.Ad o) { - buildCounterAd++; - if (buildCounterAd < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.audienceSegmentId, unittest.equals('foo')); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - checkClickThroughUrl(o.clickThroughUrl); - checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); - unittest.expect(o.comments, unittest.equals('foo')); - unittest.expect(o.compatibility, unittest.equals('foo')); - checkLastModifiedInfo(o.createInfo); - checkUnnamed3051(o.creativeGroupAssignments); - checkCreativeRotation(o.creativeRotation); - checkDayPartTargeting(o.dayPartTargeting); - checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); - checkDeliverySchedule(o.deliverySchedule); - unittest.expect(o.dynamicClickTracker, unittest.isTrue); - unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed3052(o.eventTagOverrides); - checkGeoTargeting(o.geoTargeting); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - checkKeyValueTargetingExpression(o.keyValueTargetingExpression); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3053(o.placementAssignments); - checkListTargetingExpression(o.remarketingListExpression); - checkSize(o.size); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.sslRequired, unittest.isTrue); - unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkTechnologyTargeting(o.technologyTargeting); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterAd--; -} - -core.int buildCounterAdSlot = 0; -buildAdSlot() { - var o = new api.AdSlot(); - buildCounterAdSlot++; - if (buildCounterAdSlot < 3) { - o.comment = "foo"; - o.compatibility = "foo"; - o.height = "foo"; - o.linkedPlacementId = "foo"; - o.name = "foo"; - o.paymentSourceType = "foo"; - o.primary = true; - o.width = "foo"; - } - buildCounterAdSlot--; - return o; -} - -checkAdSlot(api.AdSlot o) { - buildCounterAdSlot++; - if (buildCounterAdSlot < 3) { - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.compatibility, unittest.equals('foo')); - unittest.expect(o.height, unittest.equals('foo')); - unittest.expect(o.linkedPlacementId, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.paymentSourceType, unittest.equals('foo')); - unittest.expect(o.primary, unittest.isTrue); - unittest.expect(o.width, unittest.equals('foo')); - } - buildCounterAdSlot--; -} - -buildUnnamed3054() { - var o = new core.List<api.Ad>(); - o.add(buildAd()); - o.add(buildAd()); - return o; -} - -checkUnnamed3054(core.List<api.Ad> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAd(o[0]); - checkAd(o[1]); -} - -core.int buildCounterAdsListResponse = 0; -buildAdsListResponse() { - var o = new api.AdsListResponse(); - buildCounterAdsListResponse++; - if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed3054(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdsListResponse--; - return o; -} - -checkAdsListResponse(api.AdsListResponse o) { - buildCounterAdsListResponse++; - if (buildCounterAdsListResponse < 3) { - checkUnnamed3054(o.ads); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAdsListResponse--; -} - -core.int buildCounterAdvertiser = 0; -buildAdvertiser() { - var o = new api.Advertiser(); - buildCounterAdvertiser++; - if (buildCounterAdvertiser < 3) { - o.accountId = "foo"; - o.advertiserGroupId = "foo"; - o.clickThroughUrlSuffix = "foo"; - o.defaultClickThroughEventTagId = "foo"; - o.defaultEmail = "foo"; - o.floodlightConfigurationId = "foo"; - o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.name = "foo"; - o.originalFloodlightConfigurationId = "foo"; - o.status = "foo"; - o.subaccountId = "foo"; - o.suspended = true; - } - buildCounterAdvertiser--; - return o; -} - -checkAdvertiser(api.Advertiser o) { - buildCounterAdvertiser++; - if (buildCounterAdvertiser < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserGroupId, unittest.equals('foo')); - unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); - unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); - unittest.expect(o.defaultEmail, unittest.equals('foo')); - unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); - checkDimensionValue(o.floodlightConfigurationIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.originalFloodlightConfigurationId, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.suspended, unittest.isTrue); - } - buildCounterAdvertiser--; -} - -core.int buildCounterAdvertiserGroup = 0; -buildAdvertiserGroup() { - var o = new api.AdvertiserGroup(); - buildCounterAdvertiserGroup++; - if (buildCounterAdvertiserGroup < 3) { - o.accountId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterAdvertiserGroup--; - return o; -} - -checkAdvertiserGroup(api.AdvertiserGroup o) { - buildCounterAdvertiserGroup++; - if (buildCounterAdvertiserGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAdvertiserGroup--; -} - -buildUnnamed3055() { - var o = new core.List<api.AdvertiserGroup>(); - o.add(buildAdvertiserGroup()); - o.add(buildAdvertiserGroup()); - return o; -} - -checkUnnamed3055(core.List<api.AdvertiserGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAdvertiserGroup(o[0]); - checkAdvertiserGroup(o[1]); -} - -core.int buildCounterAdvertiserGroupsListResponse = 0; -buildAdvertiserGroupsListResponse() { - var o = new api.AdvertiserGroupsListResponse(); - buildCounterAdvertiserGroupsListResponse++; - if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed3055(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdvertiserGroupsListResponse--; - return o; -} - -checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { - buildCounterAdvertiserGroupsListResponse++; - if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed3055(o.advertiserGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAdvertiserGroupsListResponse--; -} - -buildUnnamed3056() { - var o = new core.List<api.Advertiser>(); - o.add(buildAdvertiser()); - o.add(buildAdvertiser()); - return o; -} - -checkUnnamed3056(core.List<api.Advertiser> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAdvertiser(o[0]); - checkAdvertiser(o[1]); -} - -core.int buildCounterAdvertisersListResponse = 0; -buildAdvertisersListResponse() { - var o = new api.AdvertisersListResponse(); - buildCounterAdvertisersListResponse++; - if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed3056(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdvertisersListResponse--; - return o; -} - -checkAdvertisersListResponse(api.AdvertisersListResponse o) { - buildCounterAdvertisersListResponse++; - if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed3056(o.advertisers); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAdvertisersListResponse--; -} - -core.int buildCounterAudienceSegment = 0; -buildAudienceSegment() { - var o = new api.AudienceSegment(); - buildCounterAudienceSegment++; - if (buildCounterAudienceSegment < 3) { - o.allocation = 42; - o.id = "foo"; - o.name = "foo"; - } - buildCounterAudienceSegment--; - return o; -} - -checkAudienceSegment(api.AudienceSegment o) { - buildCounterAudienceSegment++; - if (buildCounterAudienceSegment < 3) { - unittest.expect(o.allocation, unittest.equals(42)); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAudienceSegment--; -} - -buildUnnamed3057() { - var o = new core.List<api.AudienceSegment>(); - o.add(buildAudienceSegment()); - o.add(buildAudienceSegment()); - return o; -} - -checkUnnamed3057(core.List<api.AudienceSegment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAudienceSegment(o[0]); - checkAudienceSegment(o[1]); -} - -core.int buildCounterAudienceSegmentGroup = 0; -buildAudienceSegmentGroup() { - var o = new api.AudienceSegmentGroup(); - buildCounterAudienceSegmentGroup++; - if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed3057(); - o.id = "foo"; - o.name = "foo"; - } - buildCounterAudienceSegmentGroup--; - return o; -} - -checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { - buildCounterAudienceSegmentGroup++; - if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed3057(o.audienceSegments); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAudienceSegmentGroup--; -} - -core.int buildCounterBrowser = 0; -buildBrowser() { - var o = new api.Browser(); - buildCounterBrowser++; - if (buildCounterBrowser < 3) { - o.browserVersionId = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.majorVersion = "foo"; - o.minorVersion = "foo"; - o.name = "foo"; - } - buildCounterBrowser--; - return o; -} - -checkBrowser(api.Browser o) { - buildCounterBrowser++; - if (buildCounterBrowser < 3) { - unittest.expect(o.browserVersionId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.majorVersion, unittest.equals('foo')); - unittest.expect(o.minorVersion, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterBrowser--; -} - -buildUnnamed3058() { - var o = new core.List<api.Browser>(); - o.add(buildBrowser()); - o.add(buildBrowser()); - return o; -} - -checkUnnamed3058(core.List<api.Browser> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBrowser(o[0]); - checkBrowser(o[1]); -} - -core.int buildCounterBrowsersListResponse = 0; -buildBrowsersListResponse() { - var o = new api.BrowsersListResponse(); - buildCounterBrowsersListResponse++; - if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed3058(); - o.kind = "foo"; - } - buildCounterBrowsersListResponse--; - return o; -} - -checkBrowsersListResponse(api.BrowsersListResponse o) { - buildCounterBrowsersListResponse++; - if (buildCounterBrowsersListResponse < 3) { - checkUnnamed3058(o.browsers); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterBrowsersListResponse--; -} - -buildUnnamed3059() { - var o = new core.List<api.CreativeOptimizationConfiguration>(); - o.add(buildCreativeOptimizationConfiguration()); - o.add(buildCreativeOptimizationConfiguration()); - return o; -} - -checkUnnamed3059(core.List<api.CreativeOptimizationConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeOptimizationConfiguration(o[0]); - checkCreativeOptimizationConfiguration(o[1]); -} - -buildUnnamed3060() { - var o = new core.List<api.AudienceSegmentGroup>(); - o.add(buildAudienceSegmentGroup()); - o.add(buildAudienceSegmentGroup()); - return o; -} - -checkUnnamed3060(core.List<api.AudienceSegmentGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAudienceSegmentGroup(o[0]); - checkAudienceSegmentGroup(o[1]); -} - -buildUnnamed3061() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3061(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3062() { - var o = new core.List<api.EventTagOverride>(); - o.add(buildEventTagOverride()); - o.add(buildEventTagOverride()); - return o; -} - -checkUnnamed3062(core.List<api.EventTagOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTagOverride(o[0]); - checkEventTagOverride(o[1]); -} - -buildUnnamed3063() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3063(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCampaign = 0; -buildCampaign() { - var o = new api.Campaign(); - buildCounterCampaign++; - if (buildCounterCampaign < 3) { - o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed3059(); - o.advertiserGroupId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.audienceSegmentGroups = buildUnnamed3060(); - o.billingInvoiceCode = "foo"; - o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); - o.comment = "foo"; - o.comscoreVceEnabled = true; - o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed3061(); - o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); - o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed3062(); - o.externalId = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.lookbackConfiguration = buildLookbackConfiguration(); - o.name = "foo"; - o.nielsenOcrEnabled = true; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed3063(); - } - buildCounterCampaign--; - return o; -} - -checkCampaign(api.Campaign o) { - buildCounterCampaign++; - if (buildCounterCampaign < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3059(o.additionalCreativeOptimizationConfigurations); - unittest.expect(o.advertiserGroupId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - checkUnnamed3060(o.audienceSegmentGroups); - unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); - checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.comscoreVceEnabled, unittest.isTrue); - checkLastModifiedInfo(o.createInfo); - checkUnnamed3061(o.creativeGroupIds); - checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); - checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3062(o.eventTagOverrides); - unittest.expect(o.externalId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed3063(o.traffickerEmails); - } - buildCounterCampaign--; -} - -core.int buildCounterCampaignCreativeAssociation = 0; -buildCampaignCreativeAssociation() { - var o = new api.CampaignCreativeAssociation(); - buildCounterCampaignCreativeAssociation++; - if (buildCounterCampaignCreativeAssociation < 3) { - o.creativeId = "foo"; - o.kind = "foo"; - } - buildCounterCampaignCreativeAssociation--; - return o; -} - -checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) { - buildCounterCampaignCreativeAssociation++; - if (buildCounterCampaignCreativeAssociation < 3) { - unittest.expect(o.creativeId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCampaignCreativeAssociation--; -} - -buildUnnamed3064() { - var o = new core.List<api.CampaignCreativeAssociation>(); - o.add(buildCampaignCreativeAssociation()); - o.add(buildCampaignCreativeAssociation()); - return o; -} - -checkUnnamed3064(core.List<api.CampaignCreativeAssociation> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCampaignCreativeAssociation(o[0]); - checkCampaignCreativeAssociation(o[1]); -} - -core.int buildCounterCampaignCreativeAssociationsListResponse = 0; -buildCampaignCreativeAssociationsListResponse() { - var o = new api.CampaignCreativeAssociationsListResponse(); - buildCounterCampaignCreativeAssociationsListResponse++; - if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed3064(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCampaignCreativeAssociationsListResponse--; - return o; -} - -checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { - buildCounterCampaignCreativeAssociationsListResponse++; - if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed3064(o.campaignCreativeAssociations); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCampaignCreativeAssociationsListResponse--; -} - -buildUnnamed3065() { - var o = new core.List<api.Campaign>(); - o.add(buildCampaign()); - o.add(buildCampaign()); - return o; -} - -checkUnnamed3065(core.List<api.Campaign> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCampaign(o[0]); - checkCampaign(o[1]); -} - -core.int buildCounterCampaignsListResponse = 0; -buildCampaignsListResponse() { - var o = new api.CampaignsListResponse(); - buildCounterCampaignsListResponse++; - if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed3065(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCampaignsListResponse--; - return o; -} - -checkCampaignsListResponse(api.CampaignsListResponse o) { - buildCounterCampaignsListResponse++; - if (buildCounterCampaignsListResponse < 3) { - checkUnnamed3065(o.campaigns); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCampaignsListResponse--; -} - -core.int buildCounterChangeLog = 0; -buildChangeLog() { - var o = new api.ChangeLog(); - buildCounterChangeLog++; - if (buildCounterChangeLog < 3) { - o.accountId = "foo"; - o.action = "foo"; - o.changeTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.fieldName = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.newValue = "foo"; - o.objectId = "foo"; - o.objectType = "foo"; - o.oldValue = "foo"; - o.subaccountId = "foo"; - o.transactionId = "foo"; - o.userProfileId = "foo"; - o.userProfileName = "foo"; - } - buildCounterChangeLog--; - return o; -} - -checkChangeLog(api.ChangeLog o) { - buildCounterChangeLog++; - if (buildCounterChangeLog < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.action, unittest.equals('foo')); - unittest.expect(o.changeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.fieldName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.newValue, unittest.equals('foo')); - unittest.expect(o.objectId, unittest.equals('foo')); - unittest.expect(o.objectType, unittest.equals('foo')); - unittest.expect(o.oldValue, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.transactionId, unittest.equals('foo')); - unittest.expect(o.userProfileId, unittest.equals('foo')); - unittest.expect(o.userProfileName, unittest.equals('foo')); - } - buildCounterChangeLog--; -} - -buildUnnamed3066() { - var o = new core.List<api.ChangeLog>(); - o.add(buildChangeLog()); - o.add(buildChangeLog()); - return o; -} - -checkUnnamed3066(core.List<api.ChangeLog> o) { - unittest.expect(o, unittest.hasLength(2)); - checkChangeLog(o[0]); - checkChangeLog(o[1]); -} - -core.int buildCounterChangeLogsListResponse = 0; -buildChangeLogsListResponse() { - var o = new api.ChangeLogsListResponse(); - buildCounterChangeLogsListResponse++; - if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed3066(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterChangeLogsListResponse--; - return o; -} - -checkChangeLogsListResponse(api.ChangeLogsListResponse o) { - buildCounterChangeLogsListResponse++; - if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed3066(o.changeLogs); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterChangeLogsListResponse--; -} - -buildUnnamed3067() { - var o = new core.List<api.City>(); - o.add(buildCity()); - o.add(buildCity()); - return o; -} - -checkUnnamed3067(core.List<api.City> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCity(o[0]); - checkCity(o[1]); -} - -core.int buildCounterCitiesListResponse = 0; -buildCitiesListResponse() { - var o = new api.CitiesListResponse(); - buildCounterCitiesListResponse++; - if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed3067(); - o.kind = "foo"; - } - buildCounterCitiesListResponse--; - return o; -} - -checkCitiesListResponse(api.CitiesListResponse o) { - buildCounterCitiesListResponse++; - if (buildCounterCitiesListResponse < 3) { - checkUnnamed3067(o.cities); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCitiesListResponse--; -} - -core.int buildCounterCity = 0; -buildCity() { - var o = new api.City(); - buildCounterCity++; - if (buildCounterCity < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.metroCode = "foo"; - o.metroDmaId = "foo"; - o.name = "foo"; - o.regionCode = "foo"; - o.regionDartId = "foo"; - } - buildCounterCity--; - return o; -} - -checkCity(api.City o) { - buildCounterCity++; - if (buildCounterCity < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.metroCode, unittest.equals('foo')); - unittest.expect(o.metroDmaId, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.regionCode, unittest.equals('foo')); - unittest.expect(o.regionDartId, unittest.equals('foo')); - } - buildCounterCity--; -} - -core.int buildCounterClickTag = 0; -buildClickTag() { - var o = new api.ClickTag(); - buildCounterClickTag++; - if (buildCounterClickTag < 3) { - o.eventName = "foo"; - o.name = "foo"; - o.value = "foo"; - } - buildCounterClickTag--; - return o; -} - -checkClickTag(api.ClickTag o) { - buildCounterClickTag++; - if (buildCounterClickTag < 3) { - unittest.expect(o.eventName, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterClickTag--; -} - -core.int buildCounterClickThroughUrl = 0; -buildClickThroughUrl() { - var o = new api.ClickThroughUrl(); - buildCounterClickThroughUrl++; - if (buildCounterClickThroughUrl < 3) { - o.computedClickThroughUrl = "foo"; - o.customClickThroughUrl = "foo"; - o.defaultLandingPage = true; - o.landingPageId = "foo"; - } - buildCounterClickThroughUrl--; - return o; -} - -checkClickThroughUrl(api.ClickThroughUrl o) { - buildCounterClickThroughUrl++; - if (buildCounterClickThroughUrl < 3) { - unittest.expect(o.computedClickThroughUrl, unittest.equals('foo')); - unittest.expect(o.customClickThroughUrl, unittest.equals('foo')); - unittest.expect(o.defaultLandingPage, unittest.isTrue); - unittest.expect(o.landingPageId, unittest.equals('foo')); - } - buildCounterClickThroughUrl--; -} - -core.int buildCounterClickThroughUrlSuffixProperties = 0; -buildClickThroughUrlSuffixProperties() { - var o = new api.ClickThroughUrlSuffixProperties(); - buildCounterClickThroughUrlSuffixProperties++; - if (buildCounterClickThroughUrlSuffixProperties < 3) { - o.clickThroughUrlSuffix = "foo"; - o.overrideInheritedSuffix = true; - } - buildCounterClickThroughUrlSuffixProperties--; - return o; -} - -checkClickThroughUrlSuffixProperties(api.ClickThroughUrlSuffixProperties o) { - buildCounterClickThroughUrlSuffixProperties++; - if (buildCounterClickThroughUrlSuffixProperties < 3) { - unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); - unittest.expect(o.overrideInheritedSuffix, unittest.isTrue); - } - buildCounterClickThroughUrlSuffixProperties--; -} - -core.int buildCounterCompanionClickThroughOverride = 0; -buildCompanionClickThroughOverride() { - var o = new api.CompanionClickThroughOverride(); - buildCounterCompanionClickThroughOverride++; - if (buildCounterCompanionClickThroughOverride < 3) { - o.clickThroughUrl = buildClickThroughUrl(); - o.creativeId = "foo"; - } - buildCounterCompanionClickThroughOverride--; - return o; -} - -checkCompanionClickThroughOverride(api.CompanionClickThroughOverride o) { - buildCounterCompanionClickThroughOverride++; - if (buildCounterCompanionClickThroughOverride < 3) { - checkClickThroughUrl(o.clickThroughUrl); - unittest.expect(o.creativeId, unittest.equals('foo')); - } - buildCounterCompanionClickThroughOverride--; -} - -core.int buildCounterCompatibleFields = 0; -buildCompatibleFields() { - var o = new api.CompatibleFields(); - buildCounterCompatibleFields++; - if (buildCounterCompatibleFields < 3) { - o.crossDimensionReachReportCompatibleFields = buildCrossDimensionReachReportCompatibleFields(); - o.floodlightReportCompatibleFields = buildFloodlightReportCompatibleFields(); - o.kind = "foo"; - o.pathToConversionReportCompatibleFields = buildPathToConversionReportCompatibleFields(); - o.reachReportCompatibleFields = buildReachReportCompatibleFields(); - o.reportCompatibleFields = buildReportCompatibleFields(); - } - buildCounterCompatibleFields--; - return o; -} - -checkCompatibleFields(api.CompatibleFields o) { - buildCounterCompatibleFields++; - if (buildCounterCompatibleFields < 3) { - checkCrossDimensionReachReportCompatibleFields(o.crossDimensionReachReportCompatibleFields); - checkFloodlightReportCompatibleFields(o.floodlightReportCompatibleFields); - unittest.expect(o.kind, unittest.equals('foo')); - checkPathToConversionReportCompatibleFields(o.pathToConversionReportCompatibleFields); - checkReachReportCompatibleFields(o.reachReportCompatibleFields); - checkReportCompatibleFields(o.reportCompatibleFields); - } - buildCounterCompatibleFields--; -} - -core.int buildCounterConnectionType = 0; -buildConnectionType() { - var o = new api.ConnectionType(); - buildCounterConnectionType++; - if (buildCounterConnectionType < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterConnectionType--; - return o; -} - -checkConnectionType(api.ConnectionType o) { - buildCounterConnectionType++; - if (buildCounterConnectionType < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterConnectionType--; -} - -buildUnnamed3068() { - var o = new core.List<api.ConnectionType>(); - o.add(buildConnectionType()); - o.add(buildConnectionType()); - return o; -} - -checkUnnamed3068(core.List<api.ConnectionType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkConnectionType(o[0]); - checkConnectionType(o[1]); -} - -core.int buildCounterConnectionTypesListResponse = 0; -buildConnectionTypesListResponse() { - var o = new api.ConnectionTypesListResponse(); - buildCounterConnectionTypesListResponse++; - if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed3068(); - o.kind = "foo"; - } - buildCounterConnectionTypesListResponse--; - return o; -} - -checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { - buildCounterConnectionTypesListResponse++; - if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed3068(o.connectionTypes); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterConnectionTypesListResponse--; -} - -buildUnnamed3069() { - var o = new core.List<api.ContentCategory>(); - o.add(buildContentCategory()); - o.add(buildContentCategory()); - return o; -} - -checkUnnamed3069(core.List<api.ContentCategory> o) { - unittest.expect(o, unittest.hasLength(2)); - checkContentCategory(o[0]); - checkContentCategory(o[1]); -} - -core.int buildCounterContentCategoriesListResponse = 0; -buildContentCategoriesListResponse() { - var o = new api.ContentCategoriesListResponse(); - buildCounterContentCategoriesListResponse++; - if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed3069(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterContentCategoriesListResponse--; - return o; -} - -checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { - buildCounterContentCategoriesListResponse++; - if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed3069(o.contentCategories); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterContentCategoriesListResponse--; -} - -core.int buildCounterContentCategory = 0; -buildContentCategory() { - var o = new api.ContentCategory(); - buildCounterContentCategory++; - if (buildCounterContentCategory < 3) { - o.accountId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterContentCategory--; - return o; -} - -checkContentCategory(api.ContentCategory o) { - buildCounterContentCategory++; - if (buildCounterContentCategory < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterContentCategory--; -} - -buildUnnamed3070() { - var o = new core.List<api.Country>(); - o.add(buildCountry()); - o.add(buildCountry()); - return o; -} - -checkUnnamed3070(core.List<api.Country> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCountry(o[0]); - checkCountry(o[1]); -} - -core.int buildCounterCountriesListResponse = 0; -buildCountriesListResponse() { - var o = new api.CountriesListResponse(); - buildCounterCountriesListResponse++; - if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed3070(); - o.kind = "foo"; - } - buildCounterCountriesListResponse--; - return o; -} - -checkCountriesListResponse(api.CountriesListResponse o) { - buildCounterCountriesListResponse++; - if (buildCounterCountriesListResponse < 3) { - checkUnnamed3070(o.countries); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCountriesListResponse--; -} - -core.int buildCounterCountry = 0; -buildCountry() { - var o = new api.Country(); - buildCounterCountry++; - if (buildCounterCountry < 3) { - o.countryCode = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.sslEnabled = true; - } - buildCounterCountry--; - return o; -} - -checkCountry(api.Country o) { - buildCounterCountry++; - if (buildCounterCountry < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.sslEnabled, unittest.isTrue); - } - buildCounterCountry--; -} - -buildUnnamed3071() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3071(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3072() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3072(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3073() { - var o = new core.List<api.ClickTag>(); - o.add(buildClickTag()); - o.add(buildClickTag()); - return o; -} - -checkUnnamed3073(core.List<api.ClickTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClickTag(o[0]); - checkClickTag(o[1]); -} - -buildUnnamed3074() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3074(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3075() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3075(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3076() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed3076(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -buildUnnamed3077() { - var o = new core.List<api.CreativeAsset>(); - o.add(buildCreativeAsset()); - o.add(buildCreativeAsset()); - return o; -} - -checkUnnamed3077(core.List<api.CreativeAsset> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeAsset(o[0]); - checkCreativeAsset(o[1]); -} - -buildUnnamed3078() { - var o = new core.List<api.CreativeFieldAssignment>(); - o.add(buildCreativeFieldAssignment()); - o.add(buildCreativeFieldAssignment()); - return o; -} - -checkUnnamed3078(core.List<api.CreativeFieldAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeFieldAssignment(o[0]); - checkCreativeFieldAssignment(o[1]); -} - -buildUnnamed3079() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3079(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3080() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed3080(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -buildUnnamed3081() { - var o = new core.List<api.ThirdPartyTrackingUrl>(); - o.add(buildThirdPartyTrackingUrl()); - o.add(buildThirdPartyTrackingUrl()); - return o; -} - -checkUnnamed3081(core.List<api.ThirdPartyTrackingUrl> o) { - unittest.expect(o, unittest.hasLength(2)); - checkThirdPartyTrackingUrl(o[0]); - checkThirdPartyTrackingUrl(o[1]); -} - -buildUnnamed3082() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed3082(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -core.int buildCounterCreative = 0; -buildCreative() { - var o = new api.Creative(); - buildCounterCreative++; - if (buildCounterCreative < 3) { - o.accountId = "foo"; - o.active = true; - o.adParameters = "foo"; - o.adTagKeys = buildUnnamed3071(); - o.advertiserId = "foo"; - o.allowScriptAccess = true; - o.archived = true; - o.artworkType = "foo"; - o.authoringTool = "foo"; - o.autoAdvanceImages = true; - o.backgroundColor = "foo"; - o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed3072(); - o.backupImageReportingLabel = "foo"; - o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed3073(); - o.commercialId = "foo"; - o.companionCreatives = buildUnnamed3074(); - o.compatibility = buildUnnamed3075(); - o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed3076(); - o.creativeAssets = buildUnnamed3077(); - o.creativeFieldAssignments = buildUnnamed3078(); - o.customKeyValues = buildUnnamed3079(); - o.exitCustomEvents = buildUnnamed3080(); - o.fsCommand = buildFsCommand(); - o.htmlCode = "foo"; - o.htmlCodeLocked = true; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.latestTraffickedCreativeId = "foo"; - o.name = "foo"; - o.overrideCss = "foo"; - o.redirectUrl = "foo"; - o.renderingId = "foo"; - o.renderingIdDimensionValue = buildDimensionValue(); - o.requiredFlashPluginVersion = "foo"; - o.requiredFlashVersion = 42; - o.size = buildSize(); - o.skippable = true; - o.sslCompliant = true; - o.sslOverride = true; - o.studioAdvertiserId = "foo"; - o.studioCreativeId = "foo"; - o.studioTraffickedCreativeId = "foo"; - o.subaccountId = "foo"; - o.thirdPartyBackupImageImpressionsUrl = "foo"; - o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed3081(); - o.timerCustomEvents = buildUnnamed3082(); - o.totalFileSize = "foo"; - o.type = "foo"; - o.version = 42; - o.videoDescription = "foo"; - o.videoDuration = 42.0; - } - buildCounterCreative--; - return o; -} - -checkCreative(api.Creative o) { - buildCounterCreative++; - if (buildCounterCreative < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed3071(o.adTagKeys); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.allowScriptAccess, unittest.isTrue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.artworkType, unittest.equals('foo')); - unittest.expect(o.authoringTool, unittest.equals('foo')); - unittest.expect(o.autoAdvanceImages, unittest.isTrue); - unittest.expect(o.backgroundColor, unittest.equals('foo')); - unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed3072(o.backupImageFeatures); - unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); - checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed3073(o.clickTags); - unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed3074(o.companionCreatives); - checkUnnamed3075(o.compatibility); - unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed3076(o.counterCustomEvents); - checkUnnamed3077(o.creativeAssets); - checkUnnamed3078(o.creativeFieldAssignments); - checkUnnamed3079(o.customKeyValues); - checkUnnamed3080(o.exitCustomEvents); - checkFsCommand(o.fsCommand); - unittest.expect(o.htmlCode, unittest.equals('foo')); - unittest.expect(o.htmlCodeLocked, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.overrideCss, unittest.equals('foo')); - unittest.expect(o.redirectUrl, unittest.equals('foo')); - unittest.expect(o.renderingId, unittest.equals('foo')); - checkDimensionValue(o.renderingIdDimensionValue); - unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); - unittest.expect(o.requiredFlashVersion, unittest.equals(42)); - checkSize(o.size); - unittest.expect(o.skippable, unittest.isTrue); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.sslOverride, unittest.isTrue); - unittest.expect(o.studioAdvertiserId, unittest.equals('foo')); - unittest.expect(o.studioCreativeId, unittest.equals('foo')); - unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); - unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed3081(o.thirdPartyUrls); - checkUnnamed3082(o.timerCustomEvents); - unittest.expect(o.totalFileSize, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.version, unittest.equals(42)); - unittest.expect(o.videoDescription, unittest.equals('foo')); - unittest.expect(o.videoDuration, unittest.equals(42.0)); - } - buildCounterCreative--; -} - -buildUnnamed3083() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3083(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCreativeAsset = 0; -buildCreativeAsset() { - var o = new api.CreativeAsset(); - buildCounterCreativeAsset++; - if (buildCounterCreativeAsset < 3) { - o.actionScript3 = true; - o.active = true; - o.alignment = "foo"; - o.artworkType = "foo"; - o.assetIdentifier = buildCreativeAssetId(); - o.backupImageExit = buildCreativeCustomEvent(); - o.bitRate = 42; - o.childAssetType = "foo"; - o.collapsedSize = buildSize(); - o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed3083(); - o.displayType = "foo"; - o.duration = 42; - o.durationType = "foo"; - o.expandedDimension = buildSize(); - o.fileSize = "foo"; - o.flashVersion = 42; - o.hideFlashObjects = true; - o.hideSelectionBoxes = true; - o.horizontallyLocked = true; - o.id = "foo"; - o.mimeType = "foo"; - o.offset = buildOffsetPosition(); - o.originalBackup = true; - o.position = buildOffsetPosition(); - o.positionLeftUnit = "foo"; - o.positionTopUnit = "foo"; - o.progressiveServingUrl = "foo"; - o.pushdown = true; - o.pushdownDuration = 42.0; - o.role = "foo"; - o.size = buildSize(); - o.sslCompliant = true; - o.startTimeType = "foo"; - o.streamingServingUrl = "foo"; - o.transparency = true; - o.verticallyLocked = true; - o.videoDuration = 42.0; - o.windowMode = "foo"; - o.zIndex = 42; - o.zipFilename = "foo"; - o.zipFilesize = "foo"; - } - buildCounterCreativeAsset--; - return o; -} - -checkCreativeAsset(api.CreativeAsset o) { - buildCounterCreativeAsset++; - if (buildCounterCreativeAsset < 3) { - unittest.expect(o.actionScript3, unittest.isTrue); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.alignment, unittest.equals('foo')); - unittest.expect(o.artworkType, unittest.equals('foo')); - checkCreativeAssetId(o.assetIdentifier); - checkCreativeCustomEvent(o.backupImageExit); - unittest.expect(o.bitRate, unittest.equals(42)); - unittest.expect(o.childAssetType, unittest.equals('foo')); - checkSize(o.collapsedSize); - unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed3083(o.detectedFeatures); - unittest.expect(o.displayType, unittest.equals('foo')); - unittest.expect(o.duration, unittest.equals(42)); - unittest.expect(o.durationType, unittest.equals('foo')); - checkSize(o.expandedDimension); - unittest.expect(o.fileSize, unittest.equals('foo')); - unittest.expect(o.flashVersion, unittest.equals(42)); - unittest.expect(o.hideFlashObjects, unittest.isTrue); - unittest.expect(o.hideSelectionBoxes, unittest.isTrue); - unittest.expect(o.horizontallyLocked, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.mimeType, unittest.equals('foo')); - checkOffsetPosition(o.offset); - unittest.expect(o.originalBackup, unittest.isTrue); - checkOffsetPosition(o.position); - unittest.expect(o.positionLeftUnit, unittest.equals('foo')); - unittest.expect(o.positionTopUnit, unittest.equals('foo')); - unittest.expect(o.progressiveServingUrl, unittest.equals('foo')); - unittest.expect(o.pushdown, unittest.isTrue); - unittest.expect(o.pushdownDuration, unittest.equals(42.0)); - unittest.expect(o.role, unittest.equals('foo')); - checkSize(o.size); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.startTimeType, unittest.equals('foo')); - unittest.expect(o.streamingServingUrl, unittest.equals('foo')); - unittest.expect(o.transparency, unittest.isTrue); - unittest.expect(o.verticallyLocked, unittest.isTrue); - unittest.expect(o.videoDuration, unittest.equals(42.0)); - unittest.expect(o.windowMode, unittest.equals('foo')); - unittest.expect(o.zIndex, unittest.equals(42)); - unittest.expect(o.zipFilename, unittest.equals('foo')); - unittest.expect(o.zipFilesize, unittest.equals('foo')); - } - buildCounterCreativeAsset--; -} - -core.int buildCounterCreativeAssetId = 0; -buildCreativeAssetId() { - var o = new api.CreativeAssetId(); - buildCounterCreativeAssetId++; - if (buildCounterCreativeAssetId < 3) { - o.name = "foo"; - o.type = "foo"; - } - buildCounterCreativeAssetId--; - return o; -} - -checkCreativeAssetId(api.CreativeAssetId o) { - buildCounterCreativeAssetId++; - if (buildCounterCreativeAssetId < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterCreativeAssetId--; -} - -buildUnnamed3084() { - var o = new core.List<api.ClickTag>(); - o.add(buildClickTag()); - o.add(buildClickTag()); - return o; -} - -checkUnnamed3084(core.List<api.ClickTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClickTag(o[0]); - checkClickTag(o[1]); -} - -buildUnnamed3085() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3085(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3086() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3086(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCreativeAssetMetadata = 0; -buildCreativeAssetMetadata() { - var o = new api.CreativeAssetMetadata(); - buildCounterCreativeAssetMetadata++; - if (buildCounterCreativeAssetMetadata < 3) { - o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed3084(); - o.detectedFeatures = buildUnnamed3085(); - o.kind = "foo"; - o.warnedValidationRules = buildUnnamed3086(); - } - buildCounterCreativeAssetMetadata--; - return o; -} - -checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { - buildCounterCreativeAssetMetadata++; - if (buildCounterCreativeAssetMetadata < 3) { - checkCreativeAssetId(o.assetIdentifier); - checkUnnamed3084(o.clickTags); - checkUnnamed3085(o.detectedFeatures); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3086(o.warnedValidationRules); - } - buildCounterCreativeAssetMetadata--; -} - -buildUnnamed3087() { - var o = new core.List<api.CompanionClickThroughOverride>(); - o.add(buildCompanionClickThroughOverride()); - o.add(buildCompanionClickThroughOverride()); - return o; -} - -checkUnnamed3087(core.List<api.CompanionClickThroughOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCompanionClickThroughOverride(o[0]); - checkCompanionClickThroughOverride(o[1]); -} - -buildUnnamed3088() { - var o = new core.List<api.CreativeGroupAssignment>(); - o.add(buildCreativeGroupAssignment()); - o.add(buildCreativeGroupAssignment()); - return o; -} - -checkUnnamed3088(core.List<api.CreativeGroupAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroupAssignment(o[0]); - checkCreativeGroupAssignment(o[1]); -} - -buildUnnamed3089() { - var o = new core.List<api.RichMediaExitOverride>(); - o.add(buildRichMediaExitOverride()); - o.add(buildRichMediaExitOverride()); - return o; -} - -checkUnnamed3089(core.List<api.RichMediaExitOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRichMediaExitOverride(o[0]); - checkRichMediaExitOverride(o[1]); -} - -core.int buildCounterCreativeAssignment = 0; -buildCreativeAssignment() { - var o = new api.CreativeAssignment(); - buildCounterCreativeAssignment++; - if (buildCounterCreativeAssignment < 3) { - o.active = true; - o.applyEventTags = true; - o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed3087(); - o.creativeGroupAssignments = buildUnnamed3088(); - o.creativeId = "foo"; - o.creativeIdDimensionValue = buildDimensionValue(); - o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed3089(); - o.sequence = 42; - o.sslCompliant = true; - o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.weight = 42; - } - buildCounterCreativeAssignment--; - return o; -} - -checkCreativeAssignment(api.CreativeAssignment o) { - buildCounterCreativeAssignment++; - if (buildCounterCreativeAssignment < 3) { - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.applyEventTags, unittest.isTrue); - checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed3087(o.companionCreativeOverrides); - checkUnnamed3088(o.creativeGroupAssignments); - unittest.expect(o.creativeId, unittest.equals('foo')); - checkDimensionValue(o.creativeIdDimensionValue); - unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed3089(o.richMediaExitOverrides); - unittest.expect(o.sequence, unittest.equals(42)); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.weight, unittest.equals(42)); - } - buildCounterCreativeAssignment--; -} - -core.int buildCounterCreativeCustomEvent = 0; -buildCreativeCustomEvent() { - var o = new api.CreativeCustomEvent(); - buildCounterCreativeCustomEvent++; - if (buildCounterCreativeCustomEvent < 3) { - o.advertiserCustomEventName = "foo"; - o.advertiserCustomEventType = "foo"; - o.artworkLabel = "foo"; - o.artworkType = "foo"; - o.exitUrl = "foo"; - o.id = "foo"; - o.popupWindowProperties = buildPopupWindowProperties(); - o.targetType = "foo"; - o.videoReportingId = "foo"; - } - buildCounterCreativeCustomEvent--; - return o; -} - -checkCreativeCustomEvent(api.CreativeCustomEvent o) { - buildCounterCreativeCustomEvent++; - if (buildCounterCreativeCustomEvent < 3) { - unittest.expect(o.advertiserCustomEventName, unittest.equals('foo')); - unittest.expect(o.advertiserCustomEventType, unittest.equals('foo')); - unittest.expect(o.artworkLabel, unittest.equals('foo')); - unittest.expect(o.artworkType, unittest.equals('foo')); - unittest.expect(o.exitUrl, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkPopupWindowProperties(o.popupWindowProperties); - unittest.expect(o.targetType, unittest.equals('foo')); - unittest.expect(o.videoReportingId, unittest.equals('foo')); - } - buildCounterCreativeCustomEvent--; -} - -core.int buildCounterCreativeField = 0; -buildCreativeField() { - var o = new api.CreativeField(); - buildCounterCreativeField++; - if (buildCounterCreativeField < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterCreativeField--; - return o; -} - -checkCreativeField(api.CreativeField o) { - buildCounterCreativeField++; - if (buildCounterCreativeField < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterCreativeField--; -} - -core.int buildCounterCreativeFieldAssignment = 0; -buildCreativeFieldAssignment() { - var o = new api.CreativeFieldAssignment(); - buildCounterCreativeFieldAssignment++; - if (buildCounterCreativeFieldAssignment < 3) { - o.creativeFieldId = "foo"; - o.creativeFieldValueId = "foo"; - } - buildCounterCreativeFieldAssignment--; - return o; -} - -checkCreativeFieldAssignment(api.CreativeFieldAssignment o) { - buildCounterCreativeFieldAssignment++; - if (buildCounterCreativeFieldAssignment < 3) { - unittest.expect(o.creativeFieldId, unittest.equals('foo')); - unittest.expect(o.creativeFieldValueId, unittest.equals('foo')); - } - buildCounterCreativeFieldAssignment--; -} - -core.int buildCounterCreativeFieldValue = 0; -buildCreativeFieldValue() { - var o = new api.CreativeFieldValue(); - buildCounterCreativeFieldValue++; - if (buildCounterCreativeFieldValue < 3) { - o.id = "foo"; - o.kind = "foo"; - o.value = "foo"; - } - buildCounterCreativeFieldValue--; - return o; -} - -checkCreativeFieldValue(api.CreativeFieldValue o) { - buildCounterCreativeFieldValue++; - if (buildCounterCreativeFieldValue < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterCreativeFieldValue--; -} - -buildUnnamed3090() { - var o = new core.List<api.CreativeFieldValue>(); - o.add(buildCreativeFieldValue()); - o.add(buildCreativeFieldValue()); - return o; -} - -checkUnnamed3090(core.List<api.CreativeFieldValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeFieldValue(o[0]); - checkCreativeFieldValue(o[1]); -} - -core.int buildCounterCreativeFieldValuesListResponse = 0; -buildCreativeFieldValuesListResponse() { - var o = new api.CreativeFieldValuesListResponse(); - buildCounterCreativeFieldValuesListResponse++; - if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed3090(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeFieldValuesListResponse--; - return o; -} - -checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { - buildCounterCreativeFieldValuesListResponse++; - if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed3090(o.creativeFieldValues); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeFieldValuesListResponse--; -} - -buildUnnamed3091() { - var o = new core.List<api.CreativeField>(); - o.add(buildCreativeField()); - o.add(buildCreativeField()); - return o; -} - -checkUnnamed3091(core.List<api.CreativeField> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeField(o[0]); - checkCreativeField(o[1]); -} - -core.int buildCounterCreativeFieldsListResponse = 0; -buildCreativeFieldsListResponse() { - var o = new api.CreativeFieldsListResponse(); - buildCounterCreativeFieldsListResponse++; - if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed3091(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeFieldsListResponse--; - return o; -} - -checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { - buildCounterCreativeFieldsListResponse++; - if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed3091(o.creativeFields); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeFieldsListResponse--; -} - -core.int buildCounterCreativeGroup = 0; -buildCreativeGroup() { - var o = new api.CreativeGroup(); - buildCounterCreativeGroup++; - if (buildCounterCreativeGroup < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.groupNumber = 42; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterCreativeGroup--; - return o; -} - -checkCreativeGroup(api.CreativeGroup o) { - buildCounterCreativeGroup++; - if (buildCounterCreativeGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.groupNumber, unittest.equals(42)); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterCreativeGroup--; -} - -core.int buildCounterCreativeGroupAssignment = 0; -buildCreativeGroupAssignment() { - var o = new api.CreativeGroupAssignment(); - buildCounterCreativeGroupAssignment++; - if (buildCounterCreativeGroupAssignment < 3) { - o.creativeGroupId = "foo"; - o.creativeGroupNumber = "foo"; - } - buildCounterCreativeGroupAssignment--; - return o; -} - -checkCreativeGroupAssignment(api.CreativeGroupAssignment o) { - buildCounterCreativeGroupAssignment++; - if (buildCounterCreativeGroupAssignment < 3) { - unittest.expect(o.creativeGroupId, unittest.equals('foo')); - unittest.expect(o.creativeGroupNumber, unittest.equals('foo')); - } - buildCounterCreativeGroupAssignment--; -} - -buildUnnamed3092() { - var o = new core.List<api.CreativeGroup>(); - o.add(buildCreativeGroup()); - o.add(buildCreativeGroup()); - return o; -} - -checkUnnamed3092(core.List<api.CreativeGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroup(o[0]); - checkCreativeGroup(o[1]); -} - -core.int buildCounterCreativeGroupsListResponse = 0; -buildCreativeGroupsListResponse() { - var o = new api.CreativeGroupsListResponse(); - buildCounterCreativeGroupsListResponse++; - if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed3092(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeGroupsListResponse--; - return o; -} - -checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { - buildCounterCreativeGroupsListResponse++; - if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed3092(o.creativeGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeGroupsListResponse--; -} - -buildUnnamed3093() { - var o = new core.List<api.OptimizationActivity>(); - o.add(buildOptimizationActivity()); - o.add(buildOptimizationActivity()); - return o; -} - -checkUnnamed3093(core.List<api.OptimizationActivity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOptimizationActivity(o[0]); - checkOptimizationActivity(o[1]); -} - -core.int buildCounterCreativeOptimizationConfiguration = 0; -buildCreativeOptimizationConfiguration() { - var o = new api.CreativeOptimizationConfiguration(); - buildCounterCreativeOptimizationConfiguration++; - if (buildCounterCreativeOptimizationConfiguration < 3) { - o.id = "foo"; - o.name = "foo"; - o.optimizationActivitys = buildUnnamed3093(); - o.optimizationModel = "foo"; - } - buildCounterCreativeOptimizationConfiguration--; - return o; -} - -checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o) { - buildCounterCreativeOptimizationConfiguration++; - if (buildCounterCreativeOptimizationConfiguration < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3093(o.optimizationActivitys); - unittest.expect(o.optimizationModel, unittest.equals('foo')); - } - buildCounterCreativeOptimizationConfiguration--; -} - -buildUnnamed3094() { - var o = new core.List<api.CreativeAssignment>(); - o.add(buildCreativeAssignment()); - o.add(buildCreativeAssignment()); - return o; -} - -checkUnnamed3094(core.List<api.CreativeAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeAssignment(o[0]); - checkCreativeAssignment(o[1]); -} - -core.int buildCounterCreativeRotation = 0; -buildCreativeRotation() { - var o = new api.CreativeRotation(); - buildCounterCreativeRotation++; - if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed3094(); - o.creativeOptimizationConfigurationId = "foo"; - o.type = "foo"; - o.weightCalculationStrategy = "foo"; - } - buildCounterCreativeRotation--; - return o; -} - -checkCreativeRotation(api.CreativeRotation o) { - buildCounterCreativeRotation++; - if (buildCounterCreativeRotation < 3) { - checkUnnamed3094(o.creativeAssignments); - unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); - } - buildCounterCreativeRotation--; -} - -core.int buildCounterCreativeSettings = 0; -buildCreativeSettings() { - var o = new api.CreativeSettings(); - buildCounterCreativeSettings++; - if (buildCounterCreativeSettings < 3) { - o.iFrameFooter = "foo"; - o.iFrameHeader = "foo"; - } - buildCounterCreativeSettings--; - return o; -} - -checkCreativeSettings(api.CreativeSettings o) { - buildCounterCreativeSettings++; - if (buildCounterCreativeSettings < 3) { - unittest.expect(o.iFrameFooter, unittest.equals('foo')); - unittest.expect(o.iFrameHeader, unittest.equals('foo')); - } - buildCounterCreativeSettings--; -} - -buildUnnamed3095() { - var o = new core.List<api.Creative>(); - o.add(buildCreative()); - o.add(buildCreative()); - return o; -} - -checkUnnamed3095(core.List<api.Creative> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreative(o[0]); - checkCreative(o[1]); -} - -core.int buildCounterCreativesListResponse = 0; -buildCreativesListResponse() { - var o = new api.CreativesListResponse(); - buildCounterCreativesListResponse++; - if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed3095(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativesListResponse--; - return o; -} - -checkCreativesListResponse(api.CreativesListResponse o) { - buildCounterCreativesListResponse++; - if (buildCounterCreativesListResponse < 3) { - checkUnnamed3095(o.creatives); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativesListResponse--; -} - -buildUnnamed3096() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3096(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3097() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3097(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3098() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3098(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3099() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3099(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; -buildCrossDimensionReachReportCompatibleFields() { - var o = new api.CrossDimensionReachReportCompatibleFields(); - buildCounterCrossDimensionReachReportCompatibleFields++; - if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed3096(); - o.dimensionFilters = buildUnnamed3097(); - o.kind = "foo"; - o.metrics = buildUnnamed3098(); - o.overlapMetrics = buildUnnamed3099(); - } - buildCounterCrossDimensionReachReportCompatibleFields--; - return o; -} - -checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { - buildCounterCrossDimensionReachReportCompatibleFields++; - if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed3096(o.breakdown); - checkUnnamed3097(o.dimensionFilters); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3098(o.metrics); - checkUnnamed3099(o.overlapMetrics); - } - buildCounterCrossDimensionReachReportCompatibleFields--; -} - -buildUnnamed3100() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3100(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -core.int buildCounterCustomRichMediaEvents = 0; -buildCustomRichMediaEvents() { - var o = new api.CustomRichMediaEvents(); - buildCounterCustomRichMediaEvents++; - if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed3100(); - o.kind = "foo"; - } - buildCounterCustomRichMediaEvents--; - return o; -} - -checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { - buildCounterCustomRichMediaEvents++; - if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed3100(o.filteredEventIds); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCustomRichMediaEvents--; -} - -core.int buildCounterDateRange = 0; -buildDateRange() { - var o = new api.DateRange(); - buildCounterDateRange++; - if (buildCounterDateRange < 3) { - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.kind = "foo"; - o.relativeDateRange = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterDateRange--; - return o; -} - -checkDateRange(api.DateRange o) { - buildCounterDateRange++; - if (buildCounterDateRange < 3) { - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.relativeDateRange, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterDateRange--; -} - -buildUnnamed3101() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3101(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3102() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); - return o; -} - -checkUnnamed3102(core.List<core.int> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42)); - unittest.expect(o[1], unittest.equals(42)); -} - -core.int buildCounterDayPartTargeting = 0; -buildDayPartTargeting() { - var o = new api.DayPartTargeting(); - buildCounterDayPartTargeting++; - if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed3101(); - o.hoursOfDay = buildUnnamed3102(); - o.userLocalTime = true; - } - buildCounterDayPartTargeting--; - return o; -} - -checkDayPartTargeting(api.DayPartTargeting o) { - buildCounterDayPartTargeting++; - if (buildCounterDayPartTargeting < 3) { - checkUnnamed3101(o.daysOfWeek); - checkUnnamed3102(o.hoursOfDay); - unittest.expect(o.userLocalTime, unittest.isTrue); - } - buildCounterDayPartTargeting--; -} - -core.int buildCounterDefaultClickThroughEventTagProperties = 0; -buildDefaultClickThroughEventTagProperties() { - var o = new api.DefaultClickThroughEventTagProperties(); - buildCounterDefaultClickThroughEventTagProperties++; - if (buildCounterDefaultClickThroughEventTagProperties < 3) { - o.defaultClickThroughEventTagId = "foo"; - o.overrideInheritedEventTag = true; - } - buildCounterDefaultClickThroughEventTagProperties--; - return o; -} - -checkDefaultClickThroughEventTagProperties(api.DefaultClickThroughEventTagProperties o) { - buildCounterDefaultClickThroughEventTagProperties++; - if (buildCounterDefaultClickThroughEventTagProperties < 3) { - unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); - unittest.expect(o.overrideInheritedEventTag, unittest.isTrue); - } - buildCounterDefaultClickThroughEventTagProperties--; -} - -core.int buildCounterDeliverySchedule = 0; -buildDeliverySchedule() { - var o = new api.DeliverySchedule(); - buildCounterDeliverySchedule++; - if (buildCounterDeliverySchedule < 3) { - o.frequencyCap = buildFrequencyCap(); - o.hardCutoff = true; - o.impressionRatio = "foo"; - o.priority = "foo"; - } - buildCounterDeliverySchedule--; - return o; -} - -checkDeliverySchedule(api.DeliverySchedule o) { - buildCounterDeliverySchedule++; - if (buildCounterDeliverySchedule < 3) { - checkFrequencyCap(o.frequencyCap); - unittest.expect(o.hardCutoff, unittest.isTrue); - unittest.expect(o.impressionRatio, unittest.equals('foo')); - unittest.expect(o.priority, unittest.equals('foo')); - } - buildCounterDeliverySchedule--; -} - -core.int buildCounterDfpSettings = 0; -buildDfpSettings() { - var o = new api.DfpSettings(); - buildCounterDfpSettings++; - if (buildCounterDfpSettings < 3) { - o.dfpNetworkCode = "foo"; - o.dfpNetworkName = "foo"; - o.programmaticPlacementAccepted = true; - o.pubPaidPlacementAccepted = true; - o.publisherPortalOnly = true; - } - buildCounterDfpSettings--; - return o; -} - -checkDfpSettings(api.DfpSettings o) { - buildCounterDfpSettings++; - if (buildCounterDfpSettings < 3) { - unittest.expect(o.dfpNetworkCode, unittest.equals('foo')); - unittest.expect(o.dfpNetworkName, unittest.equals('foo')); - unittest.expect(o.programmaticPlacementAccepted, unittest.isTrue); - unittest.expect(o.pubPaidPlacementAccepted, unittest.isTrue); - unittest.expect(o.publisherPortalOnly, unittest.isTrue); - } - buildCounterDfpSettings--; -} - -core.int buildCounterDimension = 0; -buildDimension() { - var o = new api.Dimension(); - buildCounterDimension++; - if (buildCounterDimension < 3) { - o.kind = "foo"; - o.name = "foo"; - } - buildCounterDimension--; - return o; -} - -checkDimension(api.Dimension o) { - buildCounterDimension++; - if (buildCounterDimension < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterDimension--; -} - -core.int buildCounterDimensionFilter = 0; -buildDimensionFilter() { - var o = new api.DimensionFilter(); - buildCounterDimensionFilter++; - if (buildCounterDimensionFilter < 3) { - o.dimensionName = "foo"; - o.kind = "foo"; - o.value = "foo"; - } - buildCounterDimensionFilter--; - return o; -} - -checkDimensionFilter(api.DimensionFilter o) { - buildCounterDimensionFilter++; - if (buildCounterDimensionFilter < 3) { - unittest.expect(o.dimensionName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterDimensionFilter--; -} - -core.int buildCounterDimensionValue = 0; -buildDimensionValue() { - var o = new api.DimensionValue(); - buildCounterDimensionValue++; - if (buildCounterDimensionValue < 3) { - o.dimensionName = "foo"; - o.etag = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.matchType = "foo"; - o.value = "foo"; - } - buildCounterDimensionValue--; - return o; -} - -checkDimensionValue(api.DimensionValue o) { - buildCounterDimensionValue++; - if (buildCounterDimensionValue < 3) { - unittest.expect(o.dimensionName, unittest.equals('foo')); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.matchType, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterDimensionValue--; -} - -buildUnnamed3103() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3103(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -core.int buildCounterDimensionValueList = 0; -buildDimensionValueList() { - var o = new api.DimensionValueList(); - buildCounterDimensionValueList++; - if (buildCounterDimensionValueList < 3) { - o.etag = "foo"; - o.items = buildUnnamed3103(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDimensionValueList--; - return o; -} - -checkDimensionValueList(api.DimensionValueList o) { - buildCounterDimensionValueList++; - if (buildCounterDimensionValueList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3103(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDimensionValueList--; -} - -buildUnnamed3104() { - var o = new core.List<api.DimensionFilter>(); - o.add(buildDimensionFilter()); - o.add(buildDimensionFilter()); - return o; -} - -checkUnnamed3104(core.List<api.DimensionFilter> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionFilter(o[0]); - checkDimensionFilter(o[1]); -} - -core.int buildCounterDimensionValueRequest = 0; -buildDimensionValueRequest() { - var o = new api.DimensionValueRequest(); - buildCounterDimensionValueRequest++; - if (buildCounterDimensionValueRequest < 3) { - o.dimensionName = "foo"; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed3104(); - o.kind = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterDimensionValueRequest--; - return o; -} - -checkDimensionValueRequest(api.DimensionValueRequest o) { - buildCounterDimensionValueRequest++; - if (buildCounterDimensionValueRequest < 3) { - unittest.expect(o.dimensionName, unittest.equals('foo')); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3104(o.filters); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterDimensionValueRequest--; -} - -buildUnnamed3105() { - var o = new core.List<api.DirectorySiteContactAssignment>(); - o.add(buildDirectorySiteContactAssignment()); - o.add(buildDirectorySiteContactAssignment()); - return o; -} - -checkUnnamed3105(core.List<api.DirectorySiteContactAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDirectorySiteContactAssignment(o[0]); - checkDirectorySiteContactAssignment(o[1]); -} - -buildUnnamed3106() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3106(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3107() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3107(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterDirectorySite = 0; -buildDirectorySite() { - var o = new api.DirectorySite(); - buildCounterDirectorySite++; - if (buildCounterDirectorySite < 3) { - o.active = true; - o.contactAssignments = buildUnnamed3105(); - o.countryId = "foo"; - o.currencyId = "foo"; - o.description = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed3106(); - o.interstitialTagFormats = buildUnnamed3107(); - o.kind = "foo"; - o.name = "foo"; - o.parentId = "foo"; - o.settings = buildDirectorySiteSettings(); - o.url = "foo"; - } - buildCounterDirectorySite--; - return o; -} - -checkDirectorySite(api.DirectorySite o) { - buildCounterDirectorySite++; - if (buildCounterDirectorySite < 3) { - unittest.expect(o.active, unittest.isTrue); - checkUnnamed3105(o.contactAssignments); - unittest.expect(o.countryId, unittest.equals('foo')); - unittest.expect(o.currencyId, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - checkUnnamed3106(o.inpageTagFormats); - checkUnnamed3107(o.interstitialTagFormats); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.parentId, unittest.equals('foo')); - checkDirectorySiteSettings(o.settings); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterDirectorySite--; -} - -core.int buildCounterDirectorySiteContact = 0; -buildDirectorySiteContact() { - var o = new api.DirectorySiteContact(); - buildCounterDirectorySiteContact++; - if (buildCounterDirectorySiteContact < 3) { - o.address = "foo"; - o.email = "foo"; - o.firstName = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lastName = "foo"; - o.phone = "foo"; - o.role = "foo"; - o.title = "foo"; - o.type = "foo"; - } - buildCounterDirectorySiteContact--; - return o; -} - -checkDirectorySiteContact(api.DirectorySiteContact o) { - buildCounterDirectorySiteContact++; - if (buildCounterDirectorySiteContact < 3) { - unittest.expect(o.address, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.firstName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lastName, unittest.equals('foo')); - unittest.expect(o.phone, unittest.equals('foo')); - unittest.expect(o.role, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterDirectorySiteContact--; -} - -core.int buildCounterDirectorySiteContactAssignment = 0; -buildDirectorySiteContactAssignment() { - var o = new api.DirectorySiteContactAssignment(); - buildCounterDirectorySiteContactAssignment++; - if (buildCounterDirectorySiteContactAssignment < 3) { - o.contactId = "foo"; - o.visibility = "foo"; - } - buildCounterDirectorySiteContactAssignment--; - return o; -} - -checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) { - buildCounterDirectorySiteContactAssignment++; - if (buildCounterDirectorySiteContactAssignment < 3) { - unittest.expect(o.contactId, unittest.equals('foo')); - unittest.expect(o.visibility, unittest.equals('foo')); - } - buildCounterDirectorySiteContactAssignment--; -} - -buildUnnamed3108() { - var o = new core.List<api.DirectorySiteContact>(); - o.add(buildDirectorySiteContact()); - o.add(buildDirectorySiteContact()); - return o; -} - -checkUnnamed3108(core.List<api.DirectorySiteContact> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDirectorySiteContact(o[0]); - checkDirectorySiteContact(o[1]); -} - -core.int buildCounterDirectorySiteContactsListResponse = 0; -buildDirectorySiteContactsListResponse() { - var o = new api.DirectorySiteContactsListResponse(); - buildCounterDirectorySiteContactsListResponse++; - if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed3108(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDirectorySiteContactsListResponse--; - return o; -} - -checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { - buildCounterDirectorySiteContactsListResponse++; - if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed3108(o.directorySiteContacts); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDirectorySiteContactsListResponse--; -} - -core.int buildCounterDirectorySiteSettings = 0; -buildDirectorySiteSettings() { - var o = new api.DirectorySiteSettings(); - buildCounterDirectorySiteSettings++; - if (buildCounterDirectorySiteSettings < 3) { - o.activeViewOptOut = true; - o.dfpSettings = buildDfpSettings(); - o.instreamVideoPlacementAccepted = true; - o.interstitialPlacementAccepted = true; - o.nielsenOcrOptOut = true; - o.verificationTagOptOut = true; - o.videoActiveViewOptOut = true; - } - buildCounterDirectorySiteSettings--; - return o; -} - -checkDirectorySiteSettings(api.DirectorySiteSettings o) { - buildCounterDirectorySiteSettings++; - if (buildCounterDirectorySiteSettings < 3) { - unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkDfpSettings(o.dfpSettings); - unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue); - unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue); - unittest.expect(o.nielsenOcrOptOut, unittest.isTrue); - unittest.expect(o.verificationTagOptOut, unittest.isTrue); - unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); - } - buildCounterDirectorySiteSettings--; -} - -buildUnnamed3109() { - var o = new core.List<api.DirectorySite>(); - o.add(buildDirectorySite()); - o.add(buildDirectorySite()); - return o; -} - -checkUnnamed3109(core.List<api.DirectorySite> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDirectorySite(o[0]); - checkDirectorySite(o[1]); -} - -core.int buildCounterDirectorySitesListResponse = 0; -buildDirectorySitesListResponse() { - var o = new api.DirectorySitesListResponse(); - buildCounterDirectorySitesListResponse++; - if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed3109(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDirectorySitesListResponse--; - return o; -} - -checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { - buildCounterDirectorySitesListResponse++; - if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed3109(o.directorySites); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDirectorySitesListResponse--; -} - -buildUnnamed3110() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3110(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterEventTag = 0; -buildEventTag() { - var o = new api.EventTag(); - buildCounterEventTag++; - if (buildCounterEventTag < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.enabledByDefault = true; - o.excludeFromAdxRequests = true; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.siteFilterType = "foo"; - o.siteIds = buildUnnamed3110(); - o.sslCompliant = true; - o.status = "foo"; - o.subaccountId = "foo"; - o.type = "foo"; - o.url = "foo"; - o.urlEscapeLevels = 42; - } - buildCounterEventTag--; - return o; -} - -checkEventTag(api.EventTag o) { - buildCounterEventTag++; - if (buildCounterEventTag < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - unittest.expect(o.enabledByDefault, unittest.isTrue); - unittest.expect(o.excludeFromAdxRequests, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed3110(o.siteIds); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - unittest.expect(o.urlEscapeLevels, unittest.equals(42)); - } - buildCounterEventTag--; -} - -core.int buildCounterEventTagOverride = 0; -buildEventTagOverride() { - var o = new api.EventTagOverride(); - buildCounterEventTagOverride++; - if (buildCounterEventTagOverride < 3) { - o.enabled = true; - o.id = "foo"; - } - buildCounterEventTagOverride--; - return o; -} - -checkEventTagOverride(api.EventTagOverride o) { - buildCounterEventTagOverride++; - if (buildCounterEventTagOverride < 3) { - unittest.expect(o.enabled, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - } - buildCounterEventTagOverride--; -} - -buildUnnamed3111() { - var o = new core.List<api.EventTag>(); - o.add(buildEventTag()); - o.add(buildEventTag()); - return o; -} - -checkUnnamed3111(core.List<api.EventTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTag(o[0]); - checkEventTag(o[1]); -} - -core.int buildCounterEventTagsListResponse = 0; -buildEventTagsListResponse() { - var o = new api.EventTagsListResponse(); - buildCounterEventTagsListResponse++; - if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed3111(); - o.kind = "foo"; - } - buildCounterEventTagsListResponse--; - return o; -} - -checkEventTagsListResponse(api.EventTagsListResponse o) { - buildCounterEventTagsListResponse++; - if (buildCounterEventTagsListResponse < 3) { - checkUnnamed3111(o.eventTags); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterEventTagsListResponse--; -} - -core.int buildCounterFileUrls = 0; -buildFileUrls() { - var o = new api.FileUrls(); - buildCounterFileUrls++; - if (buildCounterFileUrls < 3) { - o.apiUrl = "foo"; - o.browserUrl = "foo"; - } - buildCounterFileUrls--; - return o; -} - -checkFileUrls(api.FileUrls o) { - buildCounterFileUrls++; - if (buildCounterFileUrls < 3) { - unittest.expect(o.apiUrl, unittest.equals('foo')); - unittest.expect(o.browserUrl, unittest.equals('foo')); - } - buildCounterFileUrls--; -} - -core.int buildCounterFile = 0; -buildFile() { - var o = new api.File(); - buildCounterFile++; - if (buildCounterFile < 3) { - o.dateRange = buildDateRange(); - o.etag = "foo"; - o.fileName = "foo"; - o.format = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedTime = "foo"; - o.reportId = "foo"; - o.status = "foo"; - o.urls = buildFileUrls(); - } - buildCounterFile--; - return o; -} - -checkFile(api.File o) { - buildCounterFile++; - if (buildCounterFile < 3) { - checkDateRange(o.dateRange); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.fileName, unittest.equals('foo')); - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lastModifiedTime, unittest.equals('foo')); - unittest.expect(o.reportId, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - checkFileUrls(o.urls); - } - buildCounterFile--; -} - -buildUnnamed3112() { - var o = new core.List<api.File>(); - o.add(buildFile()); - o.add(buildFile()); - return o; -} - -checkUnnamed3112(core.List<api.File> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFile(o[0]); - checkFile(o[1]); -} - -core.int buildCounterFileList = 0; -buildFileList() { - var o = new api.FileList(); - buildCounterFileList++; - if (buildCounterFileList < 3) { - o.etag = "foo"; - o.items = buildUnnamed3112(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFileList--; - return o; -} - -checkFileList(api.FileList o) { - buildCounterFileList++; - if (buildCounterFileList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3112(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterFileList--; -} - -core.int buildCounterFlight = 0; -buildFlight() { - var o = new api.Flight(); - buildCounterFlight++; - if (buildCounterFlight < 3) { - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.rateOrCost = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.units = "foo"; - } - buildCounterFlight--; - return o; -} - -checkFlight(api.Flight o) { - buildCounterFlight++; - if (buildCounterFlight < 3) { - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.rateOrCost, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.units, unittest.equals('foo')); - } - buildCounterFlight--; -} - -core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0; -buildFloodlightActivitiesGenerateTagResponse() { - var o = new api.FloodlightActivitiesGenerateTagResponse(); - buildCounterFloodlightActivitiesGenerateTagResponse++; - if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { - o.floodlightActivityTag = "foo"; - o.kind = "foo"; - } - buildCounterFloodlightActivitiesGenerateTagResponse--; - return o; -} - -checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTagResponse o) { - buildCounterFloodlightActivitiesGenerateTagResponse++; - if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { - unittest.expect(o.floodlightActivityTag, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterFloodlightActivitiesGenerateTagResponse--; -} - -buildUnnamed3113() { - var o = new core.List<api.FloodlightActivity>(); - o.add(buildFloodlightActivity()); - o.add(buildFloodlightActivity()); - return o; -} - -checkUnnamed3113(core.List<api.FloodlightActivity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivity(o[0]); - checkFloodlightActivity(o[1]); -} - -core.int buildCounterFloodlightActivitiesListResponse = 0; -buildFloodlightActivitiesListResponse() { - var o = new api.FloodlightActivitiesListResponse(); - buildCounterFloodlightActivitiesListResponse++; - if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed3113(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFloodlightActivitiesListResponse--; - return o; -} - -checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { - buildCounterFloodlightActivitiesListResponse++; - if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed3113(o.floodlightActivities); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterFloodlightActivitiesListResponse--; -} - -buildUnnamed3114() { - var o = new core.List<api.FloodlightActivityDynamicTag>(); - o.add(buildFloodlightActivityDynamicTag()); - o.add(buildFloodlightActivityDynamicTag()); - return o; -} - -checkUnnamed3114(core.List<api.FloodlightActivityDynamicTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityDynamicTag(o[0]); - checkFloodlightActivityDynamicTag(o[1]); -} - -buildUnnamed3115() { - var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); - o.add(buildFloodlightActivityPublisherDynamicTag()); - o.add(buildFloodlightActivityPublisherDynamicTag()); - return o; -} - -checkUnnamed3115(core.List<api.FloodlightActivityPublisherDynamicTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityPublisherDynamicTag(o[0]); - checkFloodlightActivityPublisherDynamicTag(o[1]); -} - -buildUnnamed3116() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3116(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterFloodlightActivity = 0; -buildFloodlightActivity() { - var o = new api.FloodlightActivity(); - buildCounterFloodlightActivity++; - if (buildCounterFloodlightActivity < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.cacheBustingType = "foo"; - o.countingMethod = "foo"; - o.defaultTags = buildUnnamed3114(); - o.expectedUrl = "foo"; - o.floodlightActivityGroupId = "foo"; - o.floodlightActivityGroupName = "foo"; - o.floodlightActivityGroupTagString = "foo"; - o.floodlightActivityGroupType = "foo"; - o.floodlightConfigurationId = "foo"; - o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); - o.hidden = true; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.imageTagEnabled = true; - o.kind = "foo"; - o.name = "foo"; - o.notes = "foo"; - o.publisherTags = buildUnnamed3115(); - o.secure = true; - o.sslCompliant = true; - o.sslRequired = true; - o.subaccountId = "foo"; - o.tagFormat = "foo"; - o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed3116(); - } - buildCounterFloodlightActivity--; - return o; -} - -checkFloodlightActivity(api.FloodlightActivity o) { - buildCounterFloodlightActivity++; - if (buildCounterFloodlightActivity < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.cacheBustingType, unittest.equals('foo')); - unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed3114(o.defaultTags); - unittest.expect(o.expectedUrl, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo')); - unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); - checkDimensionValue(o.floodlightConfigurationIdDimensionValue); - unittest.expect(o.hidden, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.imageTagEnabled, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed3115(o.publisherTags); - unittest.expect(o.secure, unittest.isTrue); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.sslRequired, unittest.isTrue); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.tagFormat, unittest.equals('foo')); - unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed3116(o.userDefinedVariableTypes); - } - buildCounterFloodlightActivity--; -} - -core.int buildCounterFloodlightActivityDynamicTag = 0; -buildFloodlightActivityDynamicTag() { - var o = new api.FloodlightActivityDynamicTag(); - buildCounterFloodlightActivityDynamicTag++; - if (buildCounterFloodlightActivityDynamicTag < 3) { - o.id = "foo"; - o.name = "foo"; - o.tag = "foo"; - } - buildCounterFloodlightActivityDynamicTag--; - return o; -} - -checkFloodlightActivityDynamicTag(api.FloodlightActivityDynamicTag o) { - buildCounterFloodlightActivityDynamicTag++; - if (buildCounterFloodlightActivityDynamicTag < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.tag, unittest.equals('foo')); - } - buildCounterFloodlightActivityDynamicTag--; -} - -core.int buildCounterFloodlightActivityGroup = 0; -buildFloodlightActivityGroup() { - var o = new api.FloodlightActivityGroup(); - buildCounterFloodlightActivityGroup++; - if (buildCounterFloodlightActivityGroup < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.floodlightConfigurationId = "foo"; - o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - o.tagString = "foo"; - o.type = "foo"; - } - buildCounterFloodlightActivityGroup--; - return o; -} - -checkFloodlightActivityGroup(api.FloodlightActivityGroup o) { - buildCounterFloodlightActivityGroup++; - if (buildCounterFloodlightActivityGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); - checkDimensionValue(o.floodlightConfigurationIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.tagString, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterFloodlightActivityGroup--; -} - -buildUnnamed3117() { - var o = new core.List<api.FloodlightActivityGroup>(); - o.add(buildFloodlightActivityGroup()); - o.add(buildFloodlightActivityGroup()); - return o; -} - -checkUnnamed3117(core.List<api.FloodlightActivityGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityGroup(o[0]); - checkFloodlightActivityGroup(o[1]); -} - -core.int buildCounterFloodlightActivityGroupsListResponse = 0; -buildFloodlightActivityGroupsListResponse() { - var o = new api.FloodlightActivityGroupsListResponse(); - buildCounterFloodlightActivityGroupsListResponse++; - if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed3117(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFloodlightActivityGroupsListResponse--; - return o; -} - -checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { - buildCounterFloodlightActivityGroupsListResponse++; - if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed3117(o.floodlightActivityGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterFloodlightActivityGroupsListResponse--; -} - -core.int buildCounterFloodlightActivityPublisherDynamicTag = 0; -buildFloodlightActivityPublisherDynamicTag() { - var o = new api.FloodlightActivityPublisherDynamicTag(); - buildCounterFloodlightActivityPublisherDynamicTag++; - if (buildCounterFloodlightActivityPublisherDynamicTag < 3) { - o.clickThrough = true; - o.directorySiteId = "foo"; - o.dynamicTag = buildFloodlightActivityDynamicTag(); - o.siteId = "foo"; - o.siteIdDimensionValue = buildDimensionValue(); - o.viewThrough = true; - } - buildCounterFloodlightActivityPublisherDynamicTag--; - return o; -} - -checkFloodlightActivityPublisherDynamicTag(api.FloodlightActivityPublisherDynamicTag o) { - buildCounterFloodlightActivityPublisherDynamicTag++; - if (buildCounterFloodlightActivityPublisherDynamicTag < 3) { - unittest.expect(o.clickThrough, unittest.isTrue); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkFloodlightActivityDynamicTag(o.dynamicTag); - unittest.expect(o.siteId, unittest.equals('foo')); - checkDimensionValue(o.siteIdDimensionValue); - unittest.expect(o.viewThrough, unittest.isTrue); - } - buildCounterFloodlightActivityPublisherDynamicTag--; -} - -buildUnnamed3118() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3118(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3119() { - var o = new core.List<api.ThirdPartyAuthenticationToken>(); - o.add(buildThirdPartyAuthenticationToken()); - o.add(buildThirdPartyAuthenticationToken()); - return o; -} - -checkUnnamed3119(core.List<api.ThirdPartyAuthenticationToken> o) { - unittest.expect(o, unittest.hasLength(2)); - checkThirdPartyAuthenticationToken(o[0]); - checkThirdPartyAuthenticationToken(o[1]); -} - -buildUnnamed3120() { - var o = new core.List<api.UserDefinedVariableConfiguration>(); - o.add(buildUserDefinedVariableConfiguration()); - o.add(buildUserDefinedVariableConfiguration()); - return o; -} - -checkUnnamed3120(core.List<api.UserDefinedVariableConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserDefinedVariableConfiguration(o[0]); - checkUserDefinedVariableConfiguration(o[1]); -} - -core.int buildCounterFloodlightConfiguration = 0; -buildFloodlightConfiguration() { - var o = new api.FloodlightConfiguration(); - buildCounterFloodlightConfiguration++; - if (buildCounterFloodlightConfiguration < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.analyticsDataSharingEnabled = true; - o.exposureToConversionEnabled = true; - o.firstDayOfWeek = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.inAppAttributionTrackingEnabled = true; - o.kind = "foo"; - o.lookbackConfiguration = buildLookbackConfiguration(); - o.naturalSearchConversionAttributionOption = "foo"; - o.omnitureSettings = buildOmnitureSettings(); - o.sslRequired = true; - o.standardVariableTypes = buildUnnamed3118(); - o.subaccountId = "foo"; - o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed3119(); - o.userDefinedVariableConfigurations = buildUnnamed3120(); - } - buildCounterFloodlightConfiguration--; - return o; -} - -checkFloodlightConfiguration(api.FloodlightConfiguration o) { - buildCounterFloodlightConfiguration++; - if (buildCounterFloodlightConfiguration < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue); - unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); - unittest.expect(o.firstDayOfWeek, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.inAppAttributionTrackingEnabled, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); - checkOmnitureSettings(o.omnitureSettings); - unittest.expect(o.sslRequired, unittest.isTrue); - checkUnnamed3118(o.standardVariableTypes); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkTagSettings(o.tagSettings); - checkUnnamed3119(o.thirdPartyAuthenticationTokens); - checkUnnamed3120(o.userDefinedVariableConfigurations); - } - buildCounterFloodlightConfiguration--; -} - -buildUnnamed3121() { - var o = new core.List<api.FloodlightConfiguration>(); - o.add(buildFloodlightConfiguration()); - o.add(buildFloodlightConfiguration()); - return o; -} - -checkUnnamed3121(core.List<api.FloodlightConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightConfiguration(o[0]); - checkFloodlightConfiguration(o[1]); -} - -core.int buildCounterFloodlightConfigurationsListResponse = 0; -buildFloodlightConfigurationsListResponse() { - var o = new api.FloodlightConfigurationsListResponse(); - buildCounterFloodlightConfigurationsListResponse++; - if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed3121(); - o.kind = "foo"; - } - buildCounterFloodlightConfigurationsListResponse--; - return o; -} - -checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { - buildCounterFloodlightConfigurationsListResponse++; - if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed3121(o.floodlightConfigurations); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterFloodlightConfigurationsListResponse--; -} - -buildUnnamed3122() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3122(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3123() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3123(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3124() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3124(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterFloodlightReportCompatibleFields = 0; -buildFloodlightReportCompatibleFields() { - var o = new api.FloodlightReportCompatibleFields(); - buildCounterFloodlightReportCompatibleFields++; - if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed3122(); - o.dimensions = buildUnnamed3123(); - o.kind = "foo"; - o.metrics = buildUnnamed3124(); - } - buildCounterFloodlightReportCompatibleFields--; - return o; -} - -checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { - buildCounterFloodlightReportCompatibleFields++; - if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed3122(o.dimensionFilters); - checkUnnamed3123(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3124(o.metrics); - } - buildCounterFloodlightReportCompatibleFields--; -} - -core.int buildCounterFrequencyCap = 0; -buildFrequencyCap() { - var o = new api.FrequencyCap(); - buildCounterFrequencyCap++; - if (buildCounterFrequencyCap < 3) { - o.duration = "foo"; - o.impressions = "foo"; - } - buildCounterFrequencyCap--; - return o; -} - -checkFrequencyCap(api.FrequencyCap o) { - buildCounterFrequencyCap++; - if (buildCounterFrequencyCap < 3) { - unittest.expect(o.duration, unittest.equals('foo')); - unittest.expect(o.impressions, unittest.equals('foo')); - } - buildCounterFrequencyCap--; -} - -core.int buildCounterFsCommand = 0; -buildFsCommand() { - var o = new api.FsCommand(); - buildCounterFsCommand++; - if (buildCounterFsCommand < 3) { - o.left = 42; - o.positionOption = "foo"; - o.top = 42; - o.windowHeight = 42; - o.windowWidth = 42; - } - buildCounterFsCommand--; - return o; -} - -checkFsCommand(api.FsCommand o) { - buildCounterFsCommand++; - if (buildCounterFsCommand < 3) { - unittest.expect(o.left, unittest.equals(42)); - unittest.expect(o.positionOption, unittest.equals('foo')); - unittest.expect(o.top, unittest.equals(42)); - unittest.expect(o.windowHeight, unittest.equals(42)); - unittest.expect(o.windowWidth, unittest.equals(42)); - } - buildCounterFsCommand--; -} - -buildUnnamed3125() { - var o = new core.List<api.City>(); - o.add(buildCity()); - o.add(buildCity()); - return o; -} - -checkUnnamed3125(core.List<api.City> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCity(o[0]); - checkCity(o[1]); -} - -buildUnnamed3126() { - var o = new core.List<api.Country>(); - o.add(buildCountry()); - o.add(buildCountry()); - return o; -} - -checkUnnamed3126(core.List<api.Country> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCountry(o[0]); - checkCountry(o[1]); -} - -buildUnnamed3127() { - var o = new core.List<api.Metro>(); - o.add(buildMetro()); - o.add(buildMetro()); - return o; -} - -checkUnnamed3127(core.List<api.Metro> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetro(o[0]); - checkMetro(o[1]); -} - -buildUnnamed3128() { - var o = new core.List<api.PostalCode>(); - o.add(buildPostalCode()); - o.add(buildPostalCode()); - return o; -} - -checkUnnamed3128(core.List<api.PostalCode> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPostalCode(o[0]); - checkPostalCode(o[1]); -} - -buildUnnamed3129() { - var o = new core.List<api.Region>(); - o.add(buildRegion()); - o.add(buildRegion()); - return o; -} - -checkUnnamed3129(core.List<api.Region> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRegion(o[0]); - checkRegion(o[1]); -} - -core.int buildCounterGeoTargeting = 0; -buildGeoTargeting() { - var o = new api.GeoTargeting(); - buildCounterGeoTargeting++; - if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed3125(); - o.countries = buildUnnamed3126(); - o.excludeCountries = true; - o.metros = buildUnnamed3127(); - o.postalCodes = buildUnnamed3128(); - o.regions = buildUnnamed3129(); - } - buildCounterGeoTargeting--; - return o; -} - -checkGeoTargeting(api.GeoTargeting o) { - buildCounterGeoTargeting++; - if (buildCounterGeoTargeting < 3) { - checkUnnamed3125(o.cities); - checkUnnamed3126(o.countries); - unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed3127(o.metros); - checkUnnamed3128(o.postalCodes); - checkUnnamed3129(o.regions); - } - buildCounterGeoTargeting--; -} - -buildUnnamed3130() { - var o = new core.List<api.AdSlot>(); - o.add(buildAdSlot()); - o.add(buildAdSlot()); - return o; -} - -checkUnnamed3130(core.List<api.AdSlot> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAdSlot(o[0]); - checkAdSlot(o[1]); -} - -core.int buildCounterInventoryItem = 0; -buildInventoryItem() { - var o = new api.InventoryItem(); - buildCounterInventoryItem++; - if (buildCounterInventoryItem < 3) { - o.accountId = "foo"; - o.adSlots = buildUnnamed3130(); - o.advertiserId = "foo"; - o.contentCategoryId = "foo"; - o.estimatedClickThroughRate = "foo"; - o.estimatedConversionRate = "foo"; - o.id = "foo"; - o.inPlan = true; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.negotiationChannelId = "foo"; - o.orderId = "foo"; - o.placementStrategyId = "foo"; - o.pricing = buildPricing(); - o.projectId = "foo"; - o.rfpId = "foo"; - o.siteId = "foo"; - o.subaccountId = "foo"; - } - buildCounterInventoryItem--; - return o; -} - -checkInventoryItem(api.InventoryItem o) { - buildCounterInventoryItem++; - if (buildCounterInventoryItem < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3130(o.adSlots); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.contentCategoryId, unittest.equals('foo')); - unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); - unittest.expect(o.estimatedConversionRate, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.inPlan, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.negotiationChannelId, unittest.equals('foo')); - unittest.expect(o.orderId, unittest.equals('foo')); - unittest.expect(o.placementStrategyId, unittest.equals('foo')); - checkPricing(o.pricing); - unittest.expect(o.projectId, unittest.equals('foo')); - unittest.expect(o.rfpId, unittest.equals('foo')); - unittest.expect(o.siteId, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterInventoryItem--; -} - -buildUnnamed3131() { - var o = new core.List<api.InventoryItem>(); - o.add(buildInventoryItem()); - o.add(buildInventoryItem()); - return o; -} - -checkUnnamed3131(core.List<api.InventoryItem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkInventoryItem(o[0]); - checkInventoryItem(o[1]); -} - -core.int buildCounterInventoryItemsListResponse = 0; -buildInventoryItemsListResponse() { - var o = new api.InventoryItemsListResponse(); - buildCounterInventoryItemsListResponse++; - if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed3131(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterInventoryItemsListResponse--; - return o; -} - -checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { - buildCounterInventoryItemsListResponse++; - if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed3131(o.inventoryItems); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterInventoryItemsListResponse--; -} - -core.int buildCounterKeyValueTargetingExpression = 0; -buildKeyValueTargetingExpression() { - var o = new api.KeyValueTargetingExpression(); - buildCounterKeyValueTargetingExpression++; - if (buildCounterKeyValueTargetingExpression < 3) { - o.expression = "foo"; - } - buildCounterKeyValueTargetingExpression--; - return o; -} - -checkKeyValueTargetingExpression(api.KeyValueTargetingExpression o) { - buildCounterKeyValueTargetingExpression++; - if (buildCounterKeyValueTargetingExpression < 3) { - unittest.expect(o.expression, unittest.equals('foo')); - } - buildCounterKeyValueTargetingExpression--; -} - -core.int buildCounterLandingPage = 0; -buildLandingPage() { - var o = new api.LandingPage(); - buildCounterLandingPage++; - if (buildCounterLandingPage < 3) { - o.default_ = true; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.url = "foo"; - } - buildCounterLandingPage--; - return o; -} - -checkLandingPage(api.LandingPage o) { - buildCounterLandingPage++; - if (buildCounterLandingPage < 3) { - unittest.expect(o.default_, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterLandingPage--; -} - -buildUnnamed3132() { - var o = new core.List<api.LandingPage>(); - o.add(buildLandingPage()); - o.add(buildLandingPage()); - return o; -} - -checkUnnamed3132(core.List<api.LandingPage> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLandingPage(o[0]); - checkLandingPage(o[1]); -} - -core.int buildCounterLandingPagesListResponse = 0; -buildLandingPagesListResponse() { - var o = new api.LandingPagesListResponse(); - buildCounterLandingPagesListResponse++; - if (buildCounterLandingPagesListResponse < 3) { - o.kind = "foo"; - o.landingPages = buildUnnamed3132(); - } - buildCounterLandingPagesListResponse--; - return o; -} - -checkLandingPagesListResponse(api.LandingPagesListResponse o) { - buildCounterLandingPagesListResponse++; - if (buildCounterLandingPagesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3132(o.landingPages); - } - buildCounterLandingPagesListResponse--; -} - -core.int buildCounterLastModifiedInfo = 0; -buildLastModifiedInfo() { - var o = new api.LastModifiedInfo(); - buildCounterLastModifiedInfo++; - if (buildCounterLastModifiedInfo < 3) { - o.time = "foo"; - } - buildCounterLastModifiedInfo--; - return o; -} - -checkLastModifiedInfo(api.LastModifiedInfo o) { - buildCounterLastModifiedInfo++; - if (buildCounterLastModifiedInfo < 3) { - unittest.expect(o.time, unittest.equals('foo')); - } - buildCounterLastModifiedInfo--; -} - -buildUnnamed3133() { - var o = new core.List<api.ListPopulationTerm>(); - o.add(buildListPopulationTerm()); - o.add(buildListPopulationTerm()); - return o; -} - -checkUnnamed3133(core.List<api.ListPopulationTerm> o) { - unittest.expect(o, unittest.hasLength(2)); - checkListPopulationTerm(o[0]); - checkListPopulationTerm(o[1]); -} - -core.int buildCounterListPopulationClause = 0; -buildListPopulationClause() { - var o = new api.ListPopulationClause(); - buildCounterListPopulationClause++; - if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed3133(); - } - buildCounterListPopulationClause--; - return o; -} - -checkListPopulationClause(api.ListPopulationClause o) { - buildCounterListPopulationClause++; - if (buildCounterListPopulationClause < 3) { - checkUnnamed3133(o.terms); - } - buildCounterListPopulationClause--; -} - -buildUnnamed3134() { - var o = new core.List<api.ListPopulationClause>(); - o.add(buildListPopulationClause()); - o.add(buildListPopulationClause()); - return o; -} - -checkUnnamed3134(core.List<api.ListPopulationClause> o) { - unittest.expect(o, unittest.hasLength(2)); - checkListPopulationClause(o[0]); - checkListPopulationClause(o[1]); -} - -core.int buildCounterListPopulationRule = 0; -buildListPopulationRule() { - var o = new api.ListPopulationRule(); - buildCounterListPopulationRule++; - if (buildCounterListPopulationRule < 3) { - o.floodlightActivityId = "foo"; - o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed3134(); - } - buildCounterListPopulationRule--; - return o; -} - -checkListPopulationRule(api.ListPopulationRule o) { - buildCounterListPopulationRule++; - if (buildCounterListPopulationRule < 3) { - unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed3134(o.listPopulationClauses); - } - buildCounterListPopulationRule--; -} - -core.int buildCounterListPopulationTerm = 0; -buildListPopulationTerm() { - var o = new api.ListPopulationTerm(); - buildCounterListPopulationTerm++; - if (buildCounterListPopulationTerm < 3) { - o.contains = true; - o.negation = true; - o.operator = "foo"; - o.remarketingListId = "foo"; - o.type = "foo"; - o.value = "foo"; - o.variableFriendlyName = "foo"; - o.variableName = "foo"; - } - buildCounterListPopulationTerm--; - return o; -} - -checkListPopulationTerm(api.ListPopulationTerm o) { - buildCounterListPopulationTerm++; - if (buildCounterListPopulationTerm < 3) { - unittest.expect(o.contains, unittest.isTrue); - unittest.expect(o.negation, unittest.isTrue); - unittest.expect(o.operator, unittest.equals('foo')); - unittest.expect(o.remarketingListId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - unittest.expect(o.variableFriendlyName, unittest.equals('foo')); - unittest.expect(o.variableName, unittest.equals('foo')); - } - buildCounterListPopulationTerm--; -} - -core.int buildCounterListTargetingExpression = 0; -buildListTargetingExpression() { - var o = new api.ListTargetingExpression(); - buildCounterListTargetingExpression++; - if (buildCounterListTargetingExpression < 3) { - o.expression = "foo"; - } - buildCounterListTargetingExpression--; - return o; -} - -checkListTargetingExpression(api.ListTargetingExpression o) { - buildCounterListTargetingExpression++; - if (buildCounterListTargetingExpression < 3) { - unittest.expect(o.expression, unittest.equals('foo')); - } - buildCounterListTargetingExpression--; -} - -core.int buildCounterLookbackConfiguration = 0; -buildLookbackConfiguration() { - var o = new api.LookbackConfiguration(); - buildCounterLookbackConfiguration++; - if (buildCounterLookbackConfiguration < 3) { - o.clickDuration = 42; - o.postImpressionActivitiesDuration = 42; - } - buildCounterLookbackConfiguration--; - return o; -} - -checkLookbackConfiguration(api.LookbackConfiguration o) { - buildCounterLookbackConfiguration++; - if (buildCounterLookbackConfiguration < 3) { - unittest.expect(o.clickDuration, unittest.equals(42)); - unittest.expect(o.postImpressionActivitiesDuration, unittest.equals(42)); - } - buildCounterLookbackConfiguration--; -} - -core.int buildCounterMetric = 0; -buildMetric() { - var o = new api.Metric(); - buildCounterMetric++; - if (buildCounterMetric < 3) { - o.kind = "foo"; - o.name = "foo"; - } - buildCounterMetric--; - return o; -} - -checkMetric(api.Metric o) { - buildCounterMetric++; - if (buildCounterMetric < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterMetric--; -} - -core.int buildCounterMetro = 0; -buildMetro() { - var o = new api.Metro(); - buildCounterMetro++; - if (buildCounterMetro < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.dartId = "foo"; - o.dmaId = "foo"; - o.kind = "foo"; - o.metroCode = "foo"; - o.name = "foo"; - } - buildCounterMetro--; - return o; -} - -checkMetro(api.Metro o) { - buildCounterMetro++; - if (buildCounterMetro < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.dmaId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.metroCode, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterMetro--; -} - -buildUnnamed3135() { - var o = new core.List<api.Metro>(); - o.add(buildMetro()); - o.add(buildMetro()); - return o; -} - -checkUnnamed3135(core.List<api.Metro> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetro(o[0]); - checkMetro(o[1]); -} - -core.int buildCounterMetrosListResponse = 0; -buildMetrosListResponse() { - var o = new api.MetrosListResponse(); - buildCounterMetrosListResponse++; - if (buildCounterMetrosListResponse < 3) { - o.kind = "foo"; - o.metros = buildUnnamed3135(); - } - buildCounterMetrosListResponse--; - return o; -} - -checkMetrosListResponse(api.MetrosListResponse o) { - buildCounterMetrosListResponse++; - if (buildCounterMetrosListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3135(o.metros); - } - buildCounterMetrosListResponse--; -} - -core.int buildCounterMobileCarrier = 0; -buildMobileCarrier() { - var o = new api.MobileCarrier(); - buildCounterMobileCarrier++; - if (buildCounterMobileCarrier < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterMobileCarrier--; - return o; -} - -checkMobileCarrier(api.MobileCarrier o) { - buildCounterMobileCarrier++; - if (buildCounterMobileCarrier < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterMobileCarrier--; -} - -buildUnnamed3136() { - var o = new core.List<api.MobileCarrier>(); - o.add(buildMobileCarrier()); - o.add(buildMobileCarrier()); - return o; -} - -checkUnnamed3136(core.List<api.MobileCarrier> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMobileCarrier(o[0]); - checkMobileCarrier(o[1]); -} - -core.int buildCounterMobileCarriersListResponse = 0; -buildMobileCarriersListResponse() { - var o = new api.MobileCarriersListResponse(); - buildCounterMobileCarriersListResponse++; - if (buildCounterMobileCarriersListResponse < 3) { - o.kind = "foo"; - o.mobileCarriers = buildUnnamed3136(); - } - buildCounterMobileCarriersListResponse--; - return o; -} - -checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { - buildCounterMobileCarriersListResponse++; - if (buildCounterMobileCarriersListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3136(o.mobileCarriers); - } - buildCounterMobileCarriersListResponse--; -} - -buildUnnamed3137() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3137(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterObjectFilter = 0; -buildObjectFilter() { - var o = new api.ObjectFilter(); - buildCounterObjectFilter++; - if (buildCounterObjectFilter < 3) { - o.kind = "foo"; - o.objectIds = buildUnnamed3137(); - o.status = "foo"; - } - buildCounterObjectFilter--; - return o; -} - -checkObjectFilter(api.ObjectFilter o) { - buildCounterObjectFilter++; - if (buildCounterObjectFilter < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3137(o.objectIds); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterObjectFilter--; -} - -core.int buildCounterOffsetPosition = 0; -buildOffsetPosition() { - var o = new api.OffsetPosition(); - buildCounterOffsetPosition++; - if (buildCounterOffsetPosition < 3) { - o.left = 42; - o.top = 42; - } - buildCounterOffsetPosition--; - return o; -} - -checkOffsetPosition(api.OffsetPosition o) { - buildCounterOffsetPosition++; - if (buildCounterOffsetPosition < 3) { - unittest.expect(o.left, unittest.equals(42)); - unittest.expect(o.top, unittest.equals(42)); - } - buildCounterOffsetPosition--; -} - -core.int buildCounterOmnitureSettings = 0; -buildOmnitureSettings() { - var o = new api.OmnitureSettings(); - buildCounterOmnitureSettings++; - if (buildCounterOmnitureSettings < 3) { - o.omnitureCostDataEnabled = true; - o.omnitureIntegrationEnabled = true; - } - buildCounterOmnitureSettings--; - return o; -} - -checkOmnitureSettings(api.OmnitureSettings o) { - buildCounterOmnitureSettings++; - if (buildCounterOmnitureSettings < 3) { - unittest.expect(o.omnitureCostDataEnabled, unittest.isTrue); - unittest.expect(o.omnitureIntegrationEnabled, unittest.isTrue); - } - buildCounterOmnitureSettings--; -} - -core.int buildCounterOperatingSystem = 0; -buildOperatingSystem() { - var o = new api.OperatingSystem(); - buildCounterOperatingSystem++; - if (buildCounterOperatingSystem < 3) { - o.dartId = "foo"; - o.desktop = true; - o.kind = "foo"; - o.mobile = true; - o.name = "foo"; - } - buildCounterOperatingSystem--; - return o; -} - -checkOperatingSystem(api.OperatingSystem o) { - buildCounterOperatingSystem++; - if (buildCounterOperatingSystem < 3) { - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.desktop, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.mobile, unittest.isTrue); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterOperatingSystem--; -} - -core.int buildCounterOperatingSystemVersion = 0; -buildOperatingSystemVersion() { - var o = new api.OperatingSystemVersion(); - buildCounterOperatingSystemVersion++; - if (buildCounterOperatingSystemVersion < 3) { - o.id = "foo"; - o.kind = "foo"; - o.majorVersion = "foo"; - o.minorVersion = "foo"; - o.name = "foo"; - o.operatingSystem = buildOperatingSystem(); - } - buildCounterOperatingSystemVersion--; - return o; -} - -checkOperatingSystemVersion(api.OperatingSystemVersion o) { - buildCounterOperatingSystemVersion++; - if (buildCounterOperatingSystemVersion < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.majorVersion, unittest.equals('foo')); - unittest.expect(o.minorVersion, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkOperatingSystem(o.operatingSystem); - } - buildCounterOperatingSystemVersion--; -} - -buildUnnamed3138() { - var o = new core.List<api.OperatingSystemVersion>(); - o.add(buildOperatingSystemVersion()); - o.add(buildOperatingSystemVersion()); - return o; -} - -checkUnnamed3138(core.List<api.OperatingSystemVersion> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystemVersion(o[0]); - checkOperatingSystemVersion(o[1]); -} - -core.int buildCounterOperatingSystemVersionsListResponse = 0; -buildOperatingSystemVersionsListResponse() { - var o = new api.OperatingSystemVersionsListResponse(); - buildCounterOperatingSystemVersionsListResponse++; - if (buildCounterOperatingSystemVersionsListResponse < 3) { - o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed3138(); - } - buildCounterOperatingSystemVersionsListResponse--; - return o; -} - -checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse o) { - buildCounterOperatingSystemVersionsListResponse++; - if (buildCounterOperatingSystemVersionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3138(o.operatingSystemVersions); - } - buildCounterOperatingSystemVersionsListResponse--; -} - -buildUnnamed3139() { - var o = new core.List<api.OperatingSystem>(); - o.add(buildOperatingSystem()); - o.add(buildOperatingSystem()); - return o; -} - -checkUnnamed3139(core.List<api.OperatingSystem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystem(o[0]); - checkOperatingSystem(o[1]); -} - -core.int buildCounterOperatingSystemsListResponse = 0; -buildOperatingSystemsListResponse() { - var o = new api.OperatingSystemsListResponse(); - buildCounterOperatingSystemsListResponse++; - if (buildCounterOperatingSystemsListResponse < 3) { - o.kind = "foo"; - o.operatingSystems = buildUnnamed3139(); - } - buildCounterOperatingSystemsListResponse--; - return o; -} - -checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { - buildCounterOperatingSystemsListResponse++; - if (buildCounterOperatingSystemsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3139(o.operatingSystems); - } - buildCounterOperatingSystemsListResponse--; -} - -core.int buildCounterOptimizationActivity = 0; -buildOptimizationActivity() { - var o = new api.OptimizationActivity(); - buildCounterOptimizationActivity++; - if (buildCounterOptimizationActivity < 3) { - o.floodlightActivityId = "foo"; - o.floodlightActivityIdDimensionValue = buildDimensionValue(); - o.weight = 42; - } - buildCounterOptimizationActivity--; - return o; -} - -checkOptimizationActivity(api.OptimizationActivity o) { - buildCounterOptimizationActivity++; - if (buildCounterOptimizationActivity < 3) { - unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkDimensionValue(o.floodlightActivityIdDimensionValue); - unittest.expect(o.weight, unittest.equals(42)); - } - buildCounterOptimizationActivity--; -} - -buildUnnamed3140() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3140(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3141() { - var o = new core.List<api.OrderContact>(); - o.add(buildOrderContact()); - o.add(buildOrderContact()); - return o; -} - -checkUnnamed3141(core.List<api.OrderContact> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrderContact(o[0]); - checkOrderContact(o[1]); -} - -buildUnnamed3142() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3142(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3143() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3143(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterOrder = 0; -buildOrder() { - var o = new api.Order(); - buildCounterOrder++; - if (buildCounterOrder < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed3140(); - o.buyerInvoiceId = "foo"; - o.buyerOrganizationName = "foo"; - o.comments = "foo"; - o.contacts = buildUnnamed3141(); - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.notes = "foo"; - o.planningTermId = "foo"; - o.projectId = "foo"; - o.sellerOrderId = "foo"; - o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed3142(); - o.siteNames = buildUnnamed3143(); - o.subaccountId = "foo"; - o.termsAndConditions = "foo"; - } - buildCounterOrder--; - return o; -} - -checkOrder(api.Order o) { - buildCounterOrder++; - if (buildCounterOrder < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed3140(o.approverUserProfileIds); - unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); - unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); - unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed3141(o.contacts); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.notes, unittest.equals('foo')); - unittest.expect(o.planningTermId, unittest.equals('foo')); - unittest.expect(o.projectId, unittest.equals('foo')); - unittest.expect(o.sellerOrderId, unittest.equals('foo')); - unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed3142(o.siteId); - checkUnnamed3143(o.siteNames); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.termsAndConditions, unittest.equals('foo')); - } - buildCounterOrder--; -} - -core.int buildCounterOrderContact = 0; -buildOrderContact() { - var o = new api.OrderContact(); - buildCounterOrderContact++; - if (buildCounterOrderContact < 3) { - o.contactInfo = "foo"; - o.contactName = "foo"; - o.contactTitle = "foo"; - o.contactType = "foo"; - o.signatureUserProfileId = "foo"; - } - buildCounterOrderContact--; - return o; -} - -checkOrderContact(api.OrderContact o) { - buildCounterOrderContact++; - if (buildCounterOrderContact < 3) { - unittest.expect(o.contactInfo, unittest.equals('foo')); - unittest.expect(o.contactName, unittest.equals('foo')); - unittest.expect(o.contactTitle, unittest.equals('foo')); - unittest.expect(o.contactType, unittest.equals('foo')); - unittest.expect(o.signatureUserProfileId, unittest.equals('foo')); - } - buildCounterOrderContact--; -} - -buildUnnamed3144() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3144(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3145() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3145(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterOrderDocument = 0; -buildOrderDocument() { - var o = new api.OrderDocument(); - buildCounterOrderDocument++; - if (buildCounterOrderDocument < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed3144(); - o.cancelled = true; - o.createdInfo = buildLastModifiedInfo(); - o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.id = "foo"; - o.kind = "foo"; - o.lastSentRecipients = buildUnnamed3145(); - o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.orderId = "foo"; - o.projectId = "foo"; - o.signed = true; - o.subaccountId = "foo"; - o.title = "foo"; - o.type = "foo"; - } - buildCounterOrderDocument--; - return o; -} - -checkOrderDocument(api.OrderDocument o) { - buildCounterOrderDocument++; - if (buildCounterOrderDocument < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed3144(o.approvedByUserProfileIds); - unittest.expect(o.cancelled, unittest.isTrue); - checkLastModifiedInfo(o.createdInfo); - unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3145(o.lastSentRecipients); - unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.orderId, unittest.equals('foo')); - unittest.expect(o.projectId, unittest.equals('foo')); - unittest.expect(o.signed, unittest.isTrue); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterOrderDocument--; -} - -buildUnnamed3146() { - var o = new core.List<api.OrderDocument>(); - o.add(buildOrderDocument()); - o.add(buildOrderDocument()); - return o; -} - -checkUnnamed3146(core.List<api.OrderDocument> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrderDocument(o[0]); - checkOrderDocument(o[1]); -} - -core.int buildCounterOrderDocumentsListResponse = 0; -buildOrderDocumentsListResponse() { - var o = new api.OrderDocumentsListResponse(); - buildCounterOrderDocumentsListResponse++; - if (buildCounterOrderDocumentsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed3146(); - } - buildCounterOrderDocumentsListResponse--; - return o; -} - -checkOrderDocumentsListResponse(api.OrderDocumentsListResponse o) { - buildCounterOrderDocumentsListResponse++; - if (buildCounterOrderDocumentsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3146(o.orderDocuments); - } - buildCounterOrderDocumentsListResponse--; -} - -buildUnnamed3147() { - var o = new core.List<api.Order>(); - o.add(buildOrder()); - o.add(buildOrder()); - return o; -} - -checkUnnamed3147(core.List<api.Order> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrder(o[0]); - checkOrder(o[1]); -} - -core.int buildCounterOrdersListResponse = 0; -buildOrdersListResponse() { - var o = new api.OrdersListResponse(); - buildCounterOrdersListResponse++; - if (buildCounterOrdersListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.orders = buildUnnamed3147(); - } - buildCounterOrdersListResponse--; - return o; -} - -checkOrdersListResponse(api.OrdersListResponse o) { - buildCounterOrdersListResponse++; - if (buildCounterOrdersListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3147(o.orders); - } - buildCounterOrdersListResponse--; -} - -buildUnnamed3148() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3148(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3149() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3149(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3150() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3150(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3151() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3151(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -core.int buildCounterPathToConversionReportCompatibleFields = 0; -buildPathToConversionReportCompatibleFields() { - var o = new api.PathToConversionReportCompatibleFields(); - buildCounterPathToConversionReportCompatibleFields++; - if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed3148(); - o.customFloodlightVariables = buildUnnamed3149(); - o.kind = "foo"; - o.metrics = buildUnnamed3150(); - o.perInteractionDimensions = buildUnnamed3151(); - } - buildCounterPathToConversionReportCompatibleFields--; - return o; -} - -checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { - buildCounterPathToConversionReportCompatibleFields++; - if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed3148(o.conversionDimensions); - checkUnnamed3149(o.customFloodlightVariables); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3150(o.metrics); - checkUnnamed3151(o.perInteractionDimensions); - } - buildCounterPathToConversionReportCompatibleFields--; -} - -buildUnnamed3152() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3152(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterPlacement = 0; -buildPlacement() { - var o = new api.Placement(); - buildCounterPlacement++; - if (buildCounterPlacement < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.comment = "foo"; - o.compatibility = "foo"; - o.contentCategoryId = "foo"; - o.createInfo = buildLastModifiedInfo(); - o.directorySiteId = "foo"; - o.directorySiteIdDimensionValue = buildDimensionValue(); - o.externalId = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.keyName = "foo"; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.lookbackConfiguration = buildLookbackConfiguration(); - o.name = "foo"; - o.paymentApproved = true; - o.paymentSource = "foo"; - o.placementGroupId = "foo"; - o.placementGroupIdDimensionValue = buildDimensionValue(); - o.placementStrategyId = "foo"; - o.pricingSchedule = buildPricingSchedule(); - o.primary = true; - o.publisherUpdateInfo = buildLastModifiedInfo(); - o.siteId = "foo"; - o.siteIdDimensionValue = buildDimensionValue(); - o.size = buildSize(); - o.sslRequired = true; - o.status = "foo"; - o.subaccountId = "foo"; - o.tagFormats = buildUnnamed3152(); - o.tagSetting = buildTagSetting(); - } - buildCounterPlacement--; - return o; -} - -checkPlacement(api.Placement o) { - buildCounterPlacement++; - if (buildCounterPlacement < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.compatibility, unittest.equals('foo')); - unittest.expect(o.contentCategoryId, unittest.equals('foo')); - checkLastModifiedInfo(o.createInfo); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkDimensionValue(o.directorySiteIdDimensionValue); - unittest.expect(o.externalId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.keyName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.paymentApproved, unittest.isTrue); - unittest.expect(o.paymentSource, unittest.equals('foo')); - unittest.expect(o.placementGroupId, unittest.equals('foo')); - checkDimensionValue(o.placementGroupIdDimensionValue); - unittest.expect(o.placementStrategyId, unittest.equals('foo')); - checkPricingSchedule(o.pricingSchedule); - unittest.expect(o.primary, unittest.isTrue); - checkLastModifiedInfo(o.publisherUpdateInfo); - unittest.expect(o.siteId, unittest.equals('foo')); - checkDimensionValue(o.siteIdDimensionValue); - checkSize(o.size); - unittest.expect(o.sslRequired, unittest.isTrue); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed3152(o.tagFormats); - checkTagSetting(o.tagSetting); - } - buildCounterPlacement--; -} - -core.int buildCounterPlacementAssignment = 0; -buildPlacementAssignment() { - var o = new api.PlacementAssignment(); - buildCounterPlacementAssignment++; - if (buildCounterPlacementAssignment < 3) { - o.active = true; - o.placementId = "foo"; - o.placementIdDimensionValue = buildDimensionValue(); - o.sslRequired = true; - } - buildCounterPlacementAssignment--; - return o; -} - -checkPlacementAssignment(api.PlacementAssignment o) { - buildCounterPlacementAssignment++; - if (buildCounterPlacementAssignment < 3) { - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.placementId, unittest.equals('foo')); - checkDimensionValue(o.placementIdDimensionValue); - unittest.expect(o.sslRequired, unittest.isTrue); - } - buildCounterPlacementAssignment--; -} - -buildUnnamed3153() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3153(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterPlacementGroup = 0; -buildPlacementGroup() { - var o = new api.PlacementGroup(); - buildCounterPlacementGroup++; - if (buildCounterPlacementGroup < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed3153(); - o.comment = "foo"; - o.contentCategoryId = "foo"; - o.createInfo = buildLastModifiedInfo(); - o.directorySiteId = "foo"; - o.directorySiteIdDimensionValue = buildDimensionValue(); - o.externalId = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.placementGroupType = "foo"; - o.placementStrategyId = "foo"; - o.pricingSchedule = buildPricingSchedule(); - o.primaryPlacementId = "foo"; - o.primaryPlacementIdDimensionValue = buildDimensionValue(); - o.siteId = "foo"; - o.siteIdDimensionValue = buildDimensionValue(); - o.subaccountId = "foo"; - } - buildCounterPlacementGroup--; - return o; -} - -checkPlacementGroup(api.PlacementGroup o) { - buildCounterPlacementGroup++; - if (buildCounterPlacementGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed3153(o.childPlacementIds); - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.contentCategoryId, unittest.equals('foo')); - checkLastModifiedInfo(o.createInfo); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkDimensionValue(o.directorySiteIdDimensionValue); - unittest.expect(o.externalId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.placementGroupType, unittest.equals('foo')); - unittest.expect(o.placementStrategyId, unittest.equals('foo')); - checkPricingSchedule(o.pricingSchedule); - unittest.expect(o.primaryPlacementId, unittest.equals('foo')); - checkDimensionValue(o.primaryPlacementIdDimensionValue); - unittest.expect(o.siteId, unittest.equals('foo')); - checkDimensionValue(o.siteIdDimensionValue); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterPlacementGroup--; -} - -buildUnnamed3154() { - var o = new core.List<api.PlacementGroup>(); - o.add(buildPlacementGroup()); - o.add(buildPlacementGroup()); - return o; -} - -checkUnnamed3154(core.List<api.PlacementGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementGroup(o[0]); - checkPlacementGroup(o[1]); -} - -core.int buildCounterPlacementGroupsListResponse = 0; -buildPlacementGroupsListResponse() { - var o = new api.PlacementGroupsListResponse(); - buildCounterPlacementGroupsListResponse++; - if (buildCounterPlacementGroupsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed3154(); - } - buildCounterPlacementGroupsListResponse--; - return o; -} - -checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) { - buildCounterPlacementGroupsListResponse++; - if (buildCounterPlacementGroupsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3154(o.placementGroups); - } - buildCounterPlacementGroupsListResponse--; -} - -buildUnnamed3155() { - var o = new core.List<api.PlacementStrategy>(); - o.add(buildPlacementStrategy()); - o.add(buildPlacementStrategy()); - return o; -} - -checkUnnamed3155(core.List<api.PlacementStrategy> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementStrategy(o[0]); - checkPlacementStrategy(o[1]); -} - -core.int buildCounterPlacementStrategiesListResponse = 0; -buildPlacementStrategiesListResponse() { - var o = new api.PlacementStrategiesListResponse(); - buildCounterPlacementStrategiesListResponse++; - if (buildCounterPlacementStrategiesListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed3155(); - } - buildCounterPlacementStrategiesListResponse--; - return o; -} - -checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) { - buildCounterPlacementStrategiesListResponse++; - if (buildCounterPlacementStrategiesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3155(o.placementStrategies); - } - buildCounterPlacementStrategiesListResponse--; -} - -core.int buildCounterPlacementStrategy = 0; -buildPlacementStrategy() { - var o = new api.PlacementStrategy(); - buildCounterPlacementStrategy++; - if (buildCounterPlacementStrategy < 3) { - o.accountId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterPlacementStrategy--; - return o; -} - -checkPlacementStrategy(api.PlacementStrategy o) { - buildCounterPlacementStrategy++; - if (buildCounterPlacementStrategy < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterPlacementStrategy--; -} - -buildUnnamed3156() { - var o = new core.List<api.TagData>(); - o.add(buildTagData()); - o.add(buildTagData()); - return o; -} - -checkUnnamed3156(core.List<api.TagData> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTagData(o[0]); - checkTagData(o[1]); -} - -core.int buildCounterPlacementTag = 0; -buildPlacementTag() { - var o = new api.PlacementTag(); - buildCounterPlacementTag++; - if (buildCounterPlacementTag < 3) { - o.placementId = "foo"; - o.tagDatas = buildUnnamed3156(); - } - buildCounterPlacementTag--; - return o; -} - -checkPlacementTag(api.PlacementTag o) { - buildCounterPlacementTag++; - if (buildCounterPlacementTag < 3) { - unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed3156(o.tagDatas); - } - buildCounterPlacementTag--; -} - -buildUnnamed3157() { - var o = new core.List<api.PlacementTag>(); - o.add(buildPlacementTag()); - o.add(buildPlacementTag()); - return o; -} - -checkUnnamed3157(core.List<api.PlacementTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementTag(o[0]); - checkPlacementTag(o[1]); -} - -core.int buildCounterPlacementsGenerateTagsResponse = 0; -buildPlacementsGenerateTagsResponse() { - var o = new api.PlacementsGenerateTagsResponse(); - buildCounterPlacementsGenerateTagsResponse++; - if (buildCounterPlacementsGenerateTagsResponse < 3) { - o.kind = "foo"; - o.placementTags = buildUnnamed3157(); - } - buildCounterPlacementsGenerateTagsResponse--; - return o; -} - -checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { - buildCounterPlacementsGenerateTagsResponse++; - if (buildCounterPlacementsGenerateTagsResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3157(o.placementTags); - } - buildCounterPlacementsGenerateTagsResponse--; -} - -buildUnnamed3158() { - var o = new core.List<api.Placement>(); - o.add(buildPlacement()); - o.add(buildPlacement()); - return o; -} - -checkUnnamed3158(core.List<api.Placement> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacement(o[0]); - checkPlacement(o[1]); -} - -core.int buildCounterPlacementsListResponse = 0; -buildPlacementsListResponse() { - var o = new api.PlacementsListResponse(); - buildCounterPlacementsListResponse++; - if (buildCounterPlacementsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.placements = buildUnnamed3158(); - } - buildCounterPlacementsListResponse--; - return o; -} - -checkPlacementsListResponse(api.PlacementsListResponse o) { - buildCounterPlacementsListResponse++; - if (buildCounterPlacementsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3158(o.placements); - } - buildCounterPlacementsListResponse--; -} - -core.int buildCounterPlatformType = 0; -buildPlatformType() { - var o = new api.PlatformType(); - buildCounterPlatformType++; - if (buildCounterPlatformType < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterPlatformType--; - return o; -} - -checkPlatformType(api.PlatformType o) { - buildCounterPlatformType++; - if (buildCounterPlatformType < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterPlatformType--; -} - -buildUnnamed3159() { - var o = new core.List<api.PlatformType>(); - o.add(buildPlatformType()); - o.add(buildPlatformType()); - return o; -} - -checkUnnamed3159(core.List<api.PlatformType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlatformType(o[0]); - checkPlatformType(o[1]); -} - -core.int buildCounterPlatformTypesListResponse = 0; -buildPlatformTypesListResponse() { - var o = new api.PlatformTypesListResponse(); - buildCounterPlatformTypesListResponse++; - if (buildCounterPlatformTypesListResponse < 3) { - o.kind = "foo"; - o.platformTypes = buildUnnamed3159(); - } - buildCounterPlatformTypesListResponse--; - return o; -} - -checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { - buildCounterPlatformTypesListResponse++; - if (buildCounterPlatformTypesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3159(o.platformTypes); - } - buildCounterPlatformTypesListResponse--; -} - -core.int buildCounterPopupWindowProperties = 0; -buildPopupWindowProperties() { - var o = new api.PopupWindowProperties(); - buildCounterPopupWindowProperties++; - if (buildCounterPopupWindowProperties < 3) { - o.dimension = buildSize(); - o.offset = buildOffsetPosition(); - o.positionType = "foo"; - o.showAddressBar = true; - o.showMenuBar = true; - o.showScrollBar = true; - o.showStatusBar = true; - o.showToolBar = true; - o.title = "foo"; - } - buildCounterPopupWindowProperties--; - return o; -} - -checkPopupWindowProperties(api.PopupWindowProperties o) { - buildCounterPopupWindowProperties++; - if (buildCounterPopupWindowProperties < 3) { - checkSize(o.dimension); - checkOffsetPosition(o.offset); - unittest.expect(o.positionType, unittest.equals('foo')); - unittest.expect(o.showAddressBar, unittest.isTrue); - unittest.expect(o.showMenuBar, unittest.isTrue); - unittest.expect(o.showScrollBar, unittest.isTrue); - unittest.expect(o.showStatusBar, unittest.isTrue); - unittest.expect(o.showToolBar, unittest.isTrue); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterPopupWindowProperties--; -} - -core.int buildCounterPostalCode = 0; -buildPostalCode() { - var o = new api.PostalCode(); - buildCounterPostalCode++; - if (buildCounterPostalCode < 3) { - o.code = "foo"; - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.id = "foo"; - o.kind = "foo"; - } - buildCounterPostalCode--; - return o; -} - -checkPostalCode(api.PostalCode o) { - buildCounterPostalCode++; - if (buildCounterPostalCode < 3) { - unittest.expect(o.code, unittest.equals('foo')); - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterPostalCode--; -} - -buildUnnamed3160() { - var o = new core.List<api.PostalCode>(); - o.add(buildPostalCode()); - o.add(buildPostalCode()); - return o; -} - -checkUnnamed3160(core.List<api.PostalCode> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPostalCode(o[0]); - checkPostalCode(o[1]); -} - -core.int buildCounterPostalCodesListResponse = 0; -buildPostalCodesListResponse() { - var o = new api.PostalCodesListResponse(); - buildCounterPostalCodesListResponse++; - if (buildCounterPostalCodesListResponse < 3) { - o.kind = "foo"; - o.postalCodes = buildUnnamed3160(); - } - buildCounterPostalCodesListResponse--; - return o; -} - -checkPostalCodesListResponse(api.PostalCodesListResponse o) { - buildCounterPostalCodesListResponse++; - if (buildCounterPostalCodesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3160(o.postalCodes); - } - buildCounterPostalCodesListResponse--; -} - -buildUnnamed3161() { - var o = new core.List<api.Flight>(); - o.add(buildFlight()); - o.add(buildFlight()); - return o; -} - -checkUnnamed3161(core.List<api.Flight> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFlight(o[0]); - checkFlight(o[1]); -} - -core.int buildCounterPricing = 0; -buildPricing() { - var o = new api.Pricing(); - buildCounterPricing++; - if (buildCounterPricing < 3) { - o.capCostType = "foo"; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed3161(); - o.groupType = "foo"; - o.pricingType = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterPricing--; - return o; -} - -checkPricing(api.Pricing o) { - buildCounterPricing++; - if (buildCounterPricing < 3) { - unittest.expect(o.capCostType, unittest.equals('foo')); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3161(o.flights); - unittest.expect(o.groupType, unittest.equals('foo')); - unittest.expect(o.pricingType, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterPricing--; -} - -buildUnnamed3162() { - var o = new core.List<api.PricingSchedulePricingPeriod>(); - o.add(buildPricingSchedulePricingPeriod()); - o.add(buildPricingSchedulePricingPeriod()); - return o; -} - -checkUnnamed3162(core.List<api.PricingSchedulePricingPeriod> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPricingSchedulePricingPeriod(o[0]); - checkPricingSchedulePricingPeriod(o[1]); -} - -core.int buildCounterPricingSchedule = 0; -buildPricingSchedule() { - var o = new api.PricingSchedule(); - buildCounterPricingSchedule++; - if (buildCounterPricingSchedule < 3) { - o.capCostOption = "foo"; - o.disregardOverdelivery = true; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flighted = true; - o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed3162(); - o.pricingType = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterPricingSchedule--; - return o; -} - -checkPricingSchedule(api.PricingSchedule o) { - buildCounterPricingSchedule++; - if (buildCounterPricingSchedule < 3) { - unittest.expect(o.capCostOption, unittest.equals('foo')); - unittest.expect(o.disregardOverdelivery, unittest.isTrue); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.flighted, unittest.isTrue); - unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed3162(o.pricingPeriods); - unittest.expect(o.pricingType, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterPricingSchedule--; -} - -core.int buildCounterPricingSchedulePricingPeriod = 0; -buildPricingSchedulePricingPeriod() { - var o = new api.PricingSchedulePricingPeriod(); - buildCounterPricingSchedulePricingPeriod++; - if (buildCounterPricingSchedulePricingPeriod < 3) { - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.pricingComment = "foo"; - o.rateOrCostNanos = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.units = "foo"; - } - buildCounterPricingSchedulePricingPeriod--; - return o; -} - -checkPricingSchedulePricingPeriod(api.PricingSchedulePricingPeriod o) { - buildCounterPricingSchedulePricingPeriod++; - if (buildCounterPricingSchedulePricingPeriod < 3) { - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.pricingComment, unittest.equals('foo')); - unittest.expect(o.rateOrCostNanos, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.units, unittest.equals('foo')); - } - buildCounterPricingSchedulePricingPeriod--; -} - -core.int buildCounterProject = 0; -buildProject() { - var o = new api.Project(); - buildCounterProject++; - if (buildCounterProject < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.audienceAgeGroup = "foo"; - o.audienceGender = "foo"; - o.budget = "foo"; - o.clientBillingCode = "foo"; - o.clientName = "foo"; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.overview = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subaccountId = "foo"; - o.targetClicks = "foo"; - o.targetConversions = "foo"; - o.targetCpaNanos = "foo"; - o.targetCpcNanos = "foo"; - o.targetCpmNanos = "foo"; - o.targetImpressions = "foo"; - } - buildCounterProject--; - return o; -} - -checkProject(api.Project o) { - buildCounterProject++; - if (buildCounterProject < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.audienceAgeGroup, unittest.equals('foo')); - unittest.expect(o.audienceGender, unittest.equals('foo')); - unittest.expect(o.budget, unittest.equals('foo')); - unittest.expect(o.clientBillingCode, unittest.equals('foo')); - unittest.expect(o.clientName, unittest.equals('foo')); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.overview, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.targetClicks, unittest.equals('foo')); - unittest.expect(o.targetConversions, unittest.equals('foo')); - unittest.expect(o.targetCpaNanos, unittest.equals('foo')); - unittest.expect(o.targetCpcNanos, unittest.equals('foo')); - unittest.expect(o.targetCpmNanos, unittest.equals('foo')); - unittest.expect(o.targetImpressions, unittest.equals('foo')); - } - buildCounterProject--; -} - -buildUnnamed3163() { - var o = new core.List<api.Project>(); - o.add(buildProject()); - o.add(buildProject()); - return o; -} - -checkUnnamed3163(core.List<api.Project> o) { - unittest.expect(o, unittest.hasLength(2)); - checkProject(o[0]); - checkProject(o[1]); -} - -core.int buildCounterProjectsListResponse = 0; -buildProjectsListResponse() { - var o = new api.ProjectsListResponse(); - buildCounterProjectsListResponse++; - if (buildCounterProjectsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.projects = buildUnnamed3163(); - } - buildCounterProjectsListResponse--; - return o; -} - -checkProjectsListResponse(api.ProjectsListResponse o) { - buildCounterProjectsListResponse++; - if (buildCounterProjectsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3163(o.projects); - } - buildCounterProjectsListResponse--; -} - -buildUnnamed3164() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3164(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3165() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3165(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3166() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3166(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3167() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3167(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3168() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3168(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterReachReportCompatibleFields = 0; -buildReachReportCompatibleFields() { - var o = new api.ReachReportCompatibleFields(); - buildCounterReachReportCompatibleFields++; - if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed3164(); - o.dimensions = buildUnnamed3165(); - o.kind = "foo"; - o.metrics = buildUnnamed3166(); - o.pivotedActivityMetrics = buildUnnamed3167(); - o.reachByFrequencyMetrics = buildUnnamed3168(); - } - buildCounterReachReportCompatibleFields--; - return o; -} - -checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { - buildCounterReachReportCompatibleFields++; - if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed3164(o.dimensionFilters); - checkUnnamed3165(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3166(o.metrics); - checkUnnamed3167(o.pivotedActivityMetrics); - checkUnnamed3168(o.reachByFrequencyMetrics); - } - buildCounterReachReportCompatibleFields--; -} - -core.int buildCounterRecipient = 0; -buildRecipient() { - var o = new api.Recipient(); - buildCounterRecipient++; - if (buildCounterRecipient < 3) { - o.deliveryType = "foo"; - o.email = "foo"; - o.kind = "foo"; - } - buildCounterRecipient--; - return o; -} - -checkRecipient(api.Recipient o) { - buildCounterRecipient++; - if (buildCounterRecipient < 3) { - unittest.expect(o.deliveryType, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterRecipient--; -} - -core.int buildCounterRegion = 0; -buildRegion() { - var o = new api.Region(); - buildCounterRegion++; - if (buildCounterRegion < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.regionCode = "foo"; - } - buildCounterRegion--; - return o; -} - -checkRegion(api.Region o) { - buildCounterRegion++; - if (buildCounterRegion < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.regionCode, unittest.equals('foo')); - } - buildCounterRegion--; -} - -buildUnnamed3169() { - var o = new core.List<api.Region>(); - o.add(buildRegion()); - o.add(buildRegion()); - return o; -} - -checkUnnamed3169(core.List<api.Region> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRegion(o[0]); - checkRegion(o[1]); -} - -core.int buildCounterRegionsListResponse = 0; -buildRegionsListResponse() { - var o = new api.RegionsListResponse(); - buildCounterRegionsListResponse++; - if (buildCounterRegionsListResponse < 3) { - o.kind = "foo"; - o.regions = buildUnnamed3169(); - } - buildCounterRegionsListResponse--; - return o; -} - -checkRegionsListResponse(api.RegionsListResponse o) { - buildCounterRegionsListResponse++; - if (buildCounterRegionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3169(o.regions); - } - buildCounterRegionsListResponse--; -} - -core.int buildCounterRemarketingList = 0; -buildRemarketingList() { - var o = new api.RemarketingList(); - buildCounterRemarketingList++; - if (buildCounterRemarketingList < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.description = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lifeSpan = "foo"; - o.listPopulationRule = buildListPopulationRule(); - o.listSize = "foo"; - o.listSource = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterRemarketingList--; - return o; -} - -checkRemarketingList(api.RemarketingList o) { - buildCounterRemarketingList++; - if (buildCounterRemarketingList < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lifeSpan, unittest.equals('foo')); - checkListPopulationRule(o.listPopulationRule); - unittest.expect(o.listSize, unittest.equals('foo')); - unittest.expect(o.listSource, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterRemarketingList--; -} - -buildUnnamed3170() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3170(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3171() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3171(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterRemarketingListShare = 0; -buildRemarketingListShare() { - var o = new api.RemarketingListShare(); - buildCounterRemarketingListShare++; - if (buildCounterRemarketingListShare < 3) { - o.kind = "foo"; - o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed3170(); - o.sharedAdvertiserIds = buildUnnamed3171(); - } - buildCounterRemarketingListShare--; - return o; -} - -checkRemarketingListShare(api.RemarketingListShare o) { - buildCounterRemarketingListShare++; - if (buildCounterRemarketingListShare < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed3170(o.sharedAccountIds); - checkUnnamed3171(o.sharedAdvertiserIds); - } - buildCounterRemarketingListShare--; -} - -buildUnnamed3172() { - var o = new core.List<api.RemarketingList>(); - o.add(buildRemarketingList()); - o.add(buildRemarketingList()); - return o; -} - -checkUnnamed3172(core.List<api.RemarketingList> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRemarketingList(o[0]); - checkRemarketingList(o[1]); -} - -core.int buildCounterRemarketingListsListResponse = 0; -buildRemarketingListsListResponse() { - var o = new api.RemarketingListsListResponse(); - buildCounterRemarketingListsListResponse++; - if (buildCounterRemarketingListsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed3172(); - } - buildCounterRemarketingListsListResponse--; - return o; -} - -checkRemarketingListsListResponse(api.RemarketingListsListResponse o) { - buildCounterRemarketingListsListResponse++; - if (buildCounterRemarketingListsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3172(o.remarketingLists); - } - buildCounterRemarketingListsListResponse--; -} - -buildUnnamed3173() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3173(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3174() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3174(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3175() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3175(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportCriteria = 0; -buildReportCriteria() { - var o = new api.ReportCriteria(); - buildCounterReportCriteria++; - if (buildCounterReportCriteria < 3) { - o.activities = buildActivities(); - o.customRichMediaEvents = buildCustomRichMediaEvents(); - o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3173(); - o.dimensions = buildUnnamed3174(); - o.metricNames = buildUnnamed3175(); - } - buildCounterReportCriteria--; - return o; -} - -checkReportCriteria(api.ReportCriteria o) { - buildCounterReportCriteria++; - if (buildCounterReportCriteria < 3) { - checkActivities(o.activities); - checkCustomRichMediaEvents(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed3173(o.dimensionFilters); - checkUnnamed3174(o.dimensions); - checkUnnamed3175(o.metricNames); - } - buildCounterReportCriteria--; -} - -buildUnnamed3176() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3176(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3177() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3177(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3178() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3178(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3179() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3179(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportCrossDimensionReachCriteria = 0; -buildReportCrossDimensionReachCriteria() { - var o = new api.ReportCrossDimensionReachCriteria(); - buildCounterReportCrossDimensionReachCriteria++; - if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed3176(); - o.dateRange = buildDateRange(); - o.dimension = "foo"; - o.dimensionFilters = buildUnnamed3177(); - o.metricNames = buildUnnamed3178(); - o.overlapMetricNames = buildUnnamed3179(); - o.pivoted = true; - } - buildCounterReportCrossDimensionReachCriteria--; - return o; -} - -checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { - buildCounterReportCrossDimensionReachCriteria++; - if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed3176(o.breakdown); - checkDateRange(o.dateRange); - unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed3177(o.dimensionFilters); - checkUnnamed3178(o.metricNames); - checkUnnamed3179(o.overlapMetricNames); - unittest.expect(o.pivoted, unittest.isTrue); - } - buildCounterReportCrossDimensionReachCriteria--; -} - -buildUnnamed3180() { - var o = new core.List<api.Recipient>(); - o.add(buildRecipient()); - o.add(buildRecipient()); - return o; -} - -checkUnnamed3180(core.List<api.Recipient> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRecipient(o[0]); - checkRecipient(o[1]); -} - -core.int buildCounterReportDelivery = 0; -buildReportDelivery() { - var o = new api.ReportDelivery(); - buildCounterReportDelivery++; - if (buildCounterReportDelivery < 3) { - o.emailOwner = true; - o.emailOwnerDeliveryType = "foo"; - o.message = "foo"; - o.recipients = buildUnnamed3180(); - } - buildCounterReportDelivery--; - return o; -} - -checkReportDelivery(api.ReportDelivery o) { - buildCounterReportDelivery++; - if (buildCounterReportDelivery < 3) { - unittest.expect(o.emailOwner, unittest.isTrue); - unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); - unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed3180(o.recipients); - } - buildCounterReportDelivery--; -} - -buildUnnamed3181() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3181(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3182() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3182(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3183() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3183(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3184() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3184(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportFloodlightCriteriaReportProperties = 0; -buildReportFloodlightCriteriaReportProperties() { - var o = new api.ReportFloodlightCriteriaReportProperties(); - buildCounterReportFloodlightCriteriaReportProperties++; - if (buildCounterReportFloodlightCriteriaReportProperties < 3) { - o.includeAttributedIPConversions = true; - o.includeUnattributedCookieConversions = true; - o.includeUnattributedIPConversions = true; - } - buildCounterReportFloodlightCriteriaReportProperties--; - return o; -} - -checkReportFloodlightCriteriaReportProperties(api.ReportFloodlightCriteriaReportProperties o) { - buildCounterReportFloodlightCriteriaReportProperties++; - if (buildCounterReportFloodlightCriteriaReportProperties < 3) { - unittest.expect(o.includeAttributedIPConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedCookieConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); - } - buildCounterReportFloodlightCriteriaReportProperties--; -} - -core.int buildCounterReportFloodlightCriteria = 0; -buildReportFloodlightCriteria() { - var o = new api.ReportFloodlightCriteria(); - buildCounterReportFloodlightCriteria++; - if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed3181(); - o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3182(); - o.dimensions = buildUnnamed3183(); - o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3184(); - o.reportProperties = buildReportFloodlightCriteriaReportProperties(); - } - buildCounterReportFloodlightCriteria--; - return o; -} - -checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { - buildCounterReportFloodlightCriteria++; - if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed3181(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed3182(o.dimensionFilters); - checkUnnamed3183(o.dimensions); - checkDimensionValue(o.floodlightConfigId); - checkUnnamed3184(o.metricNames); - checkReportFloodlightCriteriaReportProperties(o.reportProperties); - } - buildCounterReportFloodlightCriteria--; -} - -buildUnnamed3185() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3185(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3186() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3186(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3187() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3187(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3188() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3188(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3189() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3189(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3190() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3190(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; -buildReportPathToConversionCriteriaReportProperties() { - var o = new api.ReportPathToConversionCriteriaReportProperties(); - buildCounterReportPathToConversionCriteriaReportProperties++; - if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { - o.clicksLookbackWindow = 42; - o.impressionsLookbackWindow = 42; - o.includeAttributedIPConversions = true; - o.includeUnattributedCookieConversions = true; - o.includeUnattributedIPConversions = true; - o.maximumClickInteractions = 42; - o.maximumImpressionInteractions = 42; - o.maximumInteractionGap = 42; - o.pivotOnInteractionPath = true; - } - buildCounterReportPathToConversionCriteriaReportProperties--; - return o; -} - -checkReportPathToConversionCriteriaReportProperties(api.ReportPathToConversionCriteriaReportProperties o) { - buildCounterReportPathToConversionCriteriaReportProperties++; - if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { - unittest.expect(o.clicksLookbackWindow, unittest.equals(42)); - unittest.expect(o.impressionsLookbackWindow, unittest.equals(42)); - unittest.expect(o.includeAttributedIPConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedCookieConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); - unittest.expect(o.maximumClickInteractions, unittest.equals(42)); - unittest.expect(o.maximumImpressionInteractions, unittest.equals(42)); - unittest.expect(o.maximumInteractionGap, unittest.equals(42)); - unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); - } - buildCounterReportPathToConversionCriteriaReportProperties--; -} - -core.int buildCounterReportPathToConversionCriteria = 0; -buildReportPathToConversionCriteria() { - var o = new api.ReportPathToConversionCriteria(); - buildCounterReportPathToConversionCriteria++; - if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed3185(); - o.conversionDimensions = buildUnnamed3186(); - o.customFloodlightVariables = buildUnnamed3187(); - o.customRichMediaEvents = buildUnnamed3188(); - o.dateRange = buildDateRange(); - o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3189(); - o.perInteractionDimensions = buildUnnamed3190(); - o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); - } - buildCounterReportPathToConversionCriteria--; - return o; -} - -checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { - buildCounterReportPathToConversionCriteria++; - if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed3185(o.activityFilters); - checkUnnamed3186(o.conversionDimensions); - checkUnnamed3187(o.customFloodlightVariables); - checkUnnamed3188(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkDimensionValue(o.floodlightConfigId); - checkUnnamed3189(o.metricNames); - checkUnnamed3190(o.perInteractionDimensions); - checkReportPathToConversionCriteriaReportProperties(o.reportProperties); - } - buildCounterReportPathToConversionCriteria--; -} - -buildUnnamed3191() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3191(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3192() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3192(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3193() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3193(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3194() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3194(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportReachCriteria = 0; -buildReportReachCriteria() { - var o = new api.ReportReachCriteria(); - buildCounterReportReachCriteria++; - if (buildCounterReportReachCriteria < 3) { - o.activities = buildActivities(); - o.customRichMediaEvents = buildCustomRichMediaEvents(); - o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3191(); - o.dimensions = buildUnnamed3192(); - o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed3193(); - o.reachByFrequencyMetricNames = buildUnnamed3194(); - } - buildCounterReportReachCriteria--; - return o; -} - -checkReportReachCriteria(api.ReportReachCriteria o) { - buildCounterReportReachCriteria++; - if (buildCounterReportReachCriteria < 3) { - checkActivities(o.activities); - checkCustomRichMediaEvents(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed3191(o.dimensionFilters); - checkUnnamed3192(o.dimensions); - unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed3193(o.metricNames); - checkUnnamed3194(o.reachByFrequencyMetricNames); - } - buildCounterReportReachCriteria--; -} - -buildUnnamed3195() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3195(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportSchedule = 0; -buildReportSchedule() { - var o = new api.ReportSchedule(); - buildCounterReportSchedule++; - if (buildCounterReportSchedule < 3) { - o.active = true; - o.every = 42; - o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed3195(); - o.runsOnDayOfMonth = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterReportSchedule--; - return o; -} - -checkReportSchedule(api.ReportSchedule o) { - buildCounterReportSchedule++; - if (buildCounterReportSchedule < 3) { - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.every, unittest.equals(42)); - unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed3195(o.repeatsOnWeekDays); - unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterReportSchedule--; -} - -core.int buildCounterReport = 0; -buildReport() { - var o = new api.Report(); - buildCounterReport++; - if (buildCounterReport < 3) { - o.accountId = "foo"; - o.criteria = buildReportCriteria(); - o.crossDimensionReachCriteria = buildReportCrossDimensionReachCriteria(); - o.delivery = buildReportDelivery(); - o.etag = "foo"; - o.fileName = "foo"; - o.floodlightCriteria = buildReportFloodlightCriteria(); - o.format = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedTime = "foo"; - o.name = "foo"; - o.ownerProfileId = "foo"; - o.pathToConversionCriteria = buildReportPathToConversionCriteria(); - o.reachCriteria = buildReportReachCriteria(); - o.schedule = buildReportSchedule(); - o.subAccountId = "foo"; - o.type = "foo"; - } - buildCounterReport--; - return o; -} - -checkReport(api.Report o) { - buildCounterReport++; - if (buildCounterReport < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkReportCriteria(o.criteria); - checkReportCrossDimensionReachCriteria(o.crossDimensionReachCriteria); - checkReportDelivery(o.delivery); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.fileName, unittest.equals('foo')); - checkReportFloodlightCriteria(o.floodlightCriteria); - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lastModifiedTime, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.ownerProfileId, unittest.equals('foo')); - checkReportPathToConversionCriteria(o.pathToConversionCriteria); - checkReportReachCriteria(o.reachCriteria); - checkReportSchedule(o.schedule); - unittest.expect(o.subAccountId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterReport--; -} - -buildUnnamed3196() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3196(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3197() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3197(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3198() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3198(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3199() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3199(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterReportCompatibleFields = 0; -buildReportCompatibleFields() { - var o = new api.ReportCompatibleFields(); - buildCounterReportCompatibleFields++; - if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed3196(); - o.dimensions = buildUnnamed3197(); - o.kind = "foo"; - o.metrics = buildUnnamed3198(); - o.pivotedActivityMetrics = buildUnnamed3199(); - } - buildCounterReportCompatibleFields--; - return o; -} - -checkReportCompatibleFields(api.ReportCompatibleFields o) { - buildCounterReportCompatibleFields++; - if (buildCounterReportCompatibleFields < 3) { - checkUnnamed3196(o.dimensionFilters); - checkUnnamed3197(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3198(o.metrics); - checkUnnamed3199(o.pivotedActivityMetrics); - } - buildCounterReportCompatibleFields--; -} - -buildUnnamed3200() { - var o = new core.List<api.Report>(); - o.add(buildReport()); - o.add(buildReport()); - return o; -} - -checkUnnamed3200(core.List<api.Report> o) { - unittest.expect(o, unittest.hasLength(2)); - checkReport(o[0]); - checkReport(o[1]); -} - -core.int buildCounterReportList = 0; -buildReportList() { - var o = new api.ReportList(); - buildCounterReportList++; - if (buildCounterReportList < 3) { - o.etag = "foo"; - o.items = buildUnnamed3200(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterReportList--; - return o; -} - -checkReportList(api.ReportList o) { - buildCounterReportList++; - if (buildCounterReportList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3200(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterReportList--; -} - -core.int buildCounterReportsConfiguration = 0; -buildReportsConfiguration() { - var o = new api.ReportsConfiguration(); - buildCounterReportsConfiguration++; - if (buildCounterReportsConfiguration < 3) { - o.exposureToConversionEnabled = true; - o.lookbackConfiguration = buildLookbackConfiguration(); - o.reportGenerationTimeZoneId = "foo"; - } - buildCounterReportsConfiguration--; - return o; -} - -checkReportsConfiguration(api.ReportsConfiguration o) { - buildCounterReportsConfiguration++; - if (buildCounterReportsConfiguration < 3) { - unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.reportGenerationTimeZoneId, unittest.equals('foo')); - } - buildCounterReportsConfiguration--; -} - -core.int buildCounterRichMediaExitOverride = 0; -buildRichMediaExitOverride() { - var o = new api.RichMediaExitOverride(); - buildCounterRichMediaExitOverride++; - if (buildCounterRichMediaExitOverride < 3) { - o.customExitUrl = "foo"; - o.exitId = "foo"; - o.useCustomExitUrl = true; - } - buildCounterRichMediaExitOverride--; - return o; -} - -checkRichMediaExitOverride(api.RichMediaExitOverride o) { - buildCounterRichMediaExitOverride++; - if (buildCounterRichMediaExitOverride < 3) { - unittest.expect(o.customExitUrl, unittest.equals('foo')); - unittest.expect(o.exitId, unittest.equals('foo')); - unittest.expect(o.useCustomExitUrl, unittest.isTrue); - } - buildCounterRichMediaExitOverride--; -} - -buildUnnamed3201() { - var o = new core.List<api.SiteContact>(); - o.add(buildSiteContact()); - o.add(buildSiteContact()); - return o; -} - -checkUnnamed3201(core.List<api.SiteContact> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSiteContact(o[0]); - checkSiteContact(o[1]); -} - -core.int buildCounterSite = 0; -buildSite() { - var o = new api.Site(); - buildCounterSite++; - if (buildCounterSite < 3) { - o.accountId = "foo"; - o.approved = true; - o.directorySiteId = "foo"; - o.directorySiteIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.keyName = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.siteContacts = buildUnnamed3201(); - o.siteSettings = buildSiteSettings(); - o.subaccountId = "foo"; - } - buildCounterSite--; - return o; -} - -checkSite(api.Site o) { - buildCounterSite++; - if (buildCounterSite < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.approved, unittest.isTrue); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkDimensionValue(o.directorySiteIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.keyName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3201(o.siteContacts); - checkSiteSettings(o.siteSettings); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterSite--; -} - -core.int buildCounterSiteContact = 0; -buildSiteContact() { - var o = new api.SiteContact(); - buildCounterSiteContact++; - if (buildCounterSiteContact < 3) { - o.address = "foo"; - o.contactType = "foo"; - o.email = "foo"; - o.firstName = "foo"; - o.id = "foo"; - o.lastName = "foo"; - o.phone = "foo"; - o.title = "foo"; - } - buildCounterSiteContact--; - return o; -} - -checkSiteContact(api.SiteContact o) { - buildCounterSiteContact++; - if (buildCounterSiteContact < 3) { - unittest.expect(o.address, unittest.equals('foo')); - unittest.expect(o.contactType, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.firstName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.lastName, unittest.equals('foo')); - unittest.expect(o.phone, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterSiteContact--; -} - -core.int buildCounterSiteSettings = 0; -buildSiteSettings() { - var o = new api.SiteSettings(); - buildCounterSiteSettings++; - if (buildCounterSiteSettings < 3) { - o.activeViewOptOut = true; - o.creativeSettings = buildCreativeSettings(); - o.disableBrandSafeAds = true; - o.disableNewCookie = true; - o.lookbackConfiguration = buildLookbackConfiguration(); - o.tagSetting = buildTagSetting(); - } - buildCounterSiteSettings--; - return o; -} - -checkSiteSettings(api.SiteSettings o) { - buildCounterSiteSettings++; - if (buildCounterSiteSettings < 3) { - unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkCreativeSettings(o.creativeSettings); - unittest.expect(o.disableBrandSafeAds, unittest.isTrue); - unittest.expect(o.disableNewCookie, unittest.isTrue); - checkLookbackConfiguration(o.lookbackConfiguration); - checkTagSetting(o.tagSetting); - } - buildCounterSiteSettings--; -} - -buildUnnamed3202() { - var o = new core.List<api.Site>(); - o.add(buildSite()); - o.add(buildSite()); - return o; -} - -checkUnnamed3202(core.List<api.Site> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSite(o[0]); - checkSite(o[1]); -} - -core.int buildCounterSitesListResponse = 0; -buildSitesListResponse() { - var o = new api.SitesListResponse(); - buildCounterSitesListResponse++; - if (buildCounterSitesListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.sites = buildUnnamed3202(); - } - buildCounterSitesListResponse--; - return o; -} - -checkSitesListResponse(api.SitesListResponse o) { - buildCounterSitesListResponse++; - if (buildCounterSitesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3202(o.sites); - } - buildCounterSitesListResponse--; -} - -core.int buildCounterSize = 0; -buildSize() { - var o = new api.Size(); - buildCounterSize++; - if (buildCounterSize < 3) { - o.height = 42; - o.iab = true; - o.id = "foo"; - o.kind = "foo"; - o.width = 42; - } - buildCounterSize--; - return o; -} - -checkSize(api.Size o) { - buildCounterSize++; - if (buildCounterSize < 3) { - unittest.expect(o.height, unittest.equals(42)); - unittest.expect(o.iab, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.width, unittest.equals(42)); - } - buildCounterSize--; -} - -buildUnnamed3203() { - var o = new core.List<api.Size>(); - o.add(buildSize()); - o.add(buildSize()); - return o; -} - -checkUnnamed3203(core.List<api.Size> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSize(o[0]); - checkSize(o[1]); -} - -core.int buildCounterSizesListResponse = 0; -buildSizesListResponse() { - var o = new api.SizesListResponse(); - buildCounterSizesListResponse++; - if (buildCounterSizesListResponse < 3) { - o.kind = "foo"; - o.sizes = buildUnnamed3203(); - } - buildCounterSizesListResponse--; - return o; -} - -checkSizesListResponse(api.SizesListResponse o) { - buildCounterSizesListResponse++; - if (buildCounterSizesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3203(o.sizes); - } - buildCounterSizesListResponse--; -} - -core.int buildCounterSortedDimension = 0; -buildSortedDimension() { - var o = new api.SortedDimension(); - buildCounterSortedDimension++; - if (buildCounterSortedDimension < 3) { - o.kind = "foo"; - o.name = "foo"; - o.sortOrder = "foo"; - } - buildCounterSortedDimension--; - return o; -} - -checkSortedDimension(api.SortedDimension o) { - buildCounterSortedDimension++; - if (buildCounterSortedDimension < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.sortOrder, unittest.equals('foo')); - } - buildCounterSortedDimension--; -} - -buildUnnamed3204() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3204(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterSubaccount = 0; -buildSubaccount() { - var o = new api.Subaccount(); - buildCounterSubaccount++; - if (buildCounterSubaccount < 3) { - o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed3204(); - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterSubaccount--; - return o; -} - -checkSubaccount(api.Subaccount o) { - buildCounterSubaccount++; - if (buildCounterSubaccount < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3204(o.availablePermissionIds); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterSubaccount--; -} - -buildUnnamed3205() { - var o = new core.List<api.Subaccount>(); - o.add(buildSubaccount()); - o.add(buildSubaccount()); - return o; -} - -checkUnnamed3205(core.List<api.Subaccount> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSubaccount(o[0]); - checkSubaccount(o[1]); -} - -core.int buildCounterSubaccountsListResponse = 0; -buildSubaccountsListResponse() { - var o = new api.SubaccountsListResponse(); - buildCounterSubaccountsListResponse++; - if (buildCounterSubaccountsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed3205(); - } - buildCounterSubaccountsListResponse--; - return o; -} - -checkSubaccountsListResponse(api.SubaccountsListResponse o) { - buildCounterSubaccountsListResponse++; - if (buildCounterSubaccountsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3205(o.subaccounts); - } - buildCounterSubaccountsListResponse--; -} - -core.int buildCounterTagData = 0; -buildTagData() { - var o = new api.TagData(); - buildCounterTagData++; - if (buildCounterTagData < 3) { - o.adId = "foo"; - o.clickTag = "foo"; - o.creativeId = "foo"; - o.format = "foo"; - o.impressionTag = "foo"; - } - buildCounterTagData--; - return o; -} - -checkTagData(api.TagData o) { - buildCounterTagData++; - if (buildCounterTagData < 3) { - unittest.expect(o.adId, unittest.equals('foo')); - unittest.expect(o.clickTag, unittest.equals('foo')); - unittest.expect(o.creativeId, unittest.equals('foo')); - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.impressionTag, unittest.equals('foo')); - } - buildCounterTagData--; -} - -core.int buildCounterTagSetting = 0; -buildTagSetting() { - var o = new api.TagSetting(); - buildCounterTagSetting++; - if (buildCounterTagSetting < 3) { - o.additionalKeyValues = "foo"; - o.includeClickThroughUrls = true; - o.includeClickTracking = true; - o.keywordOption = "foo"; - } - buildCounterTagSetting--; - return o; -} - -checkTagSetting(api.TagSetting o) { - buildCounterTagSetting++; - if (buildCounterTagSetting < 3) { - unittest.expect(o.additionalKeyValues, unittest.equals('foo')); - unittest.expect(o.includeClickThroughUrls, unittest.isTrue); - unittest.expect(o.includeClickTracking, unittest.isTrue); - unittest.expect(o.keywordOption, unittest.equals('foo')); - } - buildCounterTagSetting--; -} - -core.int buildCounterTagSettings = 0; -buildTagSettings() { - var o = new api.TagSettings(); - buildCounterTagSettings++; - if (buildCounterTagSettings < 3) { - o.dynamicTagEnabled = true; - o.imageTagEnabled = true; - } - buildCounterTagSettings--; - return o; -} - -checkTagSettings(api.TagSettings o) { - buildCounterTagSettings++; - if (buildCounterTagSettings < 3) { - unittest.expect(o.dynamicTagEnabled, unittest.isTrue); - unittest.expect(o.imageTagEnabled, unittest.isTrue); - } - buildCounterTagSettings--; -} - -core.int buildCounterTargetWindow = 0; -buildTargetWindow() { - var o = new api.TargetWindow(); - buildCounterTargetWindow++; - if (buildCounterTargetWindow < 3) { - o.customHtml = "foo"; - o.targetWindowOption = "foo"; - } - buildCounterTargetWindow--; - return o; -} - -checkTargetWindow(api.TargetWindow o) { - buildCounterTargetWindow++; - if (buildCounterTargetWindow < 3) { - unittest.expect(o.customHtml, unittest.equals('foo')); - unittest.expect(o.targetWindowOption, unittest.equals('foo')); - } - buildCounterTargetWindow--; -} - -core.int buildCounterTargetableRemarketingList = 0; -buildTargetableRemarketingList() { - var o = new api.TargetableRemarketingList(); - buildCounterTargetableRemarketingList++; - if (buildCounterTargetableRemarketingList < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.description = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lifeSpan = "foo"; - o.listSize = "foo"; - o.listSource = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterTargetableRemarketingList--; - return o; -} - -checkTargetableRemarketingList(api.TargetableRemarketingList o) { - buildCounterTargetableRemarketingList++; - if (buildCounterTargetableRemarketingList < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lifeSpan, unittest.equals('foo')); - unittest.expect(o.listSize, unittest.equals('foo')); - unittest.expect(o.listSource, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterTargetableRemarketingList--; -} - -buildUnnamed3206() { - var o = new core.List<api.TargetableRemarketingList>(); - o.add(buildTargetableRemarketingList()); - o.add(buildTargetableRemarketingList()); - return o; -} - -checkUnnamed3206(core.List<api.TargetableRemarketingList> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTargetableRemarketingList(o[0]); - checkTargetableRemarketingList(o[1]); -} - -core.int buildCounterTargetableRemarketingListsListResponse = 0; -buildTargetableRemarketingListsListResponse() { - var o = new api.TargetableRemarketingListsListResponse(); - buildCounterTargetableRemarketingListsListResponse++; - if (buildCounterTargetableRemarketingListsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed3206(); - } - buildCounterTargetableRemarketingListsListResponse--; - return o; -} - -checkTargetableRemarketingListsListResponse(api.TargetableRemarketingListsListResponse o) { - buildCounterTargetableRemarketingListsListResponse++; - if (buildCounterTargetableRemarketingListsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3206(o.targetableRemarketingLists); - } - buildCounterTargetableRemarketingListsListResponse--; -} - -buildUnnamed3207() { - var o = new core.List<api.Browser>(); - o.add(buildBrowser()); - o.add(buildBrowser()); - return o; -} - -checkUnnamed3207(core.List<api.Browser> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBrowser(o[0]); - checkBrowser(o[1]); -} - -buildUnnamed3208() { - var o = new core.List<api.ConnectionType>(); - o.add(buildConnectionType()); - o.add(buildConnectionType()); - return o; -} - -checkUnnamed3208(core.List<api.ConnectionType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkConnectionType(o[0]); - checkConnectionType(o[1]); -} - -buildUnnamed3209() { - var o = new core.List<api.MobileCarrier>(); - o.add(buildMobileCarrier()); - o.add(buildMobileCarrier()); - return o; -} - -checkUnnamed3209(core.List<api.MobileCarrier> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMobileCarrier(o[0]); - checkMobileCarrier(o[1]); -} - -buildUnnamed3210() { - var o = new core.List<api.OperatingSystemVersion>(); - o.add(buildOperatingSystemVersion()); - o.add(buildOperatingSystemVersion()); - return o; -} - -checkUnnamed3210(core.List<api.OperatingSystemVersion> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystemVersion(o[0]); - checkOperatingSystemVersion(o[1]); -} - -buildUnnamed3211() { - var o = new core.List<api.OperatingSystem>(); - o.add(buildOperatingSystem()); - o.add(buildOperatingSystem()); - return o; -} - -checkUnnamed3211(core.List<api.OperatingSystem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystem(o[0]); - checkOperatingSystem(o[1]); -} - -buildUnnamed3212() { - var o = new core.List<api.PlatformType>(); - o.add(buildPlatformType()); - o.add(buildPlatformType()); - return o; -} - -checkUnnamed3212(core.List<api.PlatformType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlatformType(o[0]); - checkPlatformType(o[1]); -} - -core.int buildCounterTechnologyTargeting = 0; -buildTechnologyTargeting() { - var o = new api.TechnologyTargeting(); - buildCounterTechnologyTargeting++; - if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed3207(); - o.connectionTypes = buildUnnamed3208(); - o.mobileCarriers = buildUnnamed3209(); - o.operatingSystemVersions = buildUnnamed3210(); - o.operatingSystems = buildUnnamed3211(); - o.platformTypes = buildUnnamed3212(); - } - buildCounterTechnologyTargeting--; - return o; -} - -checkTechnologyTargeting(api.TechnologyTargeting o) { - buildCounterTechnologyTargeting++; - if (buildCounterTechnologyTargeting < 3) { - checkUnnamed3207(o.browsers); - checkUnnamed3208(o.connectionTypes); - checkUnnamed3209(o.mobileCarriers); - checkUnnamed3210(o.operatingSystemVersions); - checkUnnamed3211(o.operatingSystems); - checkUnnamed3212(o.platformTypes); - } - buildCounterTechnologyTargeting--; -} - -core.int buildCounterThirdPartyAuthenticationToken = 0; -buildThirdPartyAuthenticationToken() { - var o = new api.ThirdPartyAuthenticationToken(); - buildCounterThirdPartyAuthenticationToken++; - if (buildCounterThirdPartyAuthenticationToken < 3) { - o.name = "foo"; - o.value = "foo"; - } - buildCounterThirdPartyAuthenticationToken--; - return o; -} - -checkThirdPartyAuthenticationToken(api.ThirdPartyAuthenticationToken o) { - buildCounterThirdPartyAuthenticationToken++; - if (buildCounterThirdPartyAuthenticationToken < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterThirdPartyAuthenticationToken--; -} - -core.int buildCounterThirdPartyTrackingUrl = 0; -buildThirdPartyTrackingUrl() { - var o = new api.ThirdPartyTrackingUrl(); - buildCounterThirdPartyTrackingUrl++; - if (buildCounterThirdPartyTrackingUrl < 3) { - o.thirdPartyUrlType = "foo"; - o.url = "foo"; - } - buildCounterThirdPartyTrackingUrl--; - return o; -} - -checkThirdPartyTrackingUrl(api.ThirdPartyTrackingUrl o) { - buildCounterThirdPartyTrackingUrl++; - if (buildCounterThirdPartyTrackingUrl < 3) { - unittest.expect(o.thirdPartyUrlType, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterThirdPartyTrackingUrl--; -} - -core.int buildCounterUserDefinedVariableConfiguration = 0; -buildUserDefinedVariableConfiguration() { - var o = new api.UserDefinedVariableConfiguration(); - buildCounterUserDefinedVariableConfiguration++; - if (buildCounterUserDefinedVariableConfiguration < 3) { - o.dataType = "foo"; - o.reportName = "foo"; - o.variableType = "foo"; - } - buildCounterUserDefinedVariableConfiguration--; - return o; -} - -checkUserDefinedVariableConfiguration(api.UserDefinedVariableConfiguration o) { - buildCounterUserDefinedVariableConfiguration++; - if (buildCounterUserDefinedVariableConfiguration < 3) { - unittest.expect(o.dataType, unittest.equals('foo')); - unittest.expect(o.reportName, unittest.equals('foo')); - unittest.expect(o.variableType, unittest.equals('foo')); - } - buildCounterUserDefinedVariableConfiguration--; -} - -core.int buildCounterUserProfile = 0; -buildUserProfile() { - var o = new api.UserProfile(); - buildCounterUserProfile++; - if (buildCounterUserProfile < 3) { - o.accountId = "foo"; - o.accountName = "foo"; - o.etag = "foo"; - o.kind = "foo"; - o.profileId = "foo"; - o.subAccountId = "foo"; - o.subAccountName = "foo"; - o.userName = "foo"; - } - buildCounterUserProfile--; - return o; -} - -checkUserProfile(api.UserProfile o) { - buildCounterUserProfile++; - if (buildCounterUserProfile < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.accountName, unittest.equals('foo')); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.profileId, unittest.equals('foo')); - unittest.expect(o.subAccountId, unittest.equals('foo')); - unittest.expect(o.subAccountName, unittest.equals('foo')); - unittest.expect(o.userName, unittest.equals('foo')); - } - buildCounterUserProfile--; -} - -buildUnnamed3213() { - var o = new core.List<api.UserProfile>(); - o.add(buildUserProfile()); - o.add(buildUserProfile()); - return o; -} - -checkUnnamed3213(core.List<api.UserProfile> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserProfile(o[0]); - checkUserProfile(o[1]); -} - -core.int buildCounterUserProfileList = 0; -buildUserProfileList() { - var o = new api.UserProfileList(); - buildCounterUserProfileList++; - if (buildCounterUserProfileList < 3) { - o.etag = "foo"; - o.items = buildUnnamed3213(); - o.kind = "foo"; - } - buildCounterUserProfileList--; - return o; -} - -checkUserProfileList(api.UserProfileList o) { - buildCounterUserProfileList++; - if (buildCounterUserProfileList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3213(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterUserProfileList--; -} - -buildUnnamed3214() { - var o = new core.List<api.UserRolePermission>(); - o.add(buildUserRolePermission()); - o.add(buildUserRolePermission()); - return o; -} - -checkUnnamed3214(core.List<api.UserRolePermission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRolePermission(o[0]); - checkUserRolePermission(o[1]); -} - -core.int buildCounterUserRole = 0; -buildUserRole() { - var o = new api.UserRole(); - buildCounterUserRole++; - if (buildCounterUserRole < 3) { - o.accountId = "foo"; - o.defaultUserRole = true; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed3214(); - o.subaccountId = "foo"; - } - buildCounterUserRole--; - return o; -} - -checkUserRole(api.UserRole o) { - buildCounterUserRole++; - if (buildCounterUserRole < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.defaultUserRole, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed3214(o.permissions); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterUserRole--; -} - -core.int buildCounterUserRolePermission = 0; -buildUserRolePermission() { - var o = new api.UserRolePermission(); - buildCounterUserRolePermission++; - if (buildCounterUserRolePermission < 3) { - o.availability = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.permissionGroupId = "foo"; - } - buildCounterUserRolePermission--; - return o; -} - -checkUserRolePermission(api.UserRolePermission o) { - buildCounterUserRolePermission++; - if (buildCounterUserRolePermission < 3) { - unittest.expect(o.availability, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.permissionGroupId, unittest.equals('foo')); - } - buildCounterUserRolePermission--; -} - -core.int buildCounterUserRolePermissionGroup = 0; -buildUserRolePermissionGroup() { - var o = new api.UserRolePermissionGroup(); - buildCounterUserRolePermissionGroup++; - if (buildCounterUserRolePermissionGroup < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterUserRolePermissionGroup--; - return o; -} - -checkUserRolePermissionGroup(api.UserRolePermissionGroup o) { - buildCounterUserRolePermissionGroup++; - if (buildCounterUserRolePermissionGroup < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterUserRolePermissionGroup--; -} - -buildUnnamed3215() { - var o = new core.List<api.UserRolePermissionGroup>(); - o.add(buildUserRolePermissionGroup()); - o.add(buildUserRolePermissionGroup()); - return o; -} - -checkUnnamed3215(core.List<api.UserRolePermissionGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRolePermissionGroup(o[0]); - checkUserRolePermissionGroup(o[1]); -} - -core.int buildCounterUserRolePermissionGroupsListResponse = 0; -buildUserRolePermissionGroupsListResponse() { - var o = new api.UserRolePermissionGroupsListResponse(); - buildCounterUserRolePermissionGroupsListResponse++; - if (buildCounterUserRolePermissionGroupsListResponse < 3) { - o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed3215(); - } - buildCounterUserRolePermissionGroupsListResponse--; - return o; -} - -checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListResponse o) { - buildCounterUserRolePermissionGroupsListResponse++; - if (buildCounterUserRolePermissionGroupsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3215(o.userRolePermissionGroups); - } - buildCounterUserRolePermissionGroupsListResponse--; -} - -buildUnnamed3216() { - var o = new core.List<api.UserRolePermission>(); - o.add(buildUserRolePermission()); - o.add(buildUserRolePermission()); - return o; -} - -checkUnnamed3216(core.List<api.UserRolePermission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRolePermission(o[0]); - checkUserRolePermission(o[1]); -} - -core.int buildCounterUserRolePermissionsListResponse = 0; -buildUserRolePermissionsListResponse() { - var o = new api.UserRolePermissionsListResponse(); - buildCounterUserRolePermissionsListResponse++; - if (buildCounterUserRolePermissionsListResponse < 3) { - o.kind = "foo"; - o.userRolePermissions = buildUnnamed3216(); - } - buildCounterUserRolePermissionsListResponse--; - return o; -} - -checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { - buildCounterUserRolePermissionsListResponse++; - if (buildCounterUserRolePermissionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3216(o.userRolePermissions); - } - buildCounterUserRolePermissionsListResponse--; -} - -buildUnnamed3217() { - var o = new core.List<api.UserRole>(); - o.add(buildUserRole()); - o.add(buildUserRole()); - return o; -} - -checkUnnamed3217(core.List<api.UserRole> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRole(o[0]); - checkUserRole(o[1]); -} - -core.int buildCounterUserRolesListResponse = 0; -buildUserRolesListResponse() { - var o = new api.UserRolesListResponse(); - buildCounterUserRolesListResponse++; - if (buildCounterUserRolesListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.userRoles = buildUnnamed3217(); - } - buildCounterUserRolesListResponse--; - return o; -} - -checkUserRolesListResponse(api.UserRolesListResponse o) { - buildCounterUserRolesListResponse++; - if (buildCounterUserRolesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3217(o.userRoles); - } - buildCounterUserRolesListResponse--; -} - -buildUnnamed3218() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3218(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3219() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3219(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3220() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3220(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3221() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3221(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3222() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3222(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3223() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3223(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3224() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3224(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3225() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3225(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3226() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3226(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3227() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3227(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3228() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3228(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3229() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3229(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3230() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3230(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3231() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3231(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3232() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3232(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3233() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3233(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3234() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3234(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3235() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3235(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3236() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3236(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3237() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3237(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3238() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3238(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3239() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3239(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3240() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3240(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3241() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3241(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3242() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3242(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3243() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3243(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3244() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3244(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3245() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3245(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3246() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3246(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3247() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3247(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3248() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3248(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3249() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3249(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3250() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3250(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3251() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3251(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3252() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3252(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3253() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3253(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3254() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3254(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3255() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3255(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3256() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3256(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3257() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3257(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3258() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3258(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3259() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3259(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3260() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3260(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3261() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3261(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3262() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3262(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3263() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3263(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3264() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3264(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3265() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3265(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3266() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3266(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3267() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3267(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3268() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3268(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3269() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3269(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3270() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3270(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3271() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3271(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3272() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3272(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3273() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3273(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3274() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3274(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3275() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3275(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3276() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3276(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3277() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3277(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3278() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3278(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3279() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3279(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3280() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3280(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3281() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3281(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3282() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3282(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3283() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3283(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3284() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3284(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3285() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3285(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3286() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3286(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3287() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3287(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3288() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3288(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3289() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3289(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3290() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3290(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3291() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3291(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3292() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3292(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3293() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3293(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3294() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3294(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3295() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3295(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3296() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3296(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3297() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3297(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3298() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3298(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3299() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3299(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3300() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3300(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3301() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3301(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3302() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3302(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3303() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3303(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - - -main() { - unittest.group("obj-schema-Account", () { - unittest.test("to-json--from-json", () { - var o = buildAccount(); - var od = new api.Account.fromJson(o.toJson()); - checkAccount(od); - }); - }); - - - unittest.group("obj-schema-AccountActiveAdSummary", () { - unittest.test("to-json--from-json", () { - var o = buildAccountActiveAdSummary(); - var od = new api.AccountActiveAdSummary.fromJson(o.toJson()); - checkAccountActiveAdSummary(od); - }); - }); - - - unittest.group("obj-schema-AccountPermission", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermission(); - var od = new api.AccountPermission.fromJson(o.toJson()); - checkAccountPermission(od); - }); - }); - - - unittest.group("obj-schema-AccountPermissionGroup", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermissionGroup(); - var od = new api.AccountPermissionGroup.fromJson(o.toJson()); - checkAccountPermissionGroup(od); - }); - }); - - - unittest.group("obj-schema-AccountPermissionGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermissionGroupsListResponse(); - var od = new api.AccountPermissionGroupsListResponse.fromJson(o.toJson()); - checkAccountPermissionGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-AccountPermissionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermissionsListResponse(); - var od = new api.AccountPermissionsListResponse.fromJson(o.toJson()); - checkAccountPermissionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-AccountUserProfile", () { - unittest.test("to-json--from-json", () { - var o = buildAccountUserProfile(); - var od = new api.AccountUserProfile.fromJson(o.toJson()); - checkAccountUserProfile(od); - }); - }); - - - unittest.group("obj-schema-AccountUserProfilesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountUserProfilesListResponse(); - var od = new api.AccountUserProfilesListResponse.fromJson(o.toJson()); - checkAccountUserProfilesListResponse(od); - }); - }); - - - unittest.group("obj-schema-AccountsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountsListResponse(); - var od = new api.AccountsListResponse.fromJson(o.toJson()); - checkAccountsListResponse(od); - }); - }); - - - unittest.group("obj-schema-Activities", () { - unittest.test("to-json--from-json", () { - var o = buildActivities(); - var od = new api.Activities.fromJson(o.toJson()); - checkActivities(od); - }); - }); - - - unittest.group("obj-schema-Ad", () { - unittest.test("to-json--from-json", () { - var o = buildAd(); - var od = new api.Ad.fromJson(o.toJson()); - checkAd(od); - }); - }); - - - unittest.group("obj-schema-AdSlot", () { - unittest.test("to-json--from-json", () { - var o = buildAdSlot(); - var od = new api.AdSlot.fromJson(o.toJson()); - checkAdSlot(od); - }); - }); - - - unittest.group("obj-schema-AdsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAdsListResponse(); - var od = new api.AdsListResponse.fromJson(o.toJson()); - checkAdsListResponse(od); - }); - }); - - - unittest.group("obj-schema-Advertiser", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertiser(); - var od = new api.Advertiser.fromJson(o.toJson()); - checkAdvertiser(od); - }); - }); - - - unittest.group("obj-schema-AdvertiserGroup", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertiserGroup(); - var od = new api.AdvertiserGroup.fromJson(o.toJson()); - checkAdvertiserGroup(od); - }); - }); - - - unittest.group("obj-schema-AdvertiserGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertiserGroupsListResponse(); - var od = new api.AdvertiserGroupsListResponse.fromJson(o.toJson()); - checkAdvertiserGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-AdvertisersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertisersListResponse(); - var od = new api.AdvertisersListResponse.fromJson(o.toJson()); - checkAdvertisersListResponse(od); - }); - }); - - - unittest.group("obj-schema-AudienceSegment", () { - unittest.test("to-json--from-json", () { - var o = buildAudienceSegment(); - var od = new api.AudienceSegment.fromJson(o.toJson()); - checkAudienceSegment(od); - }); - }); - - - unittest.group("obj-schema-AudienceSegmentGroup", () { - unittest.test("to-json--from-json", () { - var o = buildAudienceSegmentGroup(); - var od = new api.AudienceSegmentGroup.fromJson(o.toJson()); - checkAudienceSegmentGroup(od); - }); - }); - - - unittest.group("obj-schema-Browser", () { - unittest.test("to-json--from-json", () { - var o = buildBrowser(); - var od = new api.Browser.fromJson(o.toJson()); - checkBrowser(od); - }); - }); - - - unittest.group("obj-schema-BrowsersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildBrowsersListResponse(); - var od = new api.BrowsersListResponse.fromJson(o.toJson()); - checkBrowsersListResponse(od); - }); - }); - - - unittest.group("obj-schema-Campaign", () { - unittest.test("to-json--from-json", () { - var o = buildCampaign(); - var od = new api.Campaign.fromJson(o.toJson()); - checkCampaign(od); - }); - }); - - - unittest.group("obj-schema-CampaignCreativeAssociation", () { - unittest.test("to-json--from-json", () { - var o = buildCampaignCreativeAssociation(); - var od = new api.CampaignCreativeAssociation.fromJson(o.toJson()); - checkCampaignCreativeAssociation(od); - }); - }); - - - unittest.group("obj-schema-CampaignCreativeAssociationsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCampaignCreativeAssociationsListResponse(); - var od = new api.CampaignCreativeAssociationsListResponse.fromJson(o.toJson()); - checkCampaignCreativeAssociationsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CampaignsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCampaignsListResponse(); - var od = new api.CampaignsListResponse.fromJson(o.toJson()); - checkCampaignsListResponse(od); - }); - }); - - - unittest.group("obj-schema-ChangeLog", () { - unittest.test("to-json--from-json", () { - var o = buildChangeLog(); - var od = new api.ChangeLog.fromJson(o.toJson()); - checkChangeLog(od); - }); - }); - - - unittest.group("obj-schema-ChangeLogsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildChangeLogsListResponse(); - var od = new api.ChangeLogsListResponse.fromJson(o.toJson()); - checkChangeLogsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CitiesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCitiesListResponse(); - var od = new api.CitiesListResponse.fromJson(o.toJson()); - checkCitiesListResponse(od); - }); - }); - - - unittest.group("obj-schema-City", () { - unittest.test("to-json--from-json", () { - var o = buildCity(); - var od = new api.City.fromJson(o.toJson()); - checkCity(od); - }); - }); - - - unittest.group("obj-schema-ClickTag", () { - unittest.test("to-json--from-json", () { - var o = buildClickTag(); - var od = new api.ClickTag.fromJson(o.toJson()); - checkClickTag(od); - }); - }); - - - unittest.group("obj-schema-ClickThroughUrl", () { - unittest.test("to-json--from-json", () { - var o = buildClickThroughUrl(); - var od = new api.ClickThroughUrl.fromJson(o.toJson()); - checkClickThroughUrl(od); - }); - }); - - - unittest.group("obj-schema-ClickThroughUrlSuffixProperties", () { - unittest.test("to-json--from-json", () { - var o = buildClickThroughUrlSuffixProperties(); - var od = new api.ClickThroughUrlSuffixProperties.fromJson(o.toJson()); - checkClickThroughUrlSuffixProperties(od); - }); - }); - - - unittest.group("obj-schema-CompanionClickThroughOverride", () { - unittest.test("to-json--from-json", () { - var o = buildCompanionClickThroughOverride(); - var od = new api.CompanionClickThroughOverride.fromJson(o.toJson()); - checkCompanionClickThroughOverride(od); - }); - }); - - - unittest.group("obj-schema-CompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildCompatibleFields(); - var od = new api.CompatibleFields.fromJson(o.toJson()); - checkCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-ConnectionType", () { - unittest.test("to-json--from-json", () { - var o = buildConnectionType(); - var od = new api.ConnectionType.fromJson(o.toJson()); - checkConnectionType(od); - }); - }); - - - unittest.group("obj-schema-ConnectionTypesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildConnectionTypesListResponse(); - var od = new api.ConnectionTypesListResponse.fromJson(o.toJson()); - checkConnectionTypesListResponse(od); - }); - }); - - - unittest.group("obj-schema-ContentCategoriesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildContentCategoriesListResponse(); - var od = new api.ContentCategoriesListResponse.fromJson(o.toJson()); - checkContentCategoriesListResponse(od); - }); - }); - - - unittest.group("obj-schema-ContentCategory", () { - unittest.test("to-json--from-json", () { - var o = buildContentCategory(); - var od = new api.ContentCategory.fromJson(o.toJson()); - checkContentCategory(od); - }); - }); - - - unittest.group("obj-schema-CountriesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCountriesListResponse(); - var od = new api.CountriesListResponse.fromJson(o.toJson()); - checkCountriesListResponse(od); - }); - }); - - - unittest.group("obj-schema-Country", () { - unittest.test("to-json--from-json", () { - var o = buildCountry(); - var od = new api.Country.fromJson(o.toJson()); - checkCountry(od); - }); - }); - - - unittest.group("obj-schema-Creative", () { - unittest.test("to-json--from-json", () { - var o = buildCreative(); - var od = new api.Creative.fromJson(o.toJson()); - checkCreative(od); - }); - }); - - - unittest.group("obj-schema-CreativeAsset", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAsset(); - var od = new api.CreativeAsset.fromJson(o.toJson()); - checkCreativeAsset(od); - }); - }); - - - unittest.group("obj-schema-CreativeAssetId", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAssetId(); - var od = new api.CreativeAssetId.fromJson(o.toJson()); - checkCreativeAssetId(od); - }); - }); - - - unittest.group("obj-schema-CreativeAssetMetadata", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAssetMetadata(); - var od = new api.CreativeAssetMetadata.fromJson(o.toJson()); - checkCreativeAssetMetadata(od); - }); - }); - - - unittest.group("obj-schema-CreativeAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAssignment(); - var od = new api.CreativeAssignment.fromJson(o.toJson()); - checkCreativeAssignment(od); - }); - }); - - - unittest.group("obj-schema-CreativeCustomEvent", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeCustomEvent(); - var od = new api.CreativeCustomEvent.fromJson(o.toJson()); - checkCreativeCustomEvent(od); - }); - }); - - - unittest.group("obj-schema-CreativeField", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeField(); - var od = new api.CreativeField.fromJson(o.toJson()); - checkCreativeField(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldAssignment(); - var od = new api.CreativeFieldAssignment.fromJson(o.toJson()); - checkCreativeFieldAssignment(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldValue", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldValue(); - var od = new api.CreativeFieldValue.fromJson(o.toJson()); - checkCreativeFieldValue(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldValuesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldValuesListResponse(); - var od = new api.CreativeFieldValuesListResponse.fromJson(o.toJson()); - checkCreativeFieldValuesListResponse(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldsListResponse(); - var od = new api.CreativeFieldsListResponse.fromJson(o.toJson()); - checkCreativeFieldsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CreativeGroup", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeGroup(); - var od = new api.CreativeGroup.fromJson(o.toJson()); - checkCreativeGroup(od); - }); - }); - - - unittest.group("obj-schema-CreativeGroupAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeGroupAssignment(); - var od = new api.CreativeGroupAssignment.fromJson(o.toJson()); - checkCreativeGroupAssignment(od); - }); - }); - - - unittest.group("obj-schema-CreativeGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeGroupsListResponse(); - var od = new api.CreativeGroupsListResponse.fromJson(o.toJson()); - checkCreativeGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CreativeOptimizationConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeOptimizationConfiguration(); - var od = new api.CreativeOptimizationConfiguration.fromJson(o.toJson()); - checkCreativeOptimizationConfiguration(od); - }); - }); - - - unittest.group("obj-schema-CreativeRotation", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeRotation(); - var od = new api.CreativeRotation.fromJson(o.toJson()); - checkCreativeRotation(od); - }); - }); - - - unittest.group("obj-schema-CreativeSettings", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeSettings(); - var od = new api.CreativeSettings.fromJson(o.toJson()); - checkCreativeSettings(od); - }); - }); - - - unittest.group("obj-schema-CreativesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativesListResponse(); - var od = new api.CreativesListResponse.fromJson(o.toJson()); - checkCreativesListResponse(od); - }); - }); - - - unittest.group("obj-schema-CrossDimensionReachReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildCrossDimensionReachReportCompatibleFields(); - var od = new api.CrossDimensionReachReportCompatibleFields.fromJson(o.toJson()); - checkCrossDimensionReachReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-CustomRichMediaEvents", () { - unittest.test("to-json--from-json", () { - var o = buildCustomRichMediaEvents(); - var od = new api.CustomRichMediaEvents.fromJson(o.toJson()); - checkCustomRichMediaEvents(od); - }); - }); - - - unittest.group("obj-schema-DateRange", () { - unittest.test("to-json--from-json", () { - var o = buildDateRange(); - var od = new api.DateRange.fromJson(o.toJson()); - checkDateRange(od); - }); - }); - - - unittest.group("obj-schema-DayPartTargeting", () { - unittest.test("to-json--from-json", () { - var o = buildDayPartTargeting(); - var od = new api.DayPartTargeting.fromJson(o.toJson()); - checkDayPartTargeting(od); - }); - }); - - - unittest.group("obj-schema-DefaultClickThroughEventTagProperties", () { - unittest.test("to-json--from-json", () { - var o = buildDefaultClickThroughEventTagProperties(); - var od = new api.DefaultClickThroughEventTagProperties.fromJson(o.toJson()); - checkDefaultClickThroughEventTagProperties(od); - }); - }); - - - unittest.group("obj-schema-DeliverySchedule", () { - unittest.test("to-json--from-json", () { - var o = buildDeliverySchedule(); - var od = new api.DeliverySchedule.fromJson(o.toJson()); - checkDeliverySchedule(od); - }); - }); - - - unittest.group("obj-schema-DfpSettings", () { - unittest.test("to-json--from-json", () { - var o = buildDfpSettings(); - var od = new api.DfpSettings.fromJson(o.toJson()); - checkDfpSettings(od); - }); - }); - - - unittest.group("obj-schema-Dimension", () { - unittest.test("to-json--from-json", () { - var o = buildDimension(); - var od = new api.Dimension.fromJson(o.toJson()); - checkDimension(od); - }); - }); - - - unittest.group("obj-schema-DimensionFilter", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionFilter(); - var od = new api.DimensionFilter.fromJson(o.toJson()); - checkDimensionFilter(od); - }); - }); - - - unittest.group("obj-schema-DimensionValue", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionValue(); - var od = new api.DimensionValue.fromJson(o.toJson()); - checkDimensionValue(od); - }); - }); - - - unittest.group("obj-schema-DimensionValueList", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionValueList(); - var od = new api.DimensionValueList.fromJson(o.toJson()); - checkDimensionValueList(od); - }); - }); - - - unittest.group("obj-schema-DimensionValueRequest", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionValueRequest(); - var od = new api.DimensionValueRequest.fromJson(o.toJson()); - checkDimensionValueRequest(od); - }); - }); - - - unittest.group("obj-schema-DirectorySite", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySite(); - var od = new api.DirectorySite.fromJson(o.toJson()); - checkDirectorySite(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteContact", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteContact(); - var od = new api.DirectorySiteContact.fromJson(o.toJson()); - checkDirectorySiteContact(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteContactAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteContactAssignment(); - var od = new api.DirectorySiteContactAssignment.fromJson(o.toJson()); - checkDirectorySiteContactAssignment(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteContactsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteContactsListResponse(); - var od = new api.DirectorySiteContactsListResponse.fromJson(o.toJson()); - checkDirectorySiteContactsListResponse(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteSettings", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteSettings(); - var od = new api.DirectorySiteSettings.fromJson(o.toJson()); - checkDirectorySiteSettings(od); - }); - }); - - - unittest.group("obj-schema-DirectorySitesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySitesListResponse(); - var od = new api.DirectorySitesListResponse.fromJson(o.toJson()); - checkDirectorySitesListResponse(od); - }); - }); - - - unittest.group("obj-schema-EventTag", () { - unittest.test("to-json--from-json", () { - var o = buildEventTag(); - var od = new api.EventTag.fromJson(o.toJson()); - checkEventTag(od); - }); - }); - - - unittest.group("obj-schema-EventTagOverride", () { - unittest.test("to-json--from-json", () { - var o = buildEventTagOverride(); - var od = new api.EventTagOverride.fromJson(o.toJson()); - checkEventTagOverride(od); - }); - }); - - - unittest.group("obj-schema-EventTagsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildEventTagsListResponse(); - var od = new api.EventTagsListResponse.fromJson(o.toJson()); - checkEventTagsListResponse(od); - }); - }); - - - unittest.group("obj-schema-FileUrls", () { - unittest.test("to-json--from-json", () { - var o = buildFileUrls(); - var od = new api.FileUrls.fromJson(o.toJson()); - checkFileUrls(od); - }); - }); - - - unittest.group("obj-schema-File", () { - unittest.test("to-json--from-json", () { - var o = buildFile(); - var od = new api.File.fromJson(o.toJson()); - checkFile(od); - }); - }); - - - unittest.group("obj-schema-FileList", () { - unittest.test("to-json--from-json", () { - var o = buildFileList(); - var od = new api.FileList.fromJson(o.toJson()); - checkFileList(od); - }); - }); - - - unittest.group("obj-schema-Flight", () { - unittest.test("to-json--from-json", () { - var o = buildFlight(); - var od = new api.Flight.fromJson(o.toJson()); - checkFlight(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivitiesGenerateTagResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivitiesGenerateTagResponse(); - var od = new api.FloodlightActivitiesGenerateTagResponse.fromJson(o.toJson()); - checkFloodlightActivitiesGenerateTagResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivitiesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivitiesListResponse(); - var od = new api.FloodlightActivitiesListResponse.fromJson(o.toJson()); - checkFloodlightActivitiesListResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivity", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivity(); - var od = new api.FloodlightActivity.fromJson(o.toJson()); - checkFloodlightActivity(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityDynamicTag", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityDynamicTag(); - var od = new api.FloodlightActivityDynamicTag.fromJson(o.toJson()); - checkFloodlightActivityDynamicTag(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityGroup", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityGroup(); - var od = new api.FloodlightActivityGroup.fromJson(o.toJson()); - checkFloodlightActivityGroup(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityGroupsListResponse(); - var od = new api.FloodlightActivityGroupsListResponse.fromJson(o.toJson()); - checkFloodlightActivityGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityPublisherDynamicTag", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityPublisherDynamicTag(); - var od = new api.FloodlightActivityPublisherDynamicTag.fromJson(o.toJson()); - checkFloodlightActivityPublisherDynamicTag(od); - }); - }); - - - unittest.group("obj-schema-FloodlightConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightConfiguration(); - var od = new api.FloodlightConfiguration.fromJson(o.toJson()); - checkFloodlightConfiguration(od); - }); - }); - - - unittest.group("obj-schema-FloodlightConfigurationsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightConfigurationsListResponse(); - var od = new api.FloodlightConfigurationsListResponse.fromJson(o.toJson()); - checkFloodlightConfigurationsListResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightReportCompatibleFields(); - var od = new api.FloodlightReportCompatibleFields.fromJson(o.toJson()); - checkFloodlightReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-FrequencyCap", () { - unittest.test("to-json--from-json", () { - var o = buildFrequencyCap(); - var od = new api.FrequencyCap.fromJson(o.toJson()); - checkFrequencyCap(od); - }); - }); - - - unittest.group("obj-schema-FsCommand", () { - unittest.test("to-json--from-json", () { - var o = buildFsCommand(); - var od = new api.FsCommand.fromJson(o.toJson()); - checkFsCommand(od); - }); - }); - - - unittest.group("obj-schema-GeoTargeting", () { - unittest.test("to-json--from-json", () { - var o = buildGeoTargeting(); - var od = new api.GeoTargeting.fromJson(o.toJson()); - checkGeoTargeting(od); - }); - }); - - - unittest.group("obj-schema-InventoryItem", () { - unittest.test("to-json--from-json", () { - var o = buildInventoryItem(); - var od = new api.InventoryItem.fromJson(o.toJson()); - checkInventoryItem(od); - }); - }); - - - unittest.group("obj-schema-InventoryItemsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildInventoryItemsListResponse(); - var od = new api.InventoryItemsListResponse.fromJson(o.toJson()); - checkInventoryItemsListResponse(od); - }); - }); - - - unittest.group("obj-schema-KeyValueTargetingExpression", () { - unittest.test("to-json--from-json", () { - var o = buildKeyValueTargetingExpression(); - var od = new api.KeyValueTargetingExpression.fromJson(o.toJson()); - checkKeyValueTargetingExpression(od); - }); - }); - - - unittest.group("obj-schema-LandingPage", () { - unittest.test("to-json--from-json", () { - var o = buildLandingPage(); - var od = new api.LandingPage.fromJson(o.toJson()); - checkLandingPage(od); - }); - }); - - - unittest.group("obj-schema-LandingPagesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildLandingPagesListResponse(); - var od = new api.LandingPagesListResponse.fromJson(o.toJson()); - checkLandingPagesListResponse(od); - }); - }); - - - unittest.group("obj-schema-LastModifiedInfo", () { - unittest.test("to-json--from-json", () { - var o = buildLastModifiedInfo(); - var od = new api.LastModifiedInfo.fromJson(o.toJson()); - checkLastModifiedInfo(od); - }); - }); - - - unittest.group("obj-schema-ListPopulationClause", () { - unittest.test("to-json--from-json", () { - var o = buildListPopulationClause(); - var od = new api.ListPopulationClause.fromJson(o.toJson()); - checkListPopulationClause(od); - }); - }); - - - unittest.group("obj-schema-ListPopulationRule", () { - unittest.test("to-json--from-json", () { - var o = buildListPopulationRule(); - var od = new api.ListPopulationRule.fromJson(o.toJson()); - checkListPopulationRule(od); - }); - }); - - - unittest.group("obj-schema-ListPopulationTerm", () { - unittest.test("to-json--from-json", () { - var o = buildListPopulationTerm(); - var od = new api.ListPopulationTerm.fromJson(o.toJson()); - checkListPopulationTerm(od); - }); - }); - - - unittest.group("obj-schema-ListTargetingExpression", () { - unittest.test("to-json--from-json", () { - var o = buildListTargetingExpression(); - var od = new api.ListTargetingExpression.fromJson(o.toJson()); - checkListTargetingExpression(od); - }); - }); - - - unittest.group("obj-schema-LookbackConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildLookbackConfiguration(); - var od = new api.LookbackConfiguration.fromJson(o.toJson()); - checkLookbackConfiguration(od); - }); - }); - - - unittest.group("obj-schema-Metric", () { - unittest.test("to-json--from-json", () { - var o = buildMetric(); - var od = new api.Metric.fromJson(o.toJson()); - checkMetric(od); - }); - }); - - - unittest.group("obj-schema-Metro", () { - unittest.test("to-json--from-json", () { - var o = buildMetro(); - var od = new api.Metro.fromJson(o.toJson()); - checkMetro(od); - }); - }); - - - unittest.group("obj-schema-MetrosListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildMetrosListResponse(); - var od = new api.MetrosListResponse.fromJson(o.toJson()); - checkMetrosListResponse(od); - }); - }); - - - unittest.group("obj-schema-MobileCarrier", () { - unittest.test("to-json--from-json", () { - var o = buildMobileCarrier(); - var od = new api.MobileCarrier.fromJson(o.toJson()); - checkMobileCarrier(od); - }); - }); - - - unittest.group("obj-schema-MobileCarriersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildMobileCarriersListResponse(); - var od = new api.MobileCarriersListResponse.fromJson(o.toJson()); - checkMobileCarriersListResponse(od); - }); - }); - - - unittest.group("obj-schema-ObjectFilter", () { - unittest.test("to-json--from-json", () { - var o = buildObjectFilter(); - var od = new api.ObjectFilter.fromJson(o.toJson()); - checkObjectFilter(od); - }); - }); - - - unittest.group("obj-schema-OffsetPosition", () { - unittest.test("to-json--from-json", () { - var o = buildOffsetPosition(); - var od = new api.OffsetPosition.fromJson(o.toJson()); - checkOffsetPosition(od); - }); - }); - - - unittest.group("obj-schema-OmnitureSettings", () { - unittest.test("to-json--from-json", () { - var o = buildOmnitureSettings(); - var od = new api.OmnitureSettings.fromJson(o.toJson()); - checkOmnitureSettings(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystem", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystem(); - var od = new api.OperatingSystem.fromJson(o.toJson()); - checkOperatingSystem(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystemVersion", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystemVersion(); - var od = new api.OperatingSystemVersion.fromJson(o.toJson()); - checkOperatingSystemVersion(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystemVersionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystemVersionsListResponse(); - var od = new api.OperatingSystemVersionsListResponse.fromJson(o.toJson()); - checkOperatingSystemVersionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystemsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystemsListResponse(); - var od = new api.OperatingSystemsListResponse.fromJson(o.toJson()); - checkOperatingSystemsListResponse(od); - }); - }); - - - unittest.group("obj-schema-OptimizationActivity", () { - unittest.test("to-json--from-json", () { - var o = buildOptimizationActivity(); - var od = new api.OptimizationActivity.fromJson(o.toJson()); - checkOptimizationActivity(od); - }); - }); - - - unittest.group("obj-schema-Order", () { - unittest.test("to-json--from-json", () { - var o = buildOrder(); - var od = new api.Order.fromJson(o.toJson()); - checkOrder(od); - }); - }); - - - unittest.group("obj-schema-OrderContact", () { - unittest.test("to-json--from-json", () { - var o = buildOrderContact(); - var od = new api.OrderContact.fromJson(o.toJson()); - checkOrderContact(od); - }); - }); - - - unittest.group("obj-schema-OrderDocument", () { - unittest.test("to-json--from-json", () { - var o = buildOrderDocument(); - var od = new api.OrderDocument.fromJson(o.toJson()); - checkOrderDocument(od); - }); - }); - - - unittest.group("obj-schema-OrderDocumentsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOrderDocumentsListResponse(); - var od = new api.OrderDocumentsListResponse.fromJson(o.toJson()); - checkOrderDocumentsListResponse(od); - }); - }); - - - unittest.group("obj-schema-OrdersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOrdersListResponse(); - var od = new api.OrdersListResponse.fromJson(o.toJson()); - checkOrdersListResponse(od); - }); - }); - - - unittest.group("obj-schema-PathToConversionReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildPathToConversionReportCompatibleFields(); - var od = new api.PathToConversionReportCompatibleFields.fromJson(o.toJson()); - checkPathToConversionReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-Placement", () { - unittest.test("to-json--from-json", () { - var o = buildPlacement(); - var od = new api.Placement.fromJson(o.toJson()); - checkPlacement(od); - }); - }); - - - unittest.group("obj-schema-PlacementAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementAssignment(); - var od = new api.PlacementAssignment.fromJson(o.toJson()); - checkPlacementAssignment(od); - }); - }); - - - unittest.group("obj-schema-PlacementGroup", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementGroup(); - var od = new api.PlacementGroup.fromJson(o.toJson()); - checkPlacementGroup(od); - }); - }); - - - unittest.group("obj-schema-PlacementGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementGroupsListResponse(); - var od = new api.PlacementGroupsListResponse.fromJson(o.toJson()); - checkPlacementGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-PlacementStrategiesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementStrategiesListResponse(); - var od = new api.PlacementStrategiesListResponse.fromJson(o.toJson()); - checkPlacementStrategiesListResponse(od); - }); - }); - - - unittest.group("obj-schema-PlacementStrategy", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementStrategy(); - var od = new api.PlacementStrategy.fromJson(o.toJson()); - checkPlacementStrategy(od); - }); - }); - - - unittest.group("obj-schema-PlacementTag", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementTag(); - var od = new api.PlacementTag.fromJson(o.toJson()); - checkPlacementTag(od); - }); - }); - - - unittest.group("obj-schema-PlacementsGenerateTagsResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementsGenerateTagsResponse(); - var od = new api.PlacementsGenerateTagsResponse.fromJson(o.toJson()); - checkPlacementsGenerateTagsResponse(od); - }); - }); - - - unittest.group("obj-schema-PlacementsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementsListResponse(); - var od = new api.PlacementsListResponse.fromJson(o.toJson()); - checkPlacementsListResponse(od); - }); - }); - - - unittest.group("obj-schema-PlatformType", () { - unittest.test("to-json--from-json", () { - var o = buildPlatformType(); - var od = new api.PlatformType.fromJson(o.toJson()); - checkPlatformType(od); - }); - }); - - - unittest.group("obj-schema-PlatformTypesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlatformTypesListResponse(); - var od = new api.PlatformTypesListResponse.fromJson(o.toJson()); - checkPlatformTypesListResponse(od); - }); - }); - - - unittest.group("obj-schema-PopupWindowProperties", () { - unittest.test("to-json--from-json", () { - var o = buildPopupWindowProperties(); - var od = new api.PopupWindowProperties.fromJson(o.toJson()); - checkPopupWindowProperties(od); - }); - }); - - - unittest.group("obj-schema-PostalCode", () { - unittest.test("to-json--from-json", () { - var o = buildPostalCode(); - var od = new api.PostalCode.fromJson(o.toJson()); - checkPostalCode(od); - }); - }); - - - unittest.group("obj-schema-PostalCodesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPostalCodesListResponse(); - var od = new api.PostalCodesListResponse.fromJson(o.toJson()); - checkPostalCodesListResponse(od); - }); - }); - - - unittest.group("obj-schema-Pricing", () { - unittest.test("to-json--from-json", () { - var o = buildPricing(); - var od = new api.Pricing.fromJson(o.toJson()); - checkPricing(od); - }); - }); - - - unittest.group("obj-schema-PricingSchedule", () { - unittest.test("to-json--from-json", () { - var o = buildPricingSchedule(); - var od = new api.PricingSchedule.fromJson(o.toJson()); - checkPricingSchedule(od); - }); - }); - - - unittest.group("obj-schema-PricingSchedulePricingPeriod", () { - unittest.test("to-json--from-json", () { - var o = buildPricingSchedulePricingPeriod(); - var od = new api.PricingSchedulePricingPeriod.fromJson(o.toJson()); - checkPricingSchedulePricingPeriod(od); - }); - }); - - - unittest.group("obj-schema-Project", () { - unittest.test("to-json--from-json", () { - var o = buildProject(); - var od = new api.Project.fromJson(o.toJson()); - checkProject(od); - }); - }); - - - unittest.group("obj-schema-ProjectsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildProjectsListResponse(); - var od = new api.ProjectsListResponse.fromJson(o.toJson()); - checkProjectsListResponse(od); - }); - }); - - - unittest.group("obj-schema-ReachReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildReachReportCompatibleFields(); - var od = new api.ReachReportCompatibleFields.fromJson(o.toJson()); - checkReachReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-Recipient", () { - unittest.test("to-json--from-json", () { - var o = buildRecipient(); - var od = new api.Recipient.fromJson(o.toJson()); - checkRecipient(od); - }); - }); - - - unittest.group("obj-schema-Region", () { - unittest.test("to-json--from-json", () { - var o = buildRegion(); - var od = new api.Region.fromJson(o.toJson()); - checkRegion(od); - }); - }); - - - unittest.group("obj-schema-RegionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildRegionsListResponse(); - var od = new api.RegionsListResponse.fromJson(o.toJson()); - checkRegionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-RemarketingList", () { - unittest.test("to-json--from-json", () { - var o = buildRemarketingList(); - var od = new api.RemarketingList.fromJson(o.toJson()); - checkRemarketingList(od); - }); - }); - - - unittest.group("obj-schema-RemarketingListShare", () { - unittest.test("to-json--from-json", () { - var o = buildRemarketingListShare(); - var od = new api.RemarketingListShare.fromJson(o.toJson()); - checkRemarketingListShare(od); - }); - }); - - - unittest.group("obj-schema-RemarketingListsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildRemarketingListsListResponse(); - var od = new api.RemarketingListsListResponse.fromJson(o.toJson()); - checkRemarketingListsListResponse(od); - }); - }); - - - unittest.group("obj-schema-ReportCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportCriteria(); - var od = new api.ReportCriteria.fromJson(o.toJson()); - checkReportCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportCrossDimensionReachCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportCrossDimensionReachCriteria(); - var od = new api.ReportCrossDimensionReachCriteria.fromJson(o.toJson()); - checkReportCrossDimensionReachCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportDelivery", () { - unittest.test("to-json--from-json", () { - var o = buildReportDelivery(); - var od = new api.ReportDelivery.fromJson(o.toJson()); - checkReportDelivery(od); - }); - }); - - - unittest.group("obj-schema-ReportFloodlightCriteriaReportProperties", () { - unittest.test("to-json--from-json", () { - var o = buildReportFloodlightCriteriaReportProperties(); - var od = new api.ReportFloodlightCriteriaReportProperties.fromJson(o.toJson()); - checkReportFloodlightCriteriaReportProperties(od); - }); - }); - - - unittest.group("obj-schema-ReportFloodlightCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportFloodlightCriteria(); - var od = new api.ReportFloodlightCriteria.fromJson(o.toJson()); - checkReportFloodlightCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportPathToConversionCriteriaReportProperties", () { - unittest.test("to-json--from-json", () { - var o = buildReportPathToConversionCriteriaReportProperties(); - var od = new api.ReportPathToConversionCriteriaReportProperties.fromJson(o.toJson()); - checkReportPathToConversionCriteriaReportProperties(od); - }); - }); - - - unittest.group("obj-schema-ReportPathToConversionCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportPathToConversionCriteria(); - var od = new api.ReportPathToConversionCriteria.fromJson(o.toJson()); - checkReportPathToConversionCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportReachCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportReachCriteria(); - var od = new api.ReportReachCriteria.fromJson(o.toJson()); - checkReportReachCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportSchedule", () { - unittest.test("to-json--from-json", () { - var o = buildReportSchedule(); - var od = new api.ReportSchedule.fromJson(o.toJson()); - checkReportSchedule(od); - }); - }); - - - unittest.group("obj-schema-Report", () { - unittest.test("to-json--from-json", () { - var o = buildReport(); - var od = new api.Report.fromJson(o.toJson()); - checkReport(od); - }); - }); - - - unittest.group("obj-schema-ReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildReportCompatibleFields(); - var od = new api.ReportCompatibleFields.fromJson(o.toJson()); - checkReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-ReportList", () { - unittest.test("to-json--from-json", () { - var o = buildReportList(); - var od = new api.ReportList.fromJson(o.toJson()); - checkReportList(od); - }); - }); - - - unittest.group("obj-schema-ReportsConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildReportsConfiguration(); - var od = new api.ReportsConfiguration.fromJson(o.toJson()); - checkReportsConfiguration(od); - }); - }); - - - unittest.group("obj-schema-RichMediaExitOverride", () { - unittest.test("to-json--from-json", () { - var o = buildRichMediaExitOverride(); - var od = new api.RichMediaExitOverride.fromJson(o.toJson()); - checkRichMediaExitOverride(od); - }); - }); - - - unittest.group("obj-schema-Site", () { - unittest.test("to-json--from-json", () { - var o = buildSite(); - var od = new api.Site.fromJson(o.toJson()); - checkSite(od); - }); - }); - - - unittest.group("obj-schema-SiteContact", () { - unittest.test("to-json--from-json", () { - var o = buildSiteContact(); - var od = new api.SiteContact.fromJson(o.toJson()); - checkSiteContact(od); - }); - }); - - - unittest.group("obj-schema-SiteSettings", () { - unittest.test("to-json--from-json", () { - var o = buildSiteSettings(); - var od = new api.SiteSettings.fromJson(o.toJson()); - checkSiteSettings(od); - }); - }); - - - unittest.group("obj-schema-SitesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSitesListResponse(); - var od = new api.SitesListResponse.fromJson(o.toJson()); - checkSitesListResponse(od); - }); - }); - - - unittest.group("obj-schema-Size", () { - unittest.test("to-json--from-json", () { - var o = buildSize(); - var od = new api.Size.fromJson(o.toJson()); - checkSize(od); - }); - }); - - - unittest.group("obj-schema-SizesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSizesListResponse(); - var od = new api.SizesListResponse.fromJson(o.toJson()); - checkSizesListResponse(od); - }); - }); - - - unittest.group("obj-schema-SortedDimension", () { - unittest.test("to-json--from-json", () { - var o = buildSortedDimension(); - var od = new api.SortedDimension.fromJson(o.toJson()); - checkSortedDimension(od); - }); - }); - - - unittest.group("obj-schema-Subaccount", () { - unittest.test("to-json--from-json", () { - var o = buildSubaccount(); - var od = new api.Subaccount.fromJson(o.toJson()); - checkSubaccount(od); - }); - }); - - - unittest.group("obj-schema-SubaccountsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSubaccountsListResponse(); - var od = new api.SubaccountsListResponse.fromJson(o.toJson()); - checkSubaccountsListResponse(od); - }); - }); - - - unittest.group("obj-schema-TagData", () { - unittest.test("to-json--from-json", () { - var o = buildTagData(); - var od = new api.TagData.fromJson(o.toJson()); - checkTagData(od); - }); - }); - - - unittest.group("obj-schema-TagSetting", () { - unittest.test("to-json--from-json", () { - var o = buildTagSetting(); - var od = new api.TagSetting.fromJson(o.toJson()); - checkTagSetting(od); - }); - }); - - - unittest.group("obj-schema-TagSettings", () { - unittest.test("to-json--from-json", () { - var o = buildTagSettings(); - var od = new api.TagSettings.fromJson(o.toJson()); - checkTagSettings(od); - }); - }); - - - unittest.group("obj-schema-TargetWindow", () { - unittest.test("to-json--from-json", () { - var o = buildTargetWindow(); - var od = new api.TargetWindow.fromJson(o.toJson()); - checkTargetWindow(od); - }); - }); - - - unittest.group("obj-schema-TargetableRemarketingList", () { - unittest.test("to-json--from-json", () { - var o = buildTargetableRemarketingList(); - var od = new api.TargetableRemarketingList.fromJson(o.toJson()); - checkTargetableRemarketingList(od); - }); - }); - - - unittest.group("obj-schema-TargetableRemarketingListsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildTargetableRemarketingListsListResponse(); - var od = new api.TargetableRemarketingListsListResponse.fromJson(o.toJson()); - checkTargetableRemarketingListsListResponse(od); - }); - }); - - - unittest.group("obj-schema-TechnologyTargeting", () { - unittest.test("to-json--from-json", () { - var o = buildTechnologyTargeting(); - var od = new api.TechnologyTargeting.fromJson(o.toJson()); - checkTechnologyTargeting(od); - }); - }); - - - unittest.group("obj-schema-ThirdPartyAuthenticationToken", () { - unittest.test("to-json--from-json", () { - var o = buildThirdPartyAuthenticationToken(); - var od = new api.ThirdPartyAuthenticationToken.fromJson(o.toJson()); - checkThirdPartyAuthenticationToken(od); - }); - }); - - - unittest.group("obj-schema-ThirdPartyTrackingUrl", () { - unittest.test("to-json--from-json", () { - var o = buildThirdPartyTrackingUrl(); - var od = new api.ThirdPartyTrackingUrl.fromJson(o.toJson()); - checkThirdPartyTrackingUrl(od); - }); - }); - - - unittest.group("obj-schema-UserDefinedVariableConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildUserDefinedVariableConfiguration(); - var od = new api.UserDefinedVariableConfiguration.fromJson(o.toJson()); - checkUserDefinedVariableConfiguration(od); - }); - }); - - - unittest.group("obj-schema-UserProfile", () { - unittest.test("to-json--from-json", () { - var o = buildUserProfile(); - var od = new api.UserProfile.fromJson(o.toJson()); - checkUserProfile(od); - }); - }); - - - unittest.group("obj-schema-UserProfileList", () { - unittest.test("to-json--from-json", () { - var o = buildUserProfileList(); - var od = new api.UserProfileList.fromJson(o.toJson()); - checkUserProfileList(od); - }); - }); - - - unittest.group("obj-schema-UserRole", () { - unittest.test("to-json--from-json", () { - var o = buildUserRole(); - var od = new api.UserRole.fromJson(o.toJson()); - checkUserRole(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermission", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermission(); - var od = new api.UserRolePermission.fromJson(o.toJson()); - checkUserRolePermission(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermissionGroup", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermissionGroup(); - var od = new api.UserRolePermissionGroup.fromJson(o.toJson()); - checkUserRolePermissionGroup(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermissionGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermissionGroupsListResponse(); - var od = new api.UserRolePermissionGroupsListResponse.fromJson(o.toJson()); - checkUserRolePermissionGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermissionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermissionsListResponse(); - var od = new api.UserRolePermissionsListResponse.fromJson(o.toJson()); - checkUserRolePermissionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-UserRolesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolesListResponse(); - var od = new api.UserRolesListResponse.fromJson(o.toJson()); - checkUserRolesListResponse(od); - }); - }); - - - unittest.group("resource-AccountActiveAdSummariesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock).accountActiveAdSummaries; - var arg_profileId = "foo"; - var arg_summaryAccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountActiveAdSummaries/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/accountActiveAdSummaries/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_summaryAccountId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountActiveAdSummary()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_summaryAccountId).then(unittest.expectAsync(((api.AccountActiveAdSummary response) { - checkAccountActiveAdSummary(response); - }))); - }); - - }); - - - unittest.group("resource-AccountPermissionGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock).accountPermissionGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissionGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/accountPermissionGroups/")); - pathOffset += 25; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermissionGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPermissionGroup response) { - checkAccountPermissionGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock).accountPermissionGroups; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissionGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/accountPermissionGroups")); - pathOffset += 24; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermissionGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissionGroupsListResponse response) { - checkAccountPermissionGroupsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-AccountPermissionsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).accountPermissions; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountPermissions/")); - pathOffset += 20; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermission()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPermission response) { - checkAccountPermission(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).accountPermissions; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/accountPermissions")); - pathOffset += 19; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermissionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissionsListResponse response) { - checkAccountPermissionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-AccountUserProfilesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/accountUserProfiles/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_request = buildAccountUserProfile(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AccountUserProfile.fromJson(json); - checkAccountUserProfile(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_profileId = "foo"; - var arg_active = true; - var arg_ids = buildUnnamed3218(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - var arg_userRoleId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - unittest.expect(queryMap["userRoleId"].first, unittest.equals(arg_userRoleId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfilesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, userRoleId: arg_userRoleId).then(unittest.expectAsync(((api.AccountUserProfilesListResponse response) { - checkAccountUserProfilesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_request = buildAccountUserProfile(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AccountUserProfile.fromJson(json); - checkAccountUserProfile(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_request = buildAccountUserProfile(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AccountUserProfile.fromJson(json); - checkAccountUserProfile(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - }); - - - unittest.group("resource-AccountsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/accounts/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Account response) { - checkAccount(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_profileId = "foo"; - var arg_active = true; - var arg_ids = buildUnnamed3219(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.AccountsListResponse response) { - checkAccountsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_request = buildAccount(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Account.fromJson(json); - checkAccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Account response) { - checkAccount(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_request = buildAccount(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Account.fromJson(json); - checkAccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Account response) { - checkAccount(response); - }))); - }); - - }); - - - unittest.group("resource-AdsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/ads/")); - pathOffset += 5; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_request = buildAd(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Ad.fromJson(json); - checkAd(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_profileId = "foo"; - var arg_active = true; - var arg_advertiserId = "foo"; - var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed3220(); - var arg_campaignIds = buildUnnamed3221(); - var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed3222(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed3223(); - var arg_creativeType = "foo"; - var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed3224(); - var arg_landingPageIds = buildUnnamed3225(); - var arg_maxResults = 42; - var arg_overriddenEventTagId = "foo"; - var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed3226(); - var arg_remarketingListIds = buildUnnamed3227(); - var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3228(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_sslCompliant = true; - var arg_sslRequired = true; - var arg_type = buildUnnamed3229(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["audienceSegmentIds"], unittest.equals(arg_audienceSegmentIds)); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["compatibility"].first, unittest.equals(arg_compatibility)); - unittest.expect(queryMap["creativeIds"], unittest.equals(arg_creativeIds)); - unittest.expect(queryMap["creativeOptimizationConfigurationIds"], unittest.equals(arg_creativeOptimizationConfigurationIds)); - unittest.expect(queryMap["creativeType"].first, unittest.equals(arg_creativeType)); - unittest.expect(queryMap["dynamicClickTracker"].first, unittest.equals("$arg_dynamicClickTracker")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["landingPageIds"], unittest.equals(arg_landingPageIds)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["overriddenEventTagId"].first, unittest.equals(arg_overriddenEventTagId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementIds)); - unittest.expect(queryMap["remarketingListIds"], unittest.equals(arg_remarketingListIds)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["sslCompliant"].first, unittest.equals("$arg_sslCompliant")); - unittest.expect(queryMap["sslRequired"].first, unittest.equals("$arg_sslRequired")); - unittest.expect(queryMap["type"], unittest.equals(arg_type)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId, archived: arg_archived, audienceSegmentIds: arg_audienceSegmentIds, campaignIds: arg_campaignIds, compatibility: arg_compatibility, creativeIds: arg_creativeIds, creativeOptimizationConfigurationIds: arg_creativeOptimizationConfigurationIds, creativeType: arg_creativeType, dynamicClickTracker: arg_dynamicClickTracker, ids: arg_ids, landingPageIds: arg_landingPageIds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, placementIds: arg_placementIds, remarketingListIds: arg_remarketingListIds, searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, sslCompliant: arg_sslCompliant, sslRequired: arg_sslRequired, type: arg_type).then(unittest.expectAsync(((api.AdsListResponse response) { - checkAdsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_request = buildAd(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Ad.fromJson(json); - checkAd(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_request = buildAd(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Ad.fromJson(json); - checkAd(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - }); - - - unittest.group("resource-AdvertiserGroupsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/advertiserGroups/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/advertiserGroups/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_request = buildAdvertiserGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AdvertiserGroup.fromJson(json); - checkAdvertiserGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed3230(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.AdvertiserGroupsListResponse response) { - checkAdvertiserGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_request = buildAdvertiserGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AdvertiserGroup.fromJson(json); - checkAdvertiserGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_request = buildAdvertiserGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AdvertiserGroup.fromJson(json); - checkAdvertiserGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - }); - - - unittest.group("resource-AdvertisersResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/advertisers/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_request = buildAdvertiser(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Advertiser.fromJson(json); - checkAdvertiser(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed3231(); - var arg_floodlightConfigurationIds = buildUnnamed3232(); - var arg_ids = buildUnnamed3233(); - var arg_includeAdvertisersWithoutGroupsOnly = true; - var arg_maxResults = 42; - var arg_onlyParent = true; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_status = "foo"; - var arg_subaccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserGroupIds"], unittest.equals(arg_advertiserGroupIds)); - unittest.expect(queryMap["floodlightConfigurationIds"], unittest.equals(arg_floodlightConfigurationIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["includeAdvertisersWithoutGroupsOnly"].first, unittest.equals("$arg_includeAdvertisersWithoutGroupsOnly")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["onlyParent"].first, unittest.equals("$arg_onlyParent")); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertisersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, floodlightConfigurationIds: arg_floodlightConfigurationIds, ids: arg_ids, includeAdvertisersWithoutGroupsOnly: arg_includeAdvertisersWithoutGroupsOnly, maxResults: arg_maxResults, onlyParent: arg_onlyParent, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, status: arg_status, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.AdvertisersListResponse response) { - checkAdvertisersListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_request = buildAdvertiser(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Advertiser.fromJson(json); - checkAdvertiser(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_request = buildAdvertiser(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Advertiser.fromJson(json); - checkAdvertiser(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - }); - - - unittest.group("resource-BrowsersResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/browsers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/browsers")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildBrowsersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.BrowsersListResponse response) { - checkBrowsersListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CampaignCreativeAssociationsResourceApi", () { - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi(mock).campaignCreativeAssociations; - var arg_request = buildCampaignCreativeAssociation(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CampaignCreativeAssociation.fromJson(json); - checkCampaignCreativeAssociation(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/campaignCreativeAssociations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.equals("/campaignCreativeAssociations")); - pathOffset += 29; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaignCreativeAssociation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.CampaignCreativeAssociation response) { - checkCampaignCreativeAssociation(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi(mock).campaignCreativeAssociations; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/campaignCreativeAssociations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.equals("/campaignCreativeAssociations")); - pathOffset += 29; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaignCreativeAssociationsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_campaignId, maxResults: arg_maxResults, pageToken: arg_pageToken, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CampaignCreativeAssociationsListResponse response) { - checkCampaignCreativeAssociationsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CampaignsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_request = buildCampaign(); - var arg_profileId = "foo"; - var arg_defaultLandingPageName = "foo"; - var arg_defaultLandingPageUrl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Campaign.fromJson(json); - checkCampaign(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["defaultLandingPageName"].first, unittest.equals(arg_defaultLandingPageName)); - unittest.expect(queryMap["defaultLandingPageUrl"].first, unittest.equals(arg_defaultLandingPageUrl)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_defaultLandingPageName, arg_defaultLandingPageUrl).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed3234(); - var arg_advertiserIds = buildUnnamed3235(); - var arg_archived = true; - var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed3236(); - var arg_ids = buildUnnamed3237(); - var arg_maxResults = 42; - var arg_overriddenEventTagId = "foo"; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserGroupIds"], unittest.equals(arg_advertiserGroupIds)); - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["atLeastOneOptimizationActivity"].first, unittest.equals("$arg_atLeastOneOptimizationActivity")); - unittest.expect(queryMap["excludedIds"], unittest.equals(arg_excludedIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["overriddenEventTagId"].first, unittest.equals(arg_overriddenEventTagId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaignsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, advertiserIds: arg_advertiserIds, archived: arg_archived, atLeastOneOptimizationActivity: arg_atLeastOneOptimizationActivity, excludedIds: arg_excludedIds, ids: arg_ids, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.CampaignsListResponse response) { - checkCampaignsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_request = buildCampaign(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Campaign.fromJson(json); - checkCampaign(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_request = buildCampaign(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Campaign.fromJson(json); - checkCampaign(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - }); - - - unittest.group("resource-ChangeLogsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/changeLogs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/changeLogs/")); - pathOffset += 12; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildChangeLog()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ChangeLog response) { - checkChangeLog(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; - var arg_profileId = "foo"; - var arg_action = "foo"; - var arg_ids = buildUnnamed3238(); - var arg_maxChangeTime = "foo"; - var arg_maxResults = 42; - var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed3239(); - var arg_objectType = "foo"; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed3240(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/changeLogs", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/changeLogs")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["maxChangeTime"].first, unittest.equals(arg_maxChangeTime)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["minChangeTime"].first, unittest.equals(arg_minChangeTime)); - unittest.expect(queryMap["objectIds"], unittest.equals(arg_objectIds)); - unittest.expect(queryMap["objectType"].first, unittest.equals(arg_objectType)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["userProfileIds"], unittest.equals(arg_userProfileIds)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildChangeLogsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, action: arg_action, ids: arg_ids, maxChangeTime: arg_maxChangeTime, maxResults: arg_maxResults, minChangeTime: arg_minChangeTime, objectIds: arg_objectIds, objectType: arg_objectType, pageToken: arg_pageToken, searchString: arg_searchString, userProfileIds: arg_userProfileIds).then(unittest.expectAsync(((api.ChangeLogsListResponse response) { - checkChangeLogsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CitiesResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; - var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed3241(); - var arg_dartIds = buildUnnamed3242(); - var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed3243(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/cities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/cities")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["countryDartIds"], unittest.equals(arg_countryDartIds)); - unittest.expect(queryMap["dartIds"], unittest.equals(arg_dartIds)); - unittest.expect(queryMap["namePrefix"].first, unittest.equals(arg_namePrefix)); - unittest.expect(queryMap["regionDartIds"], unittest.equals(arg_regionDartIds)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCitiesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, countryDartIds: arg_countryDartIds, dartIds: arg_dartIds, namePrefix: arg_namePrefix, regionDartIds: arg_regionDartIds).then(unittest.expectAsync(((api.CitiesListResponse response) { - checkCitiesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ConnectionTypesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connectionTypes; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/connectionTypes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/connectionTypes/")); - pathOffset += 17; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildConnectionType()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ConnectionType response) { - checkConnectionType(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connectionTypes; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/connectionTypes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/connectionTypes")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildConnectionTypesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.ConnectionTypesListResponse response) { - checkConnectionTypesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ContentCategoriesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/contentCategories/")); - pathOffset += 19; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/contentCategories/")); - pathOffset += 19; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_request = buildContentCategory(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.ContentCategory.fromJson(json); - checkContentCategory(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed3244(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategoriesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ContentCategoriesListResponse response) { - checkContentCategoriesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_request = buildContentCategory(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.ContentCategory.fromJson(json); - checkContentCategory(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_request = buildContentCategory(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.ContentCategory.fromJson(json); - checkContentCategory(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - }); - - - unittest.group("resource-CountriesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; - var arg_profileId = "foo"; - var arg_dartId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/countries/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/countries/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_dartId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCountry()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.Country response) { - checkCountry(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/countries", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/countries")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCountriesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.CountriesListResponse response) { - checkCountriesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeAssetsResourceApi", () { - unittest.test("method--insert", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.CreativeAssetsResourceApi res = new api.DfareportingApi(mock).creativeAssets; - var arg_request = buildCreativeAssetMetadata(); - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeAssetMetadata.fromJson(json); - checkCreativeAssetMetadata(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeAssets/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeAssets/")); - pathOffset += 16; - index = path.indexOf("/creativeAssets", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_advertiserId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeAssets")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeAssetMetadata()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_advertiserId).then(unittest.expectAsync(((api.CreativeAssetMetadata response) { - checkCreativeAssetMetadata(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeFieldValuesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/creativeFieldValues/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/creativeFieldValues/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_request = buildCreativeFieldValue(); - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeFieldValue.fromJson(json); - checkCreativeFieldValue(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_creativeFieldId).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed3245(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValuesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_creativeFieldId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CreativeFieldValuesListResponse response) { - checkCreativeFieldValuesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_request = buildCreativeFieldValue(); - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeFieldValue.fromJson(json); - checkCreativeFieldValue(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_request = buildCreativeFieldValue(); - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeFieldValue.fromJson(json); - checkCreativeFieldValue(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId, arg_creativeFieldId).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeFieldsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_request = buildCreativeField(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeField.fromJson(json); - checkCreativeField(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3246(); - var arg_ids = buildUnnamed3247(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CreativeFieldsListResponse response) { - checkCreativeFieldsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_request = buildCreativeField(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeField.fromJson(json); - checkCreativeField(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_request = buildCreativeField(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeField.fromJson(json); - checkCreativeField(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeGroups/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_request = buildCreativeGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeGroup.fromJson(json); - checkCreativeGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3248(); - var arg_groupNumber = 42; - var arg_ids = buildUnnamed3249(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(core.int.parse(queryMap["groupNumber"].first), unittest.equals(arg_groupNumber)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, groupNumber: arg_groupNumber, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CreativeGroupsListResponse response) { - checkCreativeGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_request = buildCreativeGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeGroup.fromJson(json); - checkCreativeGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_request = buildCreativeGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeGroup.fromJson(json); - checkCreativeGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - }); - - - unittest.group("resource-CreativesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/creatives/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_request = buildCreative(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Creative.fromJson(json); - checkCreative(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_profileId = "foo"; - var arg_active = true; - var arg_advertiserId = "foo"; - var arg_archived = true; - var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed3250(); - var arg_creativeFieldIds = buildUnnamed3251(); - var arg_ids = buildUnnamed3252(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed3253(); - var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3254(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed3255(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campaignId)); - unittest.expect(queryMap["companionCreativeIds"], unittest.equals(arg_companionCreativeIds)); - unittest.expect(queryMap["creativeFieldIds"], unittest.equals(arg_creativeFieldIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["renderingIds"], unittest.equals(arg_renderingIds)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["studioCreativeId"].first, unittest.equals(arg_studioCreativeId)); - unittest.expect(queryMap["types"], unittest.equals(arg_types)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId, archived: arg_archived, campaignId: arg_campaignId, companionCreativeIds: arg_companionCreativeIds, creativeFieldIds: arg_creativeFieldIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, renderingIds: arg_renderingIds, searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, studioCreativeId: arg_studioCreativeId, types: arg_types).then(unittest.expectAsync(((api.CreativesListResponse response) { - checkCreativesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_request = buildCreative(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Creative.fromJson(json); - checkCreative(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_request = buildCreative(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Creative.fromJson(json); - checkCreative(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - }); - - - unittest.group("resource-DimensionValuesResourceApi", () { - unittest.test("method--query", () { - - var mock = new HttpServerMock(); - api.DimensionValuesResourceApi res = new api.DfareportingApi(mock).dimensionValues; - var arg_request = buildDimensionValueRequest(); - var arg_profileId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.DimensionValueRequest.fromJson(json); - checkDimensionValueRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/dimensionvalues/query", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/dimensionvalues/query")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDimensionValueList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.query(arg_request, arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DimensionValueList response) { - checkDimensionValueList(response); - }))); - }); - - }); - - - unittest.group("resource-DirectorySiteContactsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySiteContacts/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("/directorySiteContacts/")); - pathOffset += 23; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySiteContact()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySiteContact response) { - checkDirectorySiteContact(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; - var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed3256(); - var arg_ids = buildUnnamed3257(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySiteContacts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/directorySiteContacts")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySiteContactsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.DirectorySiteContactsListResponse response) { - checkDirectorySiteContactsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-DirectorySitesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).directorySites; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySites/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/directorySites/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySite response) { - checkDirectorySite(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).directorySites; - var arg_request = buildDirectorySite(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.DirectorySite.fromJson(json); - checkDirectorySite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/directorySites")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.DirectorySite response) { - checkDirectorySite(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).directorySites; - var arg_profileId = "foo"; - var arg_acceptsInStreamVideoPlacements = true; - var arg_acceptsInterstitialPlacements = true; - var arg_acceptsPublisherPaidPlacements = true; - var arg_active = true; - var arg_countryId = "foo"; - var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed3258(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_parentId = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/directorySites")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["acceptsInStreamVideoPlacements"].first, unittest.equals("$arg_acceptsInStreamVideoPlacements")); - unittest.expect(queryMap["acceptsInterstitialPlacements"].first, unittest.equals("$arg_acceptsInterstitialPlacements")); - unittest.expect(queryMap["acceptsPublisherPaidPlacements"].first, unittest.equals("$arg_acceptsPublisherPaidPlacements")); - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["countryId"].first, unittest.equals(arg_countryId)); - unittest.expect(queryMap["dfp_network_code"].first, unittest.equals(arg_dfpNetworkCode)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["parentId"].first, unittest.equals(arg_parentId)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySitesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStreamVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacements, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, active: arg_active, countryId: arg_countryId, dfpNetworkCode: arg_dfpNetworkCode, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, parentId: arg_parentId, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.DirectorySitesListResponse response) { - checkDirectorySitesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-EventTagsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/eventTags/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/eventTags/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_request = buildEventTag(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.EventTag.fromJson(json); - checkEventTag(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_profileId = "foo"; - var arg_adId = "foo"; - var arg_advertiserId = "foo"; - var arg_campaignId = "foo"; - var arg_definitionsOnly = true; - var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed3259(); - var arg_ids = buildUnnamed3260(); - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["adId"].first, unittest.equals(arg_adId)); - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campaignId)); - unittest.expect(queryMap["definitionsOnly"].first, unittest.equals("$arg_definitionsOnly")); - unittest.expect(queryMap["enabled"].first, unittest.equals("$arg_enabled")); - unittest.expect(queryMap["eventTagTypes"], unittest.equals(arg_eventTagTypes)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTagsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, adId: arg_adId, advertiserId: arg_advertiserId, campaignId: arg_campaignId, definitionsOnly: arg_definitionsOnly, enabled: arg_enabled, eventTagTypes: arg_eventTagTypes, ids: arg_ids, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.EventTagsListResponse response) { - checkEventTagsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_request = buildEventTag(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.EventTag.fromJson(json); - checkEventTag(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_request = buildEventTag(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.EventTag.fromJson(json); - checkEventTag(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - }); - - - unittest.group("resource-FilesResourceApi", () { - unittest.test("method--get", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.FilesResourceApi res = new api.DfareportingApi(mock).files; - var arg_reportId = "foo"; - var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("reports/")); - pathOffset += 8; - index = path.indexOf("/files/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/files/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_fileId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File response) { - checkFile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FilesResourceApi res = new api.DfareportingApi(mock).files; - var arg_profileId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_scope = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/files", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/files")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFileList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageToken, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.FileList response) { - checkFileList(response); - }))); - }); - - }); - - - unittest.group("resource-FloodlightActivitiesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/floodlightActivities/")); - pathOffset += 22; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--generatetag", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_floodlightActivityId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities/generatetag", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.equals("/floodlightActivities/generatetag")); - pathOffset += 33; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals(arg_floodlightActivityId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivitiesGenerateTagResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.generatetag(arg_profileId, floodlightActivityId: arg_floodlightActivityId).then(unittest.expectAsync(((api.FloodlightActivitiesGenerateTagResponse response) { - checkFloodlightActivitiesGenerateTagResponse(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/floodlightActivities/")); - pathOffset += 22; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_request = buildFloodlightActivity(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivity.fromJson(json); - checkFloodlightActivity(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed3261(); - var arg_floodlightActivityGroupName = "foo"; - var arg_floodlightActivityGroupTagString = "foo"; - var arg_floodlightActivityGroupType = "foo"; - var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed3262(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_tagString = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["floodlightActivityGroupIds"], unittest.equals(arg_floodlightActivityGroupIds)); - unittest.expect(queryMap["floodlightActivityGroupName"].first, unittest.equals(arg_floodlightActivityGroupName)); - unittest.expect(queryMap["floodlightActivityGroupTagString"].first, unittest.equals(arg_floodlightActivityGroupTagString)); - unittest.expect(queryMap["floodlightActivityGroupType"].first, unittest.equals(arg_floodlightActivityGroupType)); - unittest.expect(queryMap["floodlightConfigurationId"].first, unittest.equals(arg_floodlightConfigurationId)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["tagString"].first, unittest.equals(arg_tagString)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivitiesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightActivityGroupIds: arg_floodlightActivityGroupIds, floodlightActivityGroupName: arg_floodlightActivityGroupName, floodlightActivityGroupTagString: arg_floodlightActivityGroupTagString, floodlightActivityGroupType: arg_floodlightActivityGroupType, floodlightConfigurationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, tagString: arg_tagString).then(unittest.expectAsync(((api.FloodlightActivitiesListResponse response) { - checkFloodlightActivitiesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_request = buildFloodlightActivity(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivity.fromJson(json); - checkFloodlightActivity(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_request = buildFloodlightActivity(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivity.fromJson(json); - checkFloodlightActivity(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - }); - - - unittest.group("resource-FloodlightActivityGroupsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/floodlightActivityGroups/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/floodlightActivityGroups/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_request = buildFloodlightActivityGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivityGroup.fromJson(json); - checkFloodlightActivityGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed3263(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_type = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["floodlightConfigurationId"].first, unittest.equals(arg_floodlightConfigurationId)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightConfigurationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, type: arg_type).then(unittest.expectAsync(((api.FloodlightActivityGroupsListResponse response) { - checkFloodlightActivityGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_request = buildFloodlightActivityGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivityGroup.fromJson(json); - checkFloodlightActivityGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_request = buildFloodlightActivityGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivityGroup.fromJson(json); - checkFloodlightActivityGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - }); - - - unittest.group("resource-FloodlightConfigurationsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/floodlightConfigurations/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfiguration()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightConfiguration response) { - checkFloodlightConfiguration(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed3264(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightConfigurations")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfigurationsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.FloodlightConfigurationsListResponse response) { - checkFloodlightConfigurationsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_request = buildFloodlightConfiguration(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightConfiguration.fromJson(json); - checkFloodlightConfiguration(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightConfigurations")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfiguration()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightConfiguration response) { - checkFloodlightConfiguration(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_request = buildFloodlightConfiguration(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightConfiguration.fromJson(json); - checkFloodlightConfiguration(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightConfigurations")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfiguration()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightConfiguration response) { - checkFloodlightConfiguration(response); - }))); - }); - - }); - - - unittest.group("resource-InventoryItemsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/inventoryItems/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/inventoryItems/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildInventoryItem()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.InventoryItem response) { - checkInventoryItem(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_ids = buildUnnamed3265(); - var arg_inPlan = true; - var arg_maxResults = 42; - var arg_orderId = buildUnnamed3266(); - var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed3267(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/inventoryItems", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/inventoryItems")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["inPlan"].first, unittest.equals("$arg_inPlan")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildInventoryItemsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_projectId, ids: arg_ids, inPlan: arg_inPlan, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.InventoryItemsListResponse response) { - checkInventoryItemsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-LandingPagesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/landingPages/")); - pathOffset += 14; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/landingPages/")); - pathOffset += 14; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_request = buildLandingPage(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.LandingPage.fromJson(json); - checkLandingPage(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPagesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.LandingPagesListResponse response) { - checkLandingPagesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_request = buildLandingPage(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.LandingPage.fromJson(json); - checkLandingPage(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_request = buildLandingPage(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.LandingPage.fromJson(json); - checkLandingPage(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - }); - - - unittest.group("resource-MetrosResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.MetrosResourceApi res = new api.DfareportingApi(mock).metros; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/metros", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/metros")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildMetrosListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse response) { - checkMetrosListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-MobileCarriersResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCarriers; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/mobileCarriers/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/mobileCarriers/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildMobileCarrier()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.MobileCarrier response) { - checkMobileCarrier(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCarriers; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/mobileCarriers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/mobileCarriers")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildMobileCarriersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersListResponse response) { - checkMobileCarriersListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OperatingSystemVersionsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock).operatingSystemVersions; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystemVersions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/operatingSystemVersions/")); - pathOffset += 25; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystemVersion()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.OperatingSystemVersion response) { - checkOperatingSystemVersion(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock).operatingSystemVersions; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystemVersions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/operatingSystemVersions")); - pathOffset += 24; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVersionsListResponse response) { - checkOperatingSystemVersionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OperatingSystemsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operatingSystems; - var arg_profileId = "foo"; - var arg_dartId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystems/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/operatingSystems/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_dartId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystem()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.OperatingSystem response) { - checkOperatingSystem(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operatingSystems; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystems", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/operatingSystems")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystemsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsListResponse response) { - checkOperatingSystemsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OrderDocumentsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDocuments; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orderDocuments/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/orderDocuments/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrderDocument()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.OrderDocument response) { - checkOrderDocument(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDocuments; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_approved = true; - var arg_ids = buildUnnamed3268(); - var arg_maxResults = 42; - var arg_orderId = buildUnnamed3269(); - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3270(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orderDocuments", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/orderDocuments")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["approved"].first, unittest.equals("$arg_approved")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrderDocumentsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_projectId, approved: arg_approved, ids: arg_ids, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, searchString: arg_searchString, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.OrderDocumentsListResponse response) { - checkOrderDocumentsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OrdersResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orders/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/orders/")); - pathOffset += 8; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrder()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.Order response) { - checkOrder(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_ids = buildUnnamed3271(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3272(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orders", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/orders")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrdersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_projectId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.OrdersListResponse response) { - checkOrdersListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-PlacementGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/placementGroups/")); - pathOffset += 17; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_request = buildPlacementGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementGroup.fromJson(json); - checkPlacementGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3273(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed3274(); - var arg_contentCategoryIds = buildUnnamed3275(); - var arg_directorySiteIds = buildUnnamed3276(); - var arg_ids = buildUnnamed3277(); - var arg_maxEndDate = "foo"; - var arg_maxResults = 42; - var arg_maxStartDate = "foo"; - var arg_minEndDate = "foo"; - var arg_minStartDate = "foo"; - var arg_pageToken = "foo"; - var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed3278(); - var arg_pricingTypes = buildUnnamed3279(); - var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed3280(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds)); - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxStartDate)); - unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEndDate)); - unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minStartDate)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["placementGroupType"].first, unittest.equals(arg_placementGroupType)); - unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds)); - unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxEndDate: arg_maxEndDate, maxResults: arg_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_minEndDate, minStartDate: arg_minStartDate, pageToken: arg_pageToken, placementGroupType: arg_placementGroupType, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementGroupsListResponse response) { - checkPlacementGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_request = buildPlacementGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementGroup.fromJson(json); - checkPlacementGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_request = buildPlacementGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementGroup.fromJson(json); - checkPlacementGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - }); - - - unittest.group("resource-PlacementStrategiesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_request = buildPlacementStrategy(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementStrategy.fromJson(json); - checkPlacementStrategy(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed3281(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategiesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListResponse response) { - checkPlacementStrategiesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_request = buildPlacementStrategy(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementStrategy.fromJson(json); - checkPlacementStrategy(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_request = buildPlacementStrategy(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementStrategy.fromJson(json); - checkPlacementStrategy(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - }); - - - unittest.group("resource-PlacementsResourceApi", () { - unittest.test("method--generatetags", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed3282(); - var arg_tagFormats = buildUnnamed3283(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements/generatetags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/placements/generatetags")); - pathOffset += 24; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campaignId)); - unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementIds)); - unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds: arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.PlacementsGenerateTagsResponse response) { - checkPlacementsGenerateTagsResponse(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/placements/")); - pathOffset += 12; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_request = buildPlacement(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Placement.fromJson(json); - checkPlacement(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3284(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed3285(); - var arg_compatibilities = buildUnnamed3286(); - var arg_contentCategoryIds = buildUnnamed3287(); - var arg_directorySiteIds = buildUnnamed3288(); - var arg_groupIds = buildUnnamed3289(); - var arg_ids = buildUnnamed3290(); - var arg_maxEndDate = "foo"; - var arg_maxResults = 42; - var arg_maxStartDate = "foo"; - var arg_minEndDate = "foo"; - var arg_minStartDate = "foo"; - var arg_pageToken = "foo"; - var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed3291(); - var arg_pricingTypes = buildUnnamed3292(); - var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed3293(); - var arg_sizeIds = buildUnnamed3294(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["compatibilities"], unittest.equals(arg_compatibilities)); - unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds)); - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxStartDate)); - unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEndDate)); - unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minStartDate)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["paymentSource"].first, unittest.equals(arg_paymentSource)); - unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds)); - unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); - unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, groupIds: arg_groupIds, ids: arg_ids, maxEndDate: arg_maxEndDate, maxResults: arg_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_minEndDate, minStartDate: arg_minStartDate, pageToken: arg_pageToken, paymentSource: arg_paymentSource, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementsListResponse response) { - checkPlacementsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_request = buildPlacement(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Placement.fromJson(json); - checkPlacement(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_request = buildPlacement(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Placement.fromJson(json); - checkPlacement(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - }); - - - unittest.group("resource-PlatformTypesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformTypes; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/platformTypes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/platformTypes/")); - pathOffset += 15; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlatformType()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlatformType response) { - checkPlatformType(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformTypes; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/platformTypes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/platformTypes")); - pathOffset += 14; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlatformTypesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListResponse response) { - checkPlatformTypesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-PostalCodesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes; - var arg_profileId = "foo"; - var arg_code = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/postalCodes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/postalCodes/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_code")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPostalCode()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_code).then(unittest.expectAsync(((api.PostalCode response) { - checkPostalCode(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/postalCodes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/postalCodes")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPostalCodesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListResponse response) { - checkPostalCodesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ProjectsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildProject()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Project response) { - checkProject(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3295(); - var arg_ids = buildUnnamed3296(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/projects")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildProjectsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ProjectsListResponse response) { - checkProjectsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-RegionsResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.RegionsResourceApi res = new api.DfareportingApi(mock).regions; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/regions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/regions")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRegionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListResponse response) { - checkRegionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-RemarketingListSharesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares; - var arg_profileId = "foo"; - var arg_remarketingListId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingListShares/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("/remarketingListShares/")); - pathOffset += 23; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_remarketingListId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListShare()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((api.RemarketingListShare response) { - checkRemarketingListShare(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares; - var arg_request = buildRemarketingListShare(); - var arg_profileId = "foo"; - var arg_remarketingListId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingListShare.fromJson(json); - checkRemarketingListShare(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingListShares", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/remarketingListShares")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["remarketingListId"].first, unittest.equals(arg_remarketingListId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListShare()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((api.RemarketingListShare response) { - checkRemarketingListShare(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares; - var arg_request = buildRemarketingListShare(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingListShare.fromJson(json); - checkRemarketingListShare(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingListShares", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/remarketingListShares")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListShare()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingListShare response) { - checkRemarketingListShare(response); - }))); - }); - - }); - - - unittest.group("resource-RemarketingListsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/remarketingLists/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_request = buildRemarketingList(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingList.fromJson(json); - checkRemarketingList(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_active = true; - var arg_floodlightActivityId = "foo"; - var arg_maxResults = 42; - var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals(arg_floodlightActivityId)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_advertiserId, active: arg_active, floodlightActivityId: arg_floodlightActivityId, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.RemarketingListsListResponse response) { - checkRemarketingListsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_request = buildRemarketingList(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingList.fromJson(json); - checkRemarketingList(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_request = buildRemarketingList(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingList.fromJson(json); - checkRemarketingList(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - }); - - - unittest.group("resource-ReportsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_reportId).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_request = buildReport(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/reports")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_scope = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/reports")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReportList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageToken, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ReportList response) { - checkReportList(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_request = buildReport(); - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - unittest.test("method--run", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - var arg_synchronous = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - index = path.indexOf("/run", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/run")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["synchronous"].first, unittest.equals("$arg_synchronous")); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.run(arg_profileId, arg_reportId, synchronous: arg_synchronous).then(unittest.expectAsync(((api.File response) { - checkFile(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_request = buildReport(); - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - }); - - - unittest.group("resource-ReportsCompatibleFieldsResourceApi", () { - unittest.test("method--query", () { - - var mock = new HttpServerMock(); - api.ReportsCompatibleFieldsResourceApi res = new api.DfareportingApi(mock).reports.compatibleFields; - var arg_request = buildReport(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/compatiblefields/query", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.equals("/reports/compatiblefields/query")); - pathOffset += 31; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCompatibleFields()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.query(arg_request, arg_profileId).then(unittest.expectAsync(((api.CompatibleFields response) { - checkCompatibleFields(response); - }))); - }); - - }); - - - unittest.group("resource-ReportsFilesResourceApi", () { - unittest.test("method--get", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.files; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - index = path.indexOf("/files/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/files/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_fileId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File response) { - checkFile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.files; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - index = path.indexOf("/files", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/files")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFileList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_reportId, maxResults: arg_maxResults, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.FileList response) { - checkFileList(response); - }))); - }); - - }); - - - unittest.group("resource-SitesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/sites/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_request = buildSite(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Site.fromJson(json); - checkSite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_profileId = "foo"; - var arg_acceptsInStreamVideoPlacements = true; - var arg_acceptsInterstitialPlacements = true; - var arg_acceptsPublisherPaidPlacements = true; - var arg_adWordsSite = true; - var arg_approved = true; - var arg_campaignIds = buildUnnamed3297(); - var arg_directorySiteIds = buildUnnamed3298(); - var arg_ids = buildUnnamed3299(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - var arg_unmappedSite = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["acceptsInStreamVideoPlacements"].first, unittest.equals("$arg_acceptsInStreamVideoPlacements")); - unittest.expect(queryMap["acceptsInterstitialPlacements"].first, unittest.equals("$arg_acceptsInterstitialPlacements")); - unittest.expect(queryMap["acceptsPublisherPaidPlacements"].first, unittest.equals("$arg_acceptsPublisherPaidPlacements")); - unittest.expect(queryMap["adWordsSite"].first, unittest.equals("$arg_adWordsSite")); - unittest.expect(queryMap["approved"].first, unittest.equals("$arg_approved")); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - unittest.expect(queryMap["unmappedSite"].first, unittest.equals("$arg_unmappedSite")); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSitesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStreamVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacements, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, adWordsSite: arg_adWordsSite, approved: arg_approved, campaignIds: arg_campaignIds, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, unmappedSite: arg_unmappedSite).then(unittest.expectAsync(((api.SitesListResponse response) { - checkSitesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_request = buildSite(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Site.fromJson(json); - checkSite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_request = buildSite(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Site.fromJson(json); - checkSite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - }); - - - unittest.group("resource-SizesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sizes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/sizes/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSize()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Size response) { - checkSize(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; - var arg_request = buildSize(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Size.fromJson(json); - checkSize(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sizes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sizes")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSize()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Size response) { - checkSize(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; - var arg_profileId = "foo"; - var arg_height = 42; - var arg_iabStandard = true; - var arg_ids = buildUnnamed3300(); - var arg_width = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sizes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sizes")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["height"].first), unittest.equals(arg_height)); - unittest.expect(queryMap["iabStandard"].first, unittest.equals("$arg_iabStandard")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["width"].first), unittest.equals(arg_width)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSizesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, height: arg_height, iabStandard: arg_iabStandard, ids: arg_ids, width: arg_width).then(unittest.expectAsync(((api.SizesListResponse response) { - checkSizesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-SubaccountsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/subaccounts/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_request = buildSubaccount(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Subaccount.fromJson(json); - checkSubaccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed3301(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccountsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.SubaccountsListResponse response) { - checkSubaccountsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_request = buildSubaccount(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Subaccount.fromJson(json); - checkSubaccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_request = buildSubaccount(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Subaccount.fromJson(json); - checkSubaccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - }); - - - unittest.group("resource-TargetableRemarketingListsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mock).targetableRemarketingLists; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/targetableRemarketingLists/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.equals("/targetableRemarketingLists/")); - pathOffset += 28; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildTargetableRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetableRemarketingList response) { - checkTargetableRemarketingList(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mock).targetableRemarketingLists; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_active = true; - var arg_maxResults = 42; - var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/targetableRemarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.equals("/targetableRemarketingLists")); - pathOffset += 27; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildTargetableRemarketingListsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_advertiserId, active: arg_active, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.TargetableRemarketingListsListResponse response) { - checkTargetableRemarketingListsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-UserProfilesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfiles; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId).then(unittest.expectAsync(((api.UserProfile response) { - checkUserProfile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfiles; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("userprofiles")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserProfileList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list().then(unittest.expectAsync(((api.UserProfileList response) { - checkUserProfileList(response); - }))); - }); - - }); - - - unittest.group("resource-UserRolePermissionGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock).userRolePermissionGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissionGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/userRolePermissionGroups/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermissionGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePermissionGroup response) { - checkUserRolePermissionGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock).userRolePermissionGroups; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissionGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/userRolePermissionGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermissionGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.UserRolePermissionGroupsListResponse response) { - checkUserRolePermissionGroupsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-UserRolePermissionsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/userRolePermissions/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermission()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePermission response) { - checkUserRolePermission(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed3302(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/userRolePermissions")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermissionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.UserRolePermissionsListResponse response) { - checkUserRolePermissionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-UserRolesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/userRoles/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/userRoles/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_request = buildUserRole(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.UserRole.fromJson(json); - checkUserRole(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_profileId = "foo"; - var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed3303(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["accountUserRoleOnly"].first, unittest.equals("$arg_accountUserRoleOnly")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, accountUserRoleOnly: arg_accountUserRoleOnly, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.UserRolesListResponse response) { - checkUserRolesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_request = buildUserRole(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.UserRole.fromJson(json); - checkUserRole(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_request = buildUserRole(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.UserRole.fromJson(json); - checkUserRole(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.2/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - }); - - -} -
diff --git a/generated/googleapis/test/dfareporting/v2_4_test.dart b/generated/googleapis/test/dfareporting/v2_4_test.dart index e1eee00..8a4a768 100644 --- a/generated/googleapis/test/dfareporting/v2_4_test.dart +++ b/generated/googleapis/test/dfareporting/v2_4_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed182() { +buildUnnamed197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed182(core.List<core.String> o) { +checkUnnamed197(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed183() { +buildUnnamed198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed183(core.List<core.String> o) { +checkUnnamed198(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed182(); + o.accountPermissionIds = buildUnnamed197(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed183(); + o.availablePermissionIds = buildUnnamed198(); o.comscoreVceEnabled = true; o.countryId = "foo"; o.currencyId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed182(o.accountPermissionIds); + checkUnnamed197(o.accountPermissionIds); unittest.expect(o.accountProfile, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed183(o.availablePermissionIds); + checkUnnamed198(o.availablePermissionIds); unittest.expect(o.comscoreVceEnabled, unittest.isTrue); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed184() { +buildUnnamed199() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed184(core.List<core.String> o) { +checkUnnamed199(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed184(); + o.accountProfiles = buildUnnamed199(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed184(o.accountProfiles); + checkUnnamed199(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -224,14 +224,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed185() { +buildUnnamed200() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed185(core.List<api.AccountPermissionGroup> o) { +checkUnnamed200(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -242,7 +242,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed185(); + o.accountPermissionGroups = buildUnnamed200(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed185(o.accountPermissionGroups); + checkUnnamed200(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed186() { +buildUnnamed201() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed186(core.List<api.AccountPermission> o) { +checkUnnamed201(core.List<api.AccountPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermission(o[0]); checkAccountPermission(o[1]); @@ -276,7 +276,7 @@ var o = new api.AccountPermissionsListResponse(); buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed186(); + o.accountPermissions = buildUnnamed201(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed186(o.accountPermissions); + checkUnnamed201(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed187() { +buildUnnamed202() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed187(core.List<api.AccountUserProfile> o) { +checkUnnamed202(core.List<api.AccountUserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUserProfile(o[0]); checkAccountUserProfile(o[1]); @@ -359,7 +359,7 @@ var o = new api.AccountUserProfilesListResponse(); buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed187(); + o.accountUserProfiles = buildUnnamed202(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed187(o.accountUserProfiles); + checkUnnamed202(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed188() { +buildUnnamed203() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed188(core.List<api.Account> o) { +checkUnnamed203(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -395,7 +395,7 @@ var o = new api.AccountsListResponse(); buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed188(); + o.accounts = buildUnnamed203(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed188(o.accounts); + checkUnnamed203(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed189() { +buildUnnamed204() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed189(core.List<api.DimensionValue> o) { +checkUnnamed204(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed190() { +buildUnnamed205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed190(core.List<core.String> o) { +checkUnnamed205(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed189(); + o.filters = buildUnnamed204(); o.kind = "foo"; - o.metricNames = buildUnnamed190(); + o.metricNames = buildUnnamed205(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed189(o.filters); + checkUnnamed204(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed190(o.metricNames); + checkUnnamed205(o.metricNames); } buildCounterActivities--; } -buildUnnamed191() { +buildUnnamed206() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed191(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed206(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed192() { +buildUnnamed207() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed192(core.List<api.EventTagOverride> o) { +checkUnnamed207(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed193() { +buildUnnamed208() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed193(core.List<api.PlacementAssignment> o) { +checkUnnamed208(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,14 +519,14 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed191(); + o.creativeGroupAssignments = buildUnnamed206(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed192(); + o.eventTagOverrides = buildUnnamed207(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -534,7 +534,7 @@ o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed193(); + o.placementAssignments = buildUnnamed208(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -564,14 +564,14 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed191(o.creativeGroupAssignments); + checkUnnamed206(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); checkDeliverySchedule(o.deliverySchedule); unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed192(o.eventTagOverrides); + checkUnnamed207(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -579,7 +579,7 @@ unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed193(o.placementAssignments); + checkUnnamed208(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -625,14 +625,14 @@ buildCounterAdSlot--; } -buildUnnamed194() { +buildUnnamed209() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed194(core.List<api.Ad> o) { +checkUnnamed209(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -643,7 +643,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed194(); + o.ads = buildUnnamed209(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +654,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed194(o.ads); + checkUnnamed209(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +733,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed195() { +buildUnnamed210() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed195(core.List<api.AdvertiserGroup> o) { +checkUnnamed210(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -751,7 +751,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed195(); + o.advertiserGroups = buildUnnamed210(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +762,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed195(o.advertiserGroups); + checkUnnamed210(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed196() { +buildUnnamed211() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed196(core.List<api.Advertiser> o) { +checkUnnamed211(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -787,7 +787,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed196(); + o.advertisers = buildUnnamed211(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +798,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed196(o.advertisers); + checkUnnamed211(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +828,14 @@ buildCounterAudienceSegment--; } -buildUnnamed197() { +buildUnnamed212() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed197(core.List<api.AudienceSegment> o) { +checkUnnamed212(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -846,7 +846,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed197(); + o.audienceSegments = buildUnnamed212(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +857,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed197(o.audienceSegments); + checkUnnamed212(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +893,14 @@ buildCounterBrowser--; } -buildUnnamed198() { +buildUnnamed213() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed198(core.List<api.Browser> o) { +checkUnnamed213(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -911,7 +911,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed198(); + o.browsers = buildUnnamed213(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +921,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed198(o.browsers); + checkUnnamed213(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed199() { +buildUnnamed214() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed199(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed214(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed200() { +buildUnnamed215() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed200(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed215(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed201() { +buildUnnamed216() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed201(core.List<core.String> o) { +checkUnnamed216(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed202() { +buildUnnamed217() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed202(core.List<api.EventTagOverride> o) { +checkUnnamed217(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed203() { +buildUnnamed218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed203(core.List<core.String> o) { +checkUnnamed218(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -998,22 +998,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed199(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed214(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed200(); + o.audienceSegmentGroups = buildUnnamed215(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed201(); + o.creativeGroupIds = buildUnnamed216(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed202(); + o.eventTagOverrides = buildUnnamed217(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1024,7 +1024,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed203(); + o.traffickerEmails = buildUnnamed218(); } buildCounterCampaign--; return o; @@ -1034,22 +1034,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed199(o.additionalCreativeOptimizationConfigurations); + checkUnnamed214(o.additionalCreativeOptimizationConfigurations); unittest.expect(o.advertiserGroupId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed200(o.audienceSegmentGroups); + checkUnnamed215(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.comscoreVceEnabled, unittest.isTrue); checkLastModifiedInfo(o.createInfo); - checkUnnamed201(o.creativeGroupIds); + checkUnnamed216(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed202(o.eventTagOverrides); + checkUnnamed217(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1060,7 +1060,7 @@ unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed203(o.traffickerEmails); + checkUnnamed218(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1086,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed204() { +buildUnnamed219() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed204(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed219(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1104,7 +1104,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed204(); + o.campaignCreativeAssociations = buildUnnamed219(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1115,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed204(o.campaignCreativeAssociations); + checkUnnamed219(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed205() { +buildUnnamed220() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed205(core.List<api.Campaign> o) { +checkUnnamed220(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1140,7 +1140,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed205(); + o.campaigns = buildUnnamed220(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1151,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed205(o.campaigns); + checkUnnamed220(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1203,14 @@ buildCounterChangeLog--; } -buildUnnamed206() { +buildUnnamed221() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed206(core.List<api.ChangeLog> o) { +checkUnnamed221(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1221,7 +1221,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed206(); + o.changeLogs = buildUnnamed221(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1232,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed206(o.changeLogs); + checkUnnamed221(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed207() { +buildUnnamed222() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed207(core.List<api.City> o) { +checkUnnamed222(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1257,7 +1257,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed207(); + o.cities = buildUnnamed222(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1267,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed207(o.cities); + checkUnnamed222(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1450,14 +1450,14 @@ buildCounterConnectionType--; } -buildUnnamed208() { +buildUnnamed223() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed208(core.List<api.ConnectionType> o) { +checkUnnamed223(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1468,7 +1468,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed208(); + o.connectionTypes = buildUnnamed223(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1478,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed208(o.connectionTypes); + checkUnnamed223(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed209() { +buildUnnamed224() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed209(core.List<api.ContentCategory> o) { +checkUnnamed224(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1502,7 +1502,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed209(); + o.contentCategories = buildUnnamed224(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1513,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed209(o.contentCategories); + checkUnnamed224(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1545,14 @@ buildCounterContentCategory--; } -buildUnnamed210() { +buildUnnamed225() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed210(core.List<api.Country> o) { +checkUnnamed225(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1563,7 +1563,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed210(); + o.countries = buildUnnamed225(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1573,7 +1573,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed210(o.countries); + checkUnnamed225(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1606,157 +1606,157 @@ buildCounterCountry--; } -buildUnnamed211() { +buildUnnamed226() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed211(core.List<core.String> o) { +checkUnnamed226(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed212() { +buildUnnamed227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed212(core.List<core.String> o) { +checkUnnamed227(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed213() { +buildUnnamed228() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed213(core.List<api.ClickTag> o) { +checkUnnamed228(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed214() { +buildUnnamed229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed214(core.List<core.String> o) { +checkUnnamed229(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed215() { +buildUnnamed230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed215(core.List<core.String> o) { +checkUnnamed230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed216() { +buildUnnamed231() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed216(core.List<api.CreativeCustomEvent> o) { +checkUnnamed231(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed217() { +buildUnnamed232() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed217(core.List<api.CreativeAsset> o) { +checkUnnamed232(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed218() { +buildUnnamed233() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed218(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed233(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed219() { +buildUnnamed234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed219(core.List<core.String> o) { +checkUnnamed234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed220() { +buildUnnamed235() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed220(core.List<api.CreativeCustomEvent> o) { +checkUnnamed235(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed221() { +buildUnnamed236() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed221(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed236(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed222() { +buildUnnamed237() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed222(core.List<api.CreativeCustomEvent> o) { +checkUnnamed237(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1770,7 +1770,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed211(); + o.adTagKeys = buildUnnamed226(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1780,19 +1780,19 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed212(); + o.backupImageFeatures = buildUnnamed227(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed213(); + o.clickTags = buildUnnamed228(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed214(); - o.compatibility = buildUnnamed215(); + o.companionCreatives = buildUnnamed229(); + o.compatibility = buildUnnamed230(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed216(); - o.creativeAssets = buildUnnamed217(); - o.creativeFieldAssignments = buildUnnamed218(); - o.customKeyValues = buildUnnamed219(); - o.exitCustomEvents = buildUnnamed220(); + o.counterCustomEvents = buildUnnamed231(); + o.creativeAssets = buildUnnamed232(); + o.creativeFieldAssignments = buildUnnamed233(); + o.customKeyValues = buildUnnamed234(); + o.exitCustomEvents = buildUnnamed235(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -1818,8 +1818,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed221(); - o.timerCustomEvents = buildUnnamed222(); + o.thirdPartyUrls = buildUnnamed236(); + o.timerCustomEvents = buildUnnamed237(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -1836,7 +1836,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed211(o.adTagKeys); + checkUnnamed226(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -1846,19 +1846,19 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed212(o.backupImageFeatures); + checkUnnamed227(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed213(o.clickTags); + checkUnnamed228(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed214(o.companionCreatives); - checkUnnamed215(o.compatibility); + checkUnnamed229(o.companionCreatives); + checkUnnamed230(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed216(o.counterCustomEvents); - checkUnnamed217(o.creativeAssets); - checkUnnamed218(o.creativeFieldAssignments); - checkUnnamed219(o.customKeyValues); - checkUnnamed220(o.exitCustomEvents); + checkUnnamed231(o.counterCustomEvents); + checkUnnamed232(o.creativeAssets); + checkUnnamed233(o.creativeFieldAssignments); + checkUnnamed234(o.customKeyValues); + checkUnnamed235(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -1884,8 +1884,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed221(o.thirdPartyUrls); - checkUnnamed222(o.timerCustomEvents); + checkUnnamed236(o.thirdPartyUrls); + checkUnnamed237(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -1895,14 +1895,14 @@ buildCounterCreative--; } -buildUnnamed223() { +buildUnnamed238() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed223(core.List<core.String> o) { +checkUnnamed238(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1923,7 +1923,7 @@ o.childAssetType = "foo"; o.collapsedSize = buildSize(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed223(); + o.detectedFeatures = buildUnnamed238(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -1973,7 +1973,7 @@ unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed223(o.detectedFeatures); + checkUnnamed238(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2030,40 +2030,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed224() { +buildUnnamed239() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed224(core.List<api.ClickTag> o) { +checkUnnamed239(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed225() { +buildUnnamed240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed225(core.List<core.String> o) { +checkUnnamed240(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed226() { +buildUnnamed241() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed226(core.List<core.String> o) { +checkUnnamed241(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2075,10 +2075,10 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed224(); - o.detectedFeatures = buildUnnamed225(); + o.clickTags = buildUnnamed239(); + o.detectedFeatures = buildUnnamed240(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed226(); + o.warnedValidationRules = buildUnnamed241(); } buildCounterCreativeAssetMetadata--; return o; @@ -2088,48 +2088,48 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed224(o.clickTags); - checkUnnamed225(o.detectedFeatures); + checkUnnamed239(o.clickTags); + checkUnnamed240(o.detectedFeatures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed226(o.warnedValidationRules); + checkUnnamed241(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed227() { +buildUnnamed242() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed227(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed242(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed228() { +buildUnnamed243() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed228(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed243(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed229() { +buildUnnamed244() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed229(core.List<api.RichMediaExitOverride> o) { +checkUnnamed244(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2143,12 +2143,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed227(); - o.creativeGroupAssignments = buildUnnamed228(); + o.companionCreativeOverrides = buildUnnamed242(); + o.creativeGroupAssignments = buildUnnamed243(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed229(); + o.richMediaExitOverrides = buildUnnamed244(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2164,12 +2164,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed227(o.companionCreativeOverrides); - checkUnnamed228(o.creativeGroupAssignments); + checkUnnamed242(o.companionCreativeOverrides); + checkUnnamed243(o.creativeGroupAssignments); unittest.expect(o.creativeId, unittest.equals('foo')); checkDimensionValue(o.creativeIdDimensionValue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed229(o.richMediaExitOverrides); + checkUnnamed244(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2290,14 +2290,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed230() { +buildUnnamed245() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed230(core.List<api.CreativeFieldValue> o) { +checkUnnamed245(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2308,7 +2308,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed230(); + o.creativeFieldValues = buildUnnamed245(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2319,21 +2319,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed230(o.creativeFieldValues); + checkUnnamed245(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed231() { +buildUnnamed246() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed231(core.List<api.CreativeField> o) { +checkUnnamed246(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2344,7 +2344,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed231(); + o.creativeFields = buildUnnamed246(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2355,7 +2355,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed231(o.creativeFields); + checkUnnamed246(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2416,14 +2416,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed232() { +buildUnnamed247() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed232(core.List<api.CreativeGroup> o) { +checkUnnamed247(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2434,7 +2434,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed232(); + o.creativeGroups = buildUnnamed247(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2445,21 +2445,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed232(o.creativeGroups); + checkUnnamed247(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed233() { +buildUnnamed248() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed233(core.List<api.OptimizationActivity> o) { +checkUnnamed248(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2472,7 +2472,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed233(); + o.optimizationActivitys = buildUnnamed248(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2484,20 +2484,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed233(o.optimizationActivitys); + checkUnnamed248(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed234() { +buildUnnamed249() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed234(core.List<api.CreativeAssignment> o) { +checkUnnamed249(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2508,7 +2508,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed234(); + o.creativeAssignments = buildUnnamed249(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2520,7 +2520,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed234(o.creativeAssignments); + checkUnnamed249(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2549,14 +2549,14 @@ buildCounterCreativeSettings--; } -buildUnnamed235() { +buildUnnamed250() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed235(core.List<api.Creative> o) { +checkUnnamed250(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2567,7 +2567,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed235(); + o.creatives = buildUnnamed250(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2578,60 +2578,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed235(o.creatives); + checkUnnamed250(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed236() { +buildUnnamed251() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed236(core.List<api.Dimension> o) { +checkUnnamed251(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed237() { +buildUnnamed252() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed237(core.List<api.Dimension> o) { +checkUnnamed252(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed238() { +buildUnnamed253() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed238(core.List<api.Metric> o) { +checkUnnamed253(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed239() { +buildUnnamed254() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed239(core.List<api.Metric> o) { +checkUnnamed254(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2642,11 +2642,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed236(); - o.dimensionFilters = buildUnnamed237(); + o.breakdown = buildUnnamed251(); + o.dimensionFilters = buildUnnamed252(); o.kind = "foo"; - o.metrics = buildUnnamed238(); - o.overlapMetrics = buildUnnamed239(); + o.metrics = buildUnnamed253(); + o.overlapMetrics = buildUnnamed254(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2655,23 +2655,23 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed236(o.breakdown); - checkUnnamed237(o.dimensionFilters); + checkUnnamed251(o.breakdown); + checkUnnamed252(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed238(o.metrics); - checkUnnamed239(o.overlapMetrics); + checkUnnamed253(o.metrics); + checkUnnamed254(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } -buildUnnamed240() { +buildUnnamed255() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed240(core.List<api.DimensionValue> o) { +checkUnnamed255(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2682,7 +2682,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed240(); + o.filteredEventIds = buildUnnamed255(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2692,7 +2692,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed240(o.filteredEventIds); + checkUnnamed255(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2723,27 +2723,27 @@ buildCounterDateRange--; } -buildUnnamed241() { +buildUnnamed256() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed241(core.List<core.String> o) { +checkUnnamed256(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed242() { +buildUnnamed257() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed242(core.List<core.int> o) { +checkUnnamed257(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -2754,8 +2754,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed241(); - o.hoursOfDay = buildUnnamed242(); + o.daysOfWeek = buildUnnamed256(); + o.hoursOfDay = buildUnnamed257(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2765,8 +2765,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed241(o.daysOfWeek); - checkUnnamed242(o.hoursOfDay); + checkUnnamed256(o.daysOfWeek); + checkUnnamed257(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -2918,14 +2918,14 @@ buildCounterDimensionValue--; } -buildUnnamed243() { +buildUnnamed258() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed243(core.List<api.DimensionValue> o) { +checkUnnamed258(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2937,7 +2937,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed243(); + o.items = buildUnnamed258(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2949,21 +2949,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed243(o.items); + checkUnnamed258(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed244() { +buildUnnamed259() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed244(core.List<api.DimensionFilter> o) { +checkUnnamed259(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -2976,7 +2976,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed244(); + o.filters = buildUnnamed259(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -2989,47 +2989,47 @@ if (buildCounterDimensionValueRequest < 3) { unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed244(o.filters); + checkUnnamed259(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed245() { +buildUnnamed260() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed245(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed260(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed246() { +buildUnnamed261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed246(core.List<core.String> o) { +checkUnnamed261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed247() { +buildUnnamed262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed247(core.List<core.String> o) { +checkUnnamed262(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3041,14 +3041,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed245(); + o.contactAssignments = buildUnnamed260(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed246(); - o.interstitialTagFormats = buildUnnamed247(); + o.inpageTagFormats = buildUnnamed261(); + o.interstitialTagFormats = buildUnnamed262(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3063,14 +3063,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed245(o.contactAssignments); + checkUnnamed260(o.contactAssignments); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed246(o.inpageTagFormats); - checkUnnamed247(o.interstitialTagFormats); + checkUnnamed261(o.inpageTagFormats); + checkUnnamed262(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3138,14 +3138,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed248() { +buildUnnamed263() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed248(core.List<api.DirectorySiteContact> o) { +checkUnnamed263(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3156,7 +3156,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed248(); + o.directorySiteContacts = buildUnnamed263(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3167,7 +3167,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed248(o.directorySiteContacts); + checkUnnamed263(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3205,14 +3205,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed249() { +buildUnnamed264() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed249(core.List<api.DirectorySite> o) { +checkUnnamed264(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3223,7 +3223,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed249(); + o.directorySites = buildUnnamed264(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3234,21 +3234,21 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed249(o.directorySites); + checkUnnamed264(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDirectorySitesListResponse--; } -buildUnnamed250() { +buildUnnamed265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed250(core.List<core.String> o) { +checkUnnamed265(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3270,7 +3270,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed250(); + o.siteIds = buildUnnamed265(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3296,7 +3296,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed250(o.siteIds); + checkUnnamed265(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3328,14 +3328,14 @@ buildCounterEventTagOverride--; } -buildUnnamed251() { +buildUnnamed266() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed251(core.List<api.EventTag> o) { +checkUnnamed266(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3346,7 +3346,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed251(); + o.eventTags = buildUnnamed266(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3356,7 +3356,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed251(o.eventTags); + checkUnnamed266(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3420,14 +3420,14 @@ buildCounterFile--; } -buildUnnamed252() { +buildUnnamed267() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed252(core.List<api.File> o) { +checkUnnamed267(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3439,7 +3439,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed252(); + o.items = buildUnnamed267(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3451,7 +3451,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed252(o.items); + checkUnnamed267(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3504,14 +3504,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed253() { +buildUnnamed268() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed253(core.List<api.FloodlightActivity> o) { +checkUnnamed268(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3522,7 +3522,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed253(); + o.floodlightActivities = buildUnnamed268(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3533,47 +3533,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed253(o.floodlightActivities); + checkUnnamed268(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed254() { +buildUnnamed269() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed254(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed269(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed255() { +buildUnnamed270() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed255(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed270(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed256() { +buildUnnamed271() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed256(core.List<core.String> o) { +checkUnnamed271(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3589,7 +3589,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed254(); + o.defaultTags = buildUnnamed269(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3604,14 +3604,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed255(); + o.publisherTags = buildUnnamed270(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed256(); + o.userDefinedVariableTypes = buildUnnamed271(); } buildCounterFloodlightActivity--; return o; @@ -3625,7 +3625,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed254(o.defaultTags); + checkUnnamed269(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -3640,14 +3640,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed255(o.publisherTags); + checkUnnamed270(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed256(o.userDefinedVariableTypes); + checkUnnamed271(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -3716,14 +3716,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed257() { +buildUnnamed272() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed257(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed272(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -3734,7 +3734,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed257(); + o.floodlightActivityGroups = buildUnnamed272(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3745,7 +3745,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed257(o.floodlightActivityGroups); + checkUnnamed272(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3781,40 +3781,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed258() { +buildUnnamed273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed258(core.List<core.String> o) { +checkUnnamed273(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed259() { +buildUnnamed274() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed259(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed274(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed260() { +buildUnnamed275() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed260(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed275(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -3838,11 +3838,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed258(); + o.standardVariableTypes = buildUnnamed273(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed259(); - o.userDefinedVariableConfigurations = buildUnnamed260(); + o.thirdPartyAuthenticationTokens = buildUnnamed274(); + o.userDefinedVariableConfigurations = buildUnnamed275(); } buildCounterFloodlightConfiguration--; return o; @@ -3864,23 +3864,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed258(o.standardVariableTypes); + checkUnnamed273(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed259(o.thirdPartyAuthenticationTokens); - checkUnnamed260(o.userDefinedVariableConfigurations); + checkUnnamed274(o.thirdPartyAuthenticationTokens); + checkUnnamed275(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed261() { +buildUnnamed276() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed261(core.List<api.FloodlightConfiguration> o) { +checkUnnamed276(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -3891,7 +3891,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed261(); + o.floodlightConfigurations = buildUnnamed276(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -3901,46 +3901,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed261(o.floodlightConfigurations); + checkUnnamed276(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed262() { +buildUnnamed277() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed262(core.List<api.Dimension> o) { +checkUnnamed277(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed263() { +buildUnnamed278() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed263(core.List<api.Dimension> o) { +checkUnnamed278(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed264() { +buildUnnamed279() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed264(core.List<api.Metric> o) { +checkUnnamed279(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -3951,10 +3951,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed262(); - o.dimensions = buildUnnamed263(); + o.dimensionFilters = buildUnnamed277(); + o.dimensions = buildUnnamed278(); o.kind = "foo"; - o.metrics = buildUnnamed264(); + o.metrics = buildUnnamed279(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -3963,10 +3963,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed262(o.dimensionFilters); - checkUnnamed263(o.dimensions); + checkUnnamed277(o.dimensionFilters); + checkUnnamed278(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed264(o.metrics); + checkUnnamed279(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4019,66 +4019,66 @@ buildCounterFsCommand--; } -buildUnnamed265() { +buildUnnamed280() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed265(core.List<api.City> o) { +checkUnnamed280(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed266() { +buildUnnamed281() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed266(core.List<api.Country> o) { +checkUnnamed281(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed267() { +buildUnnamed282() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed267(core.List<api.Metro> o) { +checkUnnamed282(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed268() { +buildUnnamed283() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed268(core.List<api.PostalCode> o) { +checkUnnamed283(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed269() { +buildUnnamed284() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed269(core.List<api.Region> o) { +checkUnnamed284(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4089,12 +4089,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed265(); - o.countries = buildUnnamed266(); + o.cities = buildUnnamed280(); + o.countries = buildUnnamed281(); o.excludeCountries = true; - o.metros = buildUnnamed267(); - o.postalCodes = buildUnnamed268(); - o.regions = buildUnnamed269(); + o.metros = buildUnnamed282(); + o.postalCodes = buildUnnamed283(); + o.regions = buildUnnamed284(); } buildCounterGeoTargeting--; return o; @@ -4103,24 +4103,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed265(o.cities); - checkUnnamed266(o.countries); + checkUnnamed280(o.cities); + checkUnnamed281(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed267(o.metros); - checkUnnamed268(o.postalCodes); - checkUnnamed269(o.regions); + checkUnnamed282(o.metros); + checkUnnamed283(o.postalCodes); + checkUnnamed284(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed270() { +buildUnnamed285() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed270(core.List<api.AdSlot> o) { +checkUnnamed285(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4132,7 +4132,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed270(); + o.adSlots = buildUnnamed285(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4160,7 +4160,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed270(o.adSlots); + checkUnnamed285(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4183,14 +4183,14 @@ buildCounterInventoryItem--; } -buildUnnamed271() { +buildUnnamed286() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed271(core.List<api.InventoryItem> o) { +checkUnnamed286(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4201,7 +4201,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed271(); + o.inventoryItems = buildUnnamed286(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4212,7 +4212,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed271(o.inventoryItems); + checkUnnamed286(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4265,14 +4265,14 @@ buildCounterLandingPage--; } -buildUnnamed272() { +buildUnnamed287() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed272(core.List<api.LandingPage> o) { +checkUnnamed287(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4284,7 +4284,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed272(); + o.landingPages = buildUnnamed287(); } buildCounterLandingPagesListResponse--; return o; @@ -4294,7 +4294,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed272(o.landingPages); + checkUnnamed287(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4318,14 +4318,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed273() { +buildUnnamed288() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed273(core.List<api.ListPopulationTerm> o) { +checkUnnamed288(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4336,7 +4336,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed273(); + o.terms = buildUnnamed288(); } buildCounterListPopulationClause--; return o; @@ -4345,19 +4345,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed273(o.terms); + checkUnnamed288(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed274() { +buildUnnamed289() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed274(core.List<api.ListPopulationClause> o) { +checkUnnamed289(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4370,7 +4370,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed274(); + o.listPopulationClauses = buildUnnamed289(); } buildCounterListPopulationRule--; return o; @@ -4381,7 +4381,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed274(o.listPopulationClauses); + checkUnnamed289(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4511,14 +4511,14 @@ buildCounterMetro--; } -buildUnnamed275() { +buildUnnamed290() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed275(core.List<api.Metro> o) { +checkUnnamed290(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4530,7 +4530,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed275(); + o.metros = buildUnnamed290(); } buildCounterMetrosListResponse--; return o; @@ -4540,7 +4540,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed275(o.metros); + checkUnnamed290(o.metros); } buildCounterMetrosListResponse--; } @@ -4572,14 +4572,14 @@ buildCounterMobileCarrier--; } -buildUnnamed276() { +buildUnnamed291() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed276(core.List<api.MobileCarrier> o) { +checkUnnamed291(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -4591,7 +4591,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed276(); + o.mobileCarriers = buildUnnamed291(); } buildCounterMobileCarriersListResponse--; return o; @@ -4601,19 +4601,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed276(o.mobileCarriers); + checkUnnamed291(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed277() { +buildUnnamed292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed277(core.List<core.String> o) { +checkUnnamed292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4625,7 +4625,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed277(); + o.objectIds = buildUnnamed292(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4636,7 +4636,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed277(o.objectIds); + checkUnnamed292(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -4740,14 +4740,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed278() { +buildUnnamed293() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed278(core.List<api.OperatingSystemVersion> o) { +checkUnnamed293(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -4759,7 +4759,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed278(); + o.operatingSystemVersions = buildUnnamed293(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -4769,19 +4769,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed278(o.operatingSystemVersions); + checkUnnamed293(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed279() { +buildUnnamed294() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed279(core.List<api.OperatingSystem> o) { +checkUnnamed294(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -4793,7 +4793,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed279(); + o.operatingSystems = buildUnnamed294(); } buildCounterOperatingSystemsListResponse--; return o; @@ -4803,7 +4803,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed279(o.operatingSystems); + checkUnnamed294(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -4831,53 +4831,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed280() { +buildUnnamed295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed280(core.List<core.String> o) { +checkUnnamed295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed281() { +buildUnnamed296() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed281(core.List<api.OrderContact> o) { +checkUnnamed296(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed282() { +buildUnnamed297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed282(core.List<core.String> o) { +checkUnnamed297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed283() { +buildUnnamed298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed283(core.List<core.String> o) { +checkUnnamed298(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4890,11 +4890,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed280(); + o.approverUserProfileIds = buildUnnamed295(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed281(); + o.contacts = buildUnnamed296(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -4904,8 +4904,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed282(); - o.siteNames = buildUnnamed283(); + o.siteId = buildUnnamed297(); + o.siteNames = buildUnnamed298(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -4918,11 +4918,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed280(o.approverUserProfileIds); + checkUnnamed295(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed281(o.contacts); + checkUnnamed296(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -4932,8 +4932,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed282(o.siteId); - checkUnnamed283(o.siteNames); + checkUnnamed297(o.siteId); + checkUnnamed298(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -4967,27 +4967,27 @@ buildCounterOrderContact--; } -buildUnnamed284() { +buildUnnamed299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed284(core.List<core.String> o) { +checkUnnamed299(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed285() { +buildUnnamed300() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed285(core.List<core.String> o) { +checkUnnamed300(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5001,13 +5001,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed284(); + o.approvedByUserProfileIds = buildUnnamed299(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed285(); + o.lastSentRecipients = buildUnnamed300(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5026,13 +5026,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed284(o.approvedByUserProfileIds); + checkUnnamed299(o.approvedByUserProfileIds); unittest.expect(o.cancelled, unittest.isTrue); checkLastModifiedInfo(o.createdInfo); unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed285(o.lastSentRecipients); + checkUnnamed300(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); @@ -5044,14 +5044,14 @@ buildCounterOrderDocument--; } -buildUnnamed286() { +buildUnnamed301() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed286(core.List<api.OrderDocument> o) { +checkUnnamed301(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5064,7 +5064,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed286(); + o.orderDocuments = buildUnnamed301(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5075,19 +5075,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed286(o.orderDocuments); + checkUnnamed301(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed287() { +buildUnnamed302() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed287(core.List<api.Order> o) { +checkUnnamed302(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5100,7 +5100,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed287(); + o.orders = buildUnnamed302(); } buildCounterOrdersListResponse--; return o; @@ -5111,58 +5111,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed287(o.orders); + checkUnnamed302(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed288() { +buildUnnamed303() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed288(core.List<api.Dimension> o) { +checkUnnamed303(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed289() { +buildUnnamed304() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed289(core.List<api.Dimension> o) { +checkUnnamed304(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed290() { +buildUnnamed305() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed290(core.List<api.Metric> o) { +checkUnnamed305(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed291() { +buildUnnamed306() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed291(core.List<api.Dimension> o) { +checkUnnamed306(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5173,11 +5173,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed288(); - o.customFloodlightVariables = buildUnnamed289(); + o.conversionDimensions = buildUnnamed303(); + o.customFloodlightVariables = buildUnnamed304(); o.kind = "foo"; - o.metrics = buildUnnamed290(); - o.perInteractionDimensions = buildUnnamed291(); + o.metrics = buildUnnamed305(); + o.perInteractionDimensions = buildUnnamed306(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5186,23 +5186,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed288(o.conversionDimensions); - checkUnnamed289(o.customFloodlightVariables); + checkUnnamed303(o.conversionDimensions); + checkUnnamed304(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed290(o.metrics); - checkUnnamed291(o.perInteractionDimensions); + checkUnnamed305(o.metrics); + checkUnnamed306(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed292() { +buildUnnamed307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed292(core.List<core.String> o) { +checkUnnamed307(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5247,7 +5247,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed292(); + o.tagFormats = buildUnnamed307(); o.tagSetting = buildTagSetting(); } buildCounterPlacement--; @@ -5291,7 +5291,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed292(o.tagFormats); + checkUnnamed307(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5322,14 +5322,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed293() { +buildUnnamed308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed293(core.List<core.String> o) { +checkUnnamed308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5346,7 +5346,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed293(); + o.childPlacementIds = buildUnnamed308(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5380,7 +5380,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed293(o.childPlacementIds); + checkUnnamed308(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5404,14 +5404,14 @@ buildCounterPlacementGroup--; } -buildUnnamed294() { +buildUnnamed309() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed294(core.List<api.PlacementGroup> o) { +checkUnnamed309(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5424,7 +5424,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed294(); + o.placementGroups = buildUnnamed309(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5435,19 +5435,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed294(o.placementGroups); + checkUnnamed309(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed295() { +buildUnnamed310() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed295(core.List<api.PlacementStrategy> o) { +checkUnnamed310(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5460,7 +5460,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed295(); + o.placementStrategies = buildUnnamed310(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5471,7 +5471,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed295(o.placementStrategies); + checkUnnamed310(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5501,14 +5501,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed296() { +buildUnnamed311() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed296(core.List<api.TagData> o) { +checkUnnamed311(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5520,7 +5520,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed296(); + o.tagDatas = buildUnnamed311(); } buildCounterPlacementTag--; return o; @@ -5530,19 +5530,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed296(o.tagDatas); + checkUnnamed311(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed297() { +buildUnnamed312() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed297(core.List<api.PlacementTag> o) { +checkUnnamed312(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -5554,7 +5554,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed297(); + o.placementTags = buildUnnamed312(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5564,19 +5564,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed297(o.placementTags); + checkUnnamed312(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed298() { +buildUnnamed313() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed298(core.List<api.Placement> o) { +checkUnnamed313(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -5589,7 +5589,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed298(); + o.placements = buildUnnamed313(); } buildCounterPlacementsListResponse--; return o; @@ -5600,7 +5600,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed298(o.placements); + checkUnnamed313(o.placements); } buildCounterPlacementsListResponse--; } @@ -5628,14 +5628,14 @@ buildCounterPlatformType--; } -buildUnnamed299() { +buildUnnamed314() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed299(core.List<api.PlatformType> o) { +checkUnnamed314(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -5647,7 +5647,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed299(); + o.platformTypes = buildUnnamed314(); } buildCounterPlatformTypesListResponse--; return o; @@ -5657,7 +5657,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed299(o.platformTypes); + checkUnnamed314(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -5724,14 +5724,14 @@ buildCounterPostalCode--; } -buildUnnamed300() { +buildUnnamed315() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed300(core.List<api.PostalCode> o) { +checkUnnamed315(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -5743,7 +5743,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed300(); + o.postalCodes = buildUnnamed315(); } buildCounterPostalCodesListResponse--; return o; @@ -5753,19 +5753,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed300(o.postalCodes); + checkUnnamed315(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed301() { +buildUnnamed316() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed301(core.List<api.Flight> o) { +checkUnnamed316(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -5778,7 +5778,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed301(); + o.flights = buildUnnamed316(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -5792,7 +5792,7 @@ if (buildCounterPricing < 3) { unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed301(o.flights); + checkUnnamed316(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -5800,14 +5800,14 @@ buildCounterPricing--; } -buildUnnamed302() { +buildUnnamed317() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed302(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed317(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -5823,7 +5823,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed302(); + o.pricingPeriods = buildUnnamed317(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -5840,7 +5840,7 @@ unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.flighted, unittest.isTrue); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed302(o.pricingPeriods); + checkUnnamed317(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -5934,14 +5934,14 @@ buildCounterProject--; } -buildUnnamed303() { +buildUnnamed318() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed303(core.List<api.Project> o) { +checkUnnamed318(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -5954,7 +5954,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed303(); + o.projects = buildUnnamed318(); } buildCounterProjectsListResponse--; return o; @@ -5965,71 +5965,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed303(o.projects); + checkUnnamed318(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed304() { +buildUnnamed319() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed304(core.List<api.Dimension> o) { +checkUnnamed319(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed305() { +buildUnnamed320() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed305(core.List<api.Dimension> o) { +checkUnnamed320(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed306() { +buildUnnamed321() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed306(core.List<api.Metric> o) { +checkUnnamed321(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed307() { +buildUnnamed322() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed307(core.List<api.Metric> o) { +checkUnnamed322(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed308() { +buildUnnamed323() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed308(core.List<api.Metric> o) { +checkUnnamed323(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6040,12 +6040,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed304(); - o.dimensions = buildUnnamed305(); + o.dimensionFilters = buildUnnamed319(); + o.dimensions = buildUnnamed320(); o.kind = "foo"; - o.metrics = buildUnnamed306(); - o.pivotedActivityMetrics = buildUnnamed307(); - o.reachByFrequencyMetrics = buildUnnamed308(); + o.metrics = buildUnnamed321(); + o.pivotedActivityMetrics = buildUnnamed322(); + o.reachByFrequencyMetrics = buildUnnamed323(); } buildCounterReachReportCompatibleFields--; return o; @@ -6054,12 +6054,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed304(o.dimensionFilters); - checkUnnamed305(o.dimensions); + checkUnnamed319(o.dimensionFilters); + checkUnnamed320(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed306(o.metrics); - checkUnnamed307(o.pivotedActivityMetrics); - checkUnnamed308(o.reachByFrequencyMetrics); + checkUnnamed321(o.metrics); + checkUnnamed322(o.pivotedActivityMetrics); + checkUnnamed323(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6116,14 +6116,14 @@ buildCounterRegion--; } -buildUnnamed309() { +buildUnnamed324() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed309(core.List<api.Region> o) { +checkUnnamed324(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6135,7 +6135,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed309(); + o.regions = buildUnnamed324(); } buildCounterRegionsListResponse--; return o; @@ -6145,7 +6145,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed309(o.regions); + checkUnnamed324(o.regions); } buildCounterRegionsListResponse--; } @@ -6193,27 +6193,27 @@ buildCounterRemarketingList--; } -buildUnnamed310() { +buildUnnamed325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed310(core.List<core.String> o) { +checkUnnamed325(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed311() { +buildUnnamed326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed311(core.List<core.String> o) { +checkUnnamed326(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6226,8 +6226,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed310(); - o.sharedAdvertiserIds = buildUnnamed311(); + o.sharedAccountIds = buildUnnamed325(); + o.sharedAdvertiserIds = buildUnnamed326(); } buildCounterRemarketingListShare--; return o; @@ -6238,20 +6238,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed310(o.sharedAccountIds); - checkUnnamed311(o.sharedAdvertiserIds); + checkUnnamed325(o.sharedAccountIds); + checkUnnamed326(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed312() { +buildUnnamed327() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed312(core.List<api.RemarketingList> o) { +checkUnnamed327(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6264,7 +6264,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed312(); + o.remarketingLists = buildUnnamed327(); } buildCounterRemarketingListsListResponse--; return o; @@ -6275,45 +6275,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed312(o.remarketingLists); + checkUnnamed327(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed313() { +buildUnnamed328() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed313(core.List<api.DimensionValue> o) { +checkUnnamed328(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed314() { +buildUnnamed329() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed314(core.List<api.SortedDimension> o) { +checkUnnamed329(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed315() { +buildUnnamed330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed315(core.List<core.String> o) { +checkUnnamed330(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6327,9 +6327,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed313(); - o.dimensions = buildUnnamed314(); - o.metricNames = buildUnnamed315(); + o.dimensionFilters = buildUnnamed328(); + o.dimensions = buildUnnamed329(); + o.metricNames = buildUnnamed330(); } buildCounterReportCriteria--; return o; @@ -6341,60 +6341,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed313(o.dimensionFilters); - checkUnnamed314(o.dimensions); - checkUnnamed315(o.metricNames); + checkUnnamed328(o.dimensionFilters); + checkUnnamed329(o.dimensions); + checkUnnamed330(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed316() { +buildUnnamed331() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed316(core.List<api.SortedDimension> o) { +checkUnnamed331(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed317() { +buildUnnamed332() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed317(core.List<api.DimensionValue> o) { +checkUnnamed332(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed318() { +buildUnnamed333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed318(core.List<core.String> o) { +checkUnnamed333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed319() { +buildUnnamed334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed319(core.List<core.String> o) { +checkUnnamed334(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6405,12 +6405,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed316(); + o.breakdown = buildUnnamed331(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed317(); - o.metricNames = buildUnnamed318(); - o.overlapMetricNames = buildUnnamed319(); + o.dimensionFilters = buildUnnamed332(); + o.metricNames = buildUnnamed333(); + o.overlapMetricNames = buildUnnamed334(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6420,25 +6420,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed316(o.breakdown); + checkUnnamed331(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed317(o.dimensionFilters); - checkUnnamed318(o.metricNames); - checkUnnamed319(o.overlapMetricNames); + checkUnnamed332(o.dimensionFilters); + checkUnnamed333(o.metricNames); + checkUnnamed334(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed320() { +buildUnnamed335() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed320(core.List<api.Recipient> o) { +checkUnnamed335(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6452,7 +6452,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed320(); + o.recipients = buildUnnamed335(); } buildCounterReportDelivery--; return o; @@ -6464,58 +6464,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed320(o.recipients); + checkUnnamed335(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed321() { +buildUnnamed336() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed321(core.List<api.DimensionValue> o) { +checkUnnamed336(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed322() { +buildUnnamed337() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed322(core.List<api.DimensionValue> o) { +checkUnnamed337(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed323() { +buildUnnamed338() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed323(core.List<api.SortedDimension> o) { +checkUnnamed338(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed324() { +buildUnnamed339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed324(core.List<core.String> o) { +checkUnnamed339(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6549,12 +6549,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed321(); + o.customRichMediaEvents = buildUnnamed336(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed322(); - o.dimensions = buildUnnamed323(); + o.dimensionFilters = buildUnnamed337(); + o.dimensions = buildUnnamed338(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed324(); + o.metricNames = buildUnnamed339(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6564,90 +6564,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed321(o.customRichMediaEvents); + checkUnnamed336(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed322(o.dimensionFilters); - checkUnnamed323(o.dimensions); + checkUnnamed337(o.dimensionFilters); + checkUnnamed338(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed324(o.metricNames); + checkUnnamed339(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed325() { +buildUnnamed340() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed325(core.List<api.DimensionValue> o) { +checkUnnamed340(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed326() { +buildUnnamed341() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed326(core.List<api.SortedDimension> o) { +checkUnnamed341(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed327() { +buildUnnamed342() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed327(core.List<api.SortedDimension> o) { +checkUnnamed342(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed328() { +buildUnnamed343() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed328(core.List<api.DimensionValue> o) { +checkUnnamed343(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed329() { +buildUnnamed344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed329(core.List<core.String> o) { +checkUnnamed344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed330() { +buildUnnamed345() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed330(core.List<api.SortedDimension> o) { +checkUnnamed345(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -6693,14 +6693,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed325(); - o.conversionDimensions = buildUnnamed326(); - o.customFloodlightVariables = buildUnnamed327(); - o.customRichMediaEvents = buildUnnamed328(); + o.activityFilters = buildUnnamed340(); + o.conversionDimensions = buildUnnamed341(); + o.customFloodlightVariables = buildUnnamed342(); + o.customRichMediaEvents = buildUnnamed343(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed329(); - o.perInteractionDimensions = buildUnnamed330(); + o.metricNames = buildUnnamed344(); + o.perInteractionDimensions = buildUnnamed345(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -6710,66 +6710,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed325(o.activityFilters); - checkUnnamed326(o.conversionDimensions); - checkUnnamed327(o.customFloodlightVariables); - checkUnnamed328(o.customRichMediaEvents); + checkUnnamed340(o.activityFilters); + checkUnnamed341(o.conversionDimensions); + checkUnnamed342(o.customFloodlightVariables); + checkUnnamed343(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed329(o.metricNames); - checkUnnamed330(o.perInteractionDimensions); + checkUnnamed344(o.metricNames); + checkUnnamed345(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed331() { +buildUnnamed346() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed331(core.List<api.DimensionValue> o) { +checkUnnamed346(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed332() { +buildUnnamed347() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed332(core.List<api.SortedDimension> o) { +checkUnnamed347(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed333() { +buildUnnamed348() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed333(core.List<core.String> o) { +checkUnnamed348(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed334() { +buildUnnamed349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed334(core.List<core.String> o) { +checkUnnamed349(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6783,11 +6783,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed331(); - o.dimensions = buildUnnamed332(); + o.dimensionFilters = buildUnnamed346(); + o.dimensions = buildUnnamed347(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed333(); - o.reachByFrequencyMetricNames = buildUnnamed334(); + o.metricNames = buildUnnamed348(); + o.reachByFrequencyMetricNames = buildUnnamed349(); } buildCounterReportReachCriteria--; return o; @@ -6799,23 +6799,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed331(o.dimensionFilters); - checkUnnamed332(o.dimensions); + checkUnnamed346(o.dimensionFilters); + checkUnnamed347(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed333(o.metricNames); - checkUnnamed334(o.reachByFrequencyMetricNames); + checkUnnamed348(o.metricNames); + checkUnnamed349(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed335() { +buildUnnamed350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed335(core.List<core.String> o) { +checkUnnamed350(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6830,7 +6830,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed335(); + o.repeatsOnWeekDays = buildUnnamed350(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -6845,7 +6845,7 @@ unittest.expect(o.every, unittest.equals(42)); unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed335(o.repeatsOnWeekDays); + checkUnnamed350(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -6905,53 +6905,53 @@ buildCounterReport--; } -buildUnnamed336() { +buildUnnamed351() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed336(core.List<api.Dimension> o) { +checkUnnamed351(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed337() { +buildUnnamed352() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed337(core.List<api.Dimension> o) { +checkUnnamed352(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed338() { +buildUnnamed353() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed338(core.List<api.Metric> o) { +checkUnnamed353(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed339() { +buildUnnamed354() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed339(core.List<api.Metric> o) { +checkUnnamed354(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6962,11 +6962,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed336(); - o.dimensions = buildUnnamed337(); + o.dimensionFilters = buildUnnamed351(); + o.dimensions = buildUnnamed352(); o.kind = "foo"; - o.metrics = buildUnnamed338(); - o.pivotedActivityMetrics = buildUnnamed339(); + o.metrics = buildUnnamed353(); + o.pivotedActivityMetrics = buildUnnamed354(); } buildCounterReportCompatibleFields--; return o; @@ -6975,23 +6975,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed336(o.dimensionFilters); - checkUnnamed337(o.dimensions); + checkUnnamed351(o.dimensionFilters); + checkUnnamed352(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed338(o.metrics); - checkUnnamed339(o.pivotedActivityMetrics); + checkUnnamed353(o.metrics); + checkUnnamed354(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed340() { +buildUnnamed355() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed340(core.List<api.Report> o) { +checkUnnamed355(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7003,7 +7003,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed340(); + o.items = buildUnnamed355(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7015,7 +7015,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed340(o.items); + checkUnnamed355(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7068,14 +7068,14 @@ buildCounterRichMediaExitOverride--; } -buildUnnamed341() { +buildUnnamed356() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed341(core.List<api.SiteContact> o) { +checkUnnamed356(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7095,7 +7095,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed341(); + o.siteContacts = buildUnnamed356(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7115,7 +7115,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed341(o.siteContacts); + checkUnnamed356(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7186,14 +7186,14 @@ buildCounterSiteSettings--; } -buildUnnamed342() { +buildUnnamed357() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed342(core.List<api.Site> o) { +checkUnnamed357(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7206,7 +7206,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed342(); + o.sites = buildUnnamed357(); } buildCounterSitesListResponse--; return o; @@ -7217,7 +7217,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed342(o.sites); + checkUnnamed357(o.sites); } buildCounterSitesListResponse--; } @@ -7249,14 +7249,14 @@ buildCounterSize--; } -buildUnnamed343() { +buildUnnamed358() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed343(core.List<api.Size> o) { +checkUnnamed358(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7268,7 +7268,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed343(); + o.sizes = buildUnnamed358(); } buildCounterSizesListResponse--; return o; @@ -7278,7 +7278,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed343(o.sizes); + checkUnnamed358(o.sizes); } buildCounterSizesListResponse--; } @@ -7306,14 +7306,14 @@ buildCounterSortedDimension--; } -buildUnnamed344() { +buildUnnamed359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed344(core.List<core.String> o) { +checkUnnamed359(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7325,7 +7325,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed344(); + o.availablePermissionIds = buildUnnamed359(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7338,7 +7338,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed344(o.availablePermissionIds); + checkUnnamed359(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7346,14 +7346,14 @@ buildCounterSubaccount--; } -buildUnnamed345() { +buildUnnamed360() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed345(core.List<api.Subaccount> o) { +checkUnnamed360(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7366,7 +7366,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed345(); + o.subaccounts = buildUnnamed360(); } buildCounterSubaccountsListResponse--; return o; @@ -7377,7 +7377,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed345(o.subaccounts); + checkUnnamed360(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7517,14 +7517,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed346() { +buildUnnamed361() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed346(core.List<api.TargetableRemarketingList> o) { +checkUnnamed361(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -7537,7 +7537,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed346(); + o.targetableRemarketingLists = buildUnnamed361(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7548,84 +7548,84 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed346(o.targetableRemarketingLists); + checkUnnamed361(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed347() { +buildUnnamed362() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed347(core.List<api.Browser> o) { +checkUnnamed362(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed348() { +buildUnnamed363() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed348(core.List<api.ConnectionType> o) { +checkUnnamed363(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed349() { +buildUnnamed364() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed349(core.List<api.MobileCarrier> o) { +checkUnnamed364(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed350() { +buildUnnamed365() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed350(core.List<api.OperatingSystemVersion> o) { +checkUnnamed365(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed351() { +buildUnnamed366() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed351(core.List<api.OperatingSystem> o) { +checkUnnamed366(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed352() { +buildUnnamed367() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed352(core.List<api.PlatformType> o) { +checkUnnamed367(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -7636,12 +7636,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed347(); - o.connectionTypes = buildUnnamed348(); - o.mobileCarriers = buildUnnamed349(); - o.operatingSystemVersions = buildUnnamed350(); - o.operatingSystems = buildUnnamed351(); - o.platformTypes = buildUnnamed352(); + o.browsers = buildUnnamed362(); + o.connectionTypes = buildUnnamed363(); + o.mobileCarriers = buildUnnamed364(); + o.operatingSystemVersions = buildUnnamed365(); + o.operatingSystems = buildUnnamed366(); + o.platformTypes = buildUnnamed367(); } buildCounterTechnologyTargeting--; return o; @@ -7650,12 +7650,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed347(o.browsers); - checkUnnamed348(o.connectionTypes); - checkUnnamed349(o.mobileCarriers); - checkUnnamed350(o.operatingSystemVersions); - checkUnnamed351(o.operatingSystems); - checkUnnamed352(o.platformTypes); + checkUnnamed362(o.browsers); + checkUnnamed363(o.connectionTypes); + checkUnnamed364(o.mobileCarriers); + checkUnnamed365(o.operatingSystemVersions); + checkUnnamed366(o.operatingSystems); + checkUnnamed367(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -7758,14 +7758,14 @@ buildCounterUserProfile--; } -buildUnnamed353() { +buildUnnamed368() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed353(core.List<api.UserProfile> o) { +checkUnnamed368(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -7777,7 +7777,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed353(); + o.items = buildUnnamed368(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -7788,20 +7788,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed353(o.items); + checkUnnamed368(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed354() { +buildUnnamed369() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed354(core.List<api.UserRolePermission> o) { +checkUnnamed369(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7818,7 +7818,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed354(); + o.permissions = buildUnnamed369(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -7834,7 +7834,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed354(o.permissions); + checkUnnamed369(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -7890,14 +7890,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed355() { +buildUnnamed370() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed355(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed370(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -7909,7 +7909,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed355(); + o.userRolePermissionGroups = buildUnnamed370(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -7919,19 +7919,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed355(o.userRolePermissionGroups); + checkUnnamed370(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed356() { +buildUnnamed371() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed356(core.List<api.UserRolePermission> o) { +checkUnnamed371(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7943,7 +7943,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed356(); + o.userRolePermissions = buildUnnamed371(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -7953,19 +7953,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed356(o.userRolePermissions); + checkUnnamed371(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed357() { +buildUnnamed372() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed357(core.List<api.UserRole> o) { +checkUnnamed372(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -7978,7 +7978,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed357(); + o.userRoles = buildUnnamed372(); } buildCounterUserRolesListResponse--; return o; @@ -7989,206 +7989,11 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed357(o.userRoles); + checkUnnamed372(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed358() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed358(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed359() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed359(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed360() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed360(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed361() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed361(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed362() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed362(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed363() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed363(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed364() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed364(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed365() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed365(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed366() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed366(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed367() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed367(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed368() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed368(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed369() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed369(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed370() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed370(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed371() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed371(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed372() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed372(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed373() { var o = new core.List<core.String>(); o.add("foo"); @@ -9112,6 +8917,201 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed444() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed444(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed445() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed445(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed446() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed446(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed447() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed447(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed448() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed448(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed449() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed449(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed450() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed450(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed451() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed451(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed452() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed452(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed453() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed453(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed454() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed454(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed455() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed455(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed456() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed456(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed457() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed457(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed458() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed458(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + main() { unittest.group("obj-schema-Account", () { @@ -11261,7 +11261,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed358(); + var arg_ids = buildUnnamed373(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11509,7 +11509,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed359(); + var arg_ids = buildUnnamed374(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11812,27 +11812,27 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed360(); - var arg_campaignIds = buildUnnamed361(); + var arg_audienceSegmentIds = buildUnnamed375(); + var arg_campaignIds = buildUnnamed376(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed362(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed363(); + var arg_creativeIds = buildUnnamed377(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed378(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed364(); - var arg_landingPageIds = buildUnnamed365(); + var arg_ids = buildUnnamed379(); + var arg_landingPageIds = buildUnnamed380(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed366(); - var arg_remarketingListIds = buildUnnamed367(); + var arg_placementIds = buildUnnamed381(); + var arg_remarketingListIds = buildUnnamed382(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed368(); + var arg_sizeIds = buildUnnamed383(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed369(); + var arg_type = buildUnnamed384(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -12199,7 +12199,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed370(); + var arg_ids = buildUnnamed385(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12498,9 +12498,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed371(); - var arg_floodlightConfigurationIds = buildUnnamed372(); - var arg_ids = buildUnnamed373(); + var arg_advertiserGroupIds = buildUnnamed386(); + var arg_floodlightConfigurationIds = buildUnnamed387(); + var arg_ids = buildUnnamed388(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -13006,12 +13006,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed374(); - var arg_advertiserIds = buildUnnamed375(); + var arg_advertiserGroupIds = buildUnnamed389(); + var arg_advertiserIds = buildUnnamed390(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed376(); - var arg_ids = buildUnnamed377(); + var arg_excludedIds = buildUnnamed391(); + var arg_ids = buildUnnamed392(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13263,15 +13263,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed378(); + var arg_ids = buildUnnamed393(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed379(); + var arg_objectIds = buildUnnamed394(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed380(); + var arg_userProfileIds = buildUnnamed395(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13339,10 +13339,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed381(); - var arg_dartIds = buildUnnamed382(); + var arg_countryDartIds = buildUnnamed396(); + var arg_dartIds = buildUnnamed397(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed383(); + var arg_regionDartIds = buildUnnamed398(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13687,7 +13687,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed384(); + var arg_ids = buildUnnamed399(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14251,7 +14251,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed385(); + var arg_ids = buildUnnamed400(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14628,8 +14628,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed386(); - var arg_ids = buildUnnamed387(); + var arg_advertiserIds = buildUnnamed401(); + var arg_ids = buildUnnamed402(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14929,9 +14929,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed388(); + var arg_advertiserIds = buildUnnamed403(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed389(); + var arg_ids = buildUnnamed404(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15236,18 +15236,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed390(); - var arg_creativeFieldIds = buildUnnamed391(); - var arg_ids = buildUnnamed392(); + var arg_companionCreativeIds = buildUnnamed405(); + var arg_creativeFieldIds = buildUnnamed406(); + var arg_ids = buildUnnamed407(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed393(); + var arg_renderingIds = buildUnnamed408(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed394(); + var arg_sizeIds = buildUnnamed409(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed395(); + var arg_types = buildUnnamed410(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -15559,8 +15559,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed396(); - var arg_ids = buildUnnamed397(); + var arg_directorySiteIds = buildUnnamed411(); + var arg_ids = buildUnnamed412(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15750,7 +15750,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed398(); + var arg_ids = buildUnnamed413(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -16001,8 +16001,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed399(); - var arg_ids = buildUnnamed400(); + var arg_eventTagTypes = buildUnnamed414(); + var arg_ids = buildUnnamed415(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -16540,12 +16540,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed401(); + var arg_floodlightActivityGroupIds = buildUnnamed416(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed402(); + var arg_ids = buildUnnamed417(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16854,7 +16854,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed403(); + var arg_ids = buildUnnamed418(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17100,7 +17100,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed404(); + var arg_ids = buildUnnamed419(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -17341,12 +17341,12 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed405(); + var arg_ids = buildUnnamed420(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed406(); + var arg_orderId = buildUnnamed421(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed407(); + var arg_siteId = buildUnnamed422(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -18279,12 +18279,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed408(); + var arg_ids = buildUnnamed423(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed409(); + var arg_orderId = buildUnnamed424(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed410(); + var arg_siteId = buildUnnamed425(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18426,11 +18426,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed411(); + var arg_ids = buildUnnamed426(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed412(); + var arg_siteId = buildUnnamed427(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18618,12 +18618,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed413(); + var arg_advertiserIds = buildUnnamed428(); var arg_archived = true; - var arg_campaignIds = buildUnnamed414(); - var arg_contentCategoryIds = buildUnnamed415(); - var arg_directorySiteIds = buildUnnamed416(); - var arg_ids = buildUnnamed417(); + var arg_campaignIds = buildUnnamed429(); + var arg_contentCategoryIds = buildUnnamed430(); + var arg_directorySiteIds = buildUnnamed431(); + var arg_ids = buildUnnamed432(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -18631,10 +18631,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed418(); - var arg_pricingTypes = buildUnnamed419(); + var arg_placementStrategyIds = buildUnnamed433(); + var arg_pricingTypes = buildUnnamed434(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed420(); + var arg_siteIds = buildUnnamed435(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18998,7 +18998,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed421(); + var arg_ids = buildUnnamed436(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19184,8 +19184,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed422(); - var arg_tagFormats = buildUnnamed423(); + var arg_placementIds = buildUnnamed437(); + var arg_tagFormats = buildUnnamed438(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -19356,14 +19356,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed424(); + var arg_advertiserIds = buildUnnamed439(); var arg_archived = true; - var arg_campaignIds = buildUnnamed425(); - var arg_compatibilities = buildUnnamed426(); - var arg_contentCategoryIds = buildUnnamed427(); - var arg_directorySiteIds = buildUnnamed428(); - var arg_groupIds = buildUnnamed429(); - var arg_ids = buildUnnamed430(); + var arg_campaignIds = buildUnnamed440(); + var arg_compatibilities = buildUnnamed441(); + var arg_contentCategoryIds = buildUnnamed442(); + var arg_directorySiteIds = buildUnnamed443(); + var arg_groupIds = buildUnnamed444(); + var arg_ids = buildUnnamed445(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19371,11 +19371,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed431(); - var arg_pricingTypes = buildUnnamed432(); + var arg_placementStrategyIds = buildUnnamed446(); + var arg_pricingTypes = buildUnnamed447(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed433(); - var arg_sizeIds = buildUnnamed434(); + var arg_siteIds = buildUnnamed448(); + var arg_sizeIds = buildUnnamed449(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19858,8 +19858,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed435(); - var arg_ids = buildUnnamed436(); + var arg_advertiserIds = buildUnnamed450(); + var arg_ids = buildUnnamed451(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21207,9 +21207,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed437(); - var arg_directorySiteIds = buildUnnamed438(); - var arg_ids = buildUnnamed439(); + var arg_campaignIds = buildUnnamed452(); + var arg_directorySiteIds = buildUnnamed453(); + var arg_ids = buildUnnamed454(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21521,7 +21521,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed440(); + var arg_ids = buildUnnamed455(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -21698,7 +21698,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed441(); + var arg_ids = buildUnnamed456(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22280,7 +22280,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed442(); + var arg_ids = buildUnnamed457(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -22509,7 +22509,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed443(); + var arg_ids = buildUnnamed458(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v2_5_test.dart b/generated/googleapis/test/dfareporting/v2_5_test.dart index 82acc74..750efef 100644 --- a/generated/googleapis/test/dfareporting/v2_5_test.dart +++ b/generated/googleapis/test/dfareporting/v2_5_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1533() { +buildUnnamed1543() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1533(core.List<core.String> o) { +checkUnnamed1543(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1534() { +buildUnnamed1544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1534(core.List<core.String> o) { +checkUnnamed1544(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed1533(); + o.accountPermissionIds = buildUnnamed1543(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed1534(); + o.availablePermissionIds = buildUnnamed1544(); o.comscoreVceEnabled = true; o.countryId = "foo"; o.currencyId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1533(o.accountPermissionIds); + checkUnnamed1543(o.accountPermissionIds); unittest.expect(o.accountProfile, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed1534(o.availablePermissionIds); + checkUnnamed1544(o.availablePermissionIds); unittest.expect(o.comscoreVceEnabled, unittest.isTrue); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed1535() { +buildUnnamed1545() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1535(core.List<core.String> o) { +checkUnnamed1545(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed1535(); + o.accountProfiles = buildUnnamed1545(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed1535(o.accountProfiles); + checkUnnamed1545(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -224,14 +224,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed1536() { +buildUnnamed1546() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed1536(core.List<api.AccountPermissionGroup> o) { +checkUnnamed1546(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -242,7 +242,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed1536(); + o.accountPermissionGroups = buildUnnamed1546(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed1536(o.accountPermissionGroups); + checkUnnamed1546(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed1537() { +buildUnnamed1547() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed1537(core.List<api.AccountPermission> o) { +checkUnnamed1547(core.List<api.AccountPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermission(o[0]); checkAccountPermission(o[1]); @@ -276,7 +276,7 @@ var o = new api.AccountPermissionsListResponse(); buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed1537(); + o.accountPermissions = buildUnnamed1547(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed1537(o.accountPermissions); + checkUnnamed1547(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed1538() { +buildUnnamed1548() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed1538(core.List<api.AccountUserProfile> o) { +checkUnnamed1548(core.List<api.AccountUserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUserProfile(o[0]); checkAccountUserProfile(o[1]); @@ -359,7 +359,7 @@ var o = new api.AccountUserProfilesListResponse(); buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed1538(); + o.accountUserProfiles = buildUnnamed1548(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed1538(o.accountUserProfiles); + checkUnnamed1548(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed1539() { +buildUnnamed1549() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1539(core.List<api.Account> o) { +checkUnnamed1549(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -395,7 +395,7 @@ var o = new api.AccountsListResponse(); buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed1539(); + o.accounts = buildUnnamed1549(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed1539(o.accounts); + checkUnnamed1549(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed1540() { +buildUnnamed1550() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1540(core.List<api.DimensionValue> o) { +checkUnnamed1550(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1541() { +buildUnnamed1551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1541(core.List<core.String> o) { +checkUnnamed1551(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed1540(); + o.filters = buildUnnamed1550(); o.kind = "foo"; - o.metricNames = buildUnnamed1541(); + o.metricNames = buildUnnamed1551(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed1540(o.filters); + checkUnnamed1550(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1541(o.metricNames); + checkUnnamed1551(o.metricNames); } buildCounterActivities--; } -buildUnnamed1542() { +buildUnnamed1552() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1542(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1552(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1543() { +buildUnnamed1553() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1543(core.List<api.EventTagOverride> o) { +checkUnnamed1553(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1544() { +buildUnnamed1554() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed1544(core.List<api.PlacementAssignment> o) { +checkUnnamed1554(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,14 +519,14 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed1542(); + o.creativeGroupAssignments = buildUnnamed1552(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed1543(); + o.eventTagOverrides = buildUnnamed1553(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -534,7 +534,7 @@ o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed1544(); + o.placementAssignments = buildUnnamed1554(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -564,14 +564,14 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed1542(o.creativeGroupAssignments); + checkUnnamed1552(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); checkDeliverySchedule(o.deliverySchedule); unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1543(o.eventTagOverrides); + checkUnnamed1553(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -579,7 +579,7 @@ unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1544(o.placementAssignments); + checkUnnamed1554(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -625,14 +625,14 @@ buildCounterAdSlot--; } -buildUnnamed1545() { +buildUnnamed1555() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed1545(core.List<api.Ad> o) { +checkUnnamed1555(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -643,7 +643,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed1545(); + o.ads = buildUnnamed1555(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +654,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed1545(o.ads); + checkUnnamed1555(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +733,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed1546() { +buildUnnamed1556() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed1546(core.List<api.AdvertiserGroup> o) { +checkUnnamed1556(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -751,7 +751,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed1546(); + o.advertiserGroups = buildUnnamed1556(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +762,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed1546(o.advertiserGroups); + checkUnnamed1556(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed1547() { +buildUnnamed1557() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed1547(core.List<api.Advertiser> o) { +checkUnnamed1557(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -787,7 +787,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed1547(); + o.advertisers = buildUnnamed1557(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +798,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed1547(o.advertisers); + checkUnnamed1557(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +828,14 @@ buildCounterAudienceSegment--; } -buildUnnamed1548() { +buildUnnamed1558() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed1548(core.List<api.AudienceSegment> o) { +checkUnnamed1558(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -846,7 +846,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed1548(); + o.audienceSegments = buildUnnamed1558(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +857,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed1548(o.audienceSegments); + checkUnnamed1558(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +893,14 @@ buildCounterBrowser--; } -buildUnnamed1549() { +buildUnnamed1559() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1549(core.List<api.Browser> o) { +checkUnnamed1559(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -911,7 +911,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed1549(); + o.browsers = buildUnnamed1559(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +921,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed1549(o.browsers); + checkUnnamed1559(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed1550() { +buildUnnamed1560() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed1550(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed1560(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed1551() { +buildUnnamed1561() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed1551(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed1561(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed1552() { +buildUnnamed1562() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1552(core.List<core.String> o) { +checkUnnamed1562(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1553() { +buildUnnamed1563() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1553(core.List<api.EventTagOverride> o) { +checkUnnamed1563(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1554() { +buildUnnamed1564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1554(core.List<core.String> o) { +checkUnnamed1564(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -998,22 +998,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed1550(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed1560(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed1551(); + o.audienceSegmentGroups = buildUnnamed1561(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed1552(); + o.creativeGroupIds = buildUnnamed1562(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed1553(); + o.eventTagOverrides = buildUnnamed1563(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1024,7 +1024,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed1554(); + o.traffickerEmails = buildUnnamed1564(); } buildCounterCampaign--; return o; @@ -1034,22 +1034,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1550(o.additionalCreativeOptimizationConfigurations); + checkUnnamed1560(o.additionalCreativeOptimizationConfigurations); unittest.expect(o.advertiserGroupId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed1551(o.audienceSegmentGroups); + checkUnnamed1561(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.comscoreVceEnabled, unittest.isTrue); checkLastModifiedInfo(o.createInfo); - checkUnnamed1552(o.creativeGroupIds); + checkUnnamed1562(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1553(o.eventTagOverrides); + checkUnnamed1563(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1060,7 +1060,7 @@ unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed1554(o.traffickerEmails); + checkUnnamed1564(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1086,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed1555() { +buildUnnamed1565() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed1555(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed1565(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1104,7 +1104,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed1555(); + o.campaignCreativeAssociations = buildUnnamed1565(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1115,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed1555(o.campaignCreativeAssociations); + checkUnnamed1565(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed1556() { +buildUnnamed1566() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed1556(core.List<api.Campaign> o) { +checkUnnamed1566(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1140,7 +1140,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed1556(); + o.campaigns = buildUnnamed1566(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1151,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed1556(o.campaigns); + checkUnnamed1566(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1203,14 @@ buildCounterChangeLog--; } -buildUnnamed1557() { +buildUnnamed1567() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed1557(core.List<api.ChangeLog> o) { +checkUnnamed1567(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1221,7 +1221,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed1557(); + o.changeLogs = buildUnnamed1567(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1232,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed1557(o.changeLogs); + checkUnnamed1567(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed1558() { +buildUnnamed1568() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1558(core.List<api.City> o) { +checkUnnamed1568(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1257,7 +1257,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed1558(); + o.cities = buildUnnamed1568(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1267,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed1558(o.cities); + checkUnnamed1568(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1450,14 +1450,14 @@ buildCounterConnectionType--; } -buildUnnamed1559() { +buildUnnamed1569() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1559(core.List<api.ConnectionType> o) { +checkUnnamed1569(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1468,7 +1468,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed1559(); + o.connectionTypes = buildUnnamed1569(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1478,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed1559(o.connectionTypes); + checkUnnamed1569(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed1560() { +buildUnnamed1570() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed1560(core.List<api.ContentCategory> o) { +checkUnnamed1570(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1502,7 +1502,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed1560(); + o.contentCategories = buildUnnamed1570(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1513,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed1560(o.contentCategories); + checkUnnamed1570(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1545,14 @@ buildCounterContentCategory--; } -buildUnnamed1561() { +buildUnnamed1571() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed1561(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed1571(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); @@ -1564,7 +1564,7 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed1561(); + o.customVariables = buildUnnamed1571(); o.encryptedUserId = "foo"; o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; @@ -1584,7 +1584,7 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed1561(o.customVariables); + checkUnnamed1571(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); @@ -1622,14 +1622,14 @@ buildCounterConversionError--; } -buildUnnamed1562() { +buildUnnamed1572() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed1562(core.List<api.ConversionError> o) { +checkUnnamed1572(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1641,7 +1641,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed1562(); + o.errors = buildUnnamed1572(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1652,20 +1652,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed1562(o.errors); + checkUnnamed1572(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed1563() { +buildUnnamed1573() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1563(core.List<api.Conversion> o) { +checkUnnamed1573(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1676,7 +1676,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed1563(); + o.conversions = buildUnnamed1573(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1687,21 +1687,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed1563(o.conversions); + checkUnnamed1573(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed1564() { +buildUnnamed1574() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed1564(core.List<api.ConversionStatus> o) { +checkUnnamed1574(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1714,7 +1714,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed1564(); + o.status = buildUnnamed1574(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1725,19 +1725,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1564(o.status); + checkUnnamed1574(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed1565() { +buildUnnamed1575() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1565(core.List<api.Country> o) { +checkUnnamed1575(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1748,7 +1748,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed1565(); + o.countries = buildUnnamed1575(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1758,7 +1758,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed1565(o.countries); + checkUnnamed1575(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1791,157 +1791,157 @@ buildCounterCountry--; } -buildUnnamed1566() { +buildUnnamed1576() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1566(core.List<core.String> o) { +checkUnnamed1576(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1567() { +buildUnnamed1577() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1567(core.List<core.String> o) { +checkUnnamed1577(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1568() { +buildUnnamed1578() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1568(core.List<api.ClickTag> o) { +checkUnnamed1578(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1569() { +buildUnnamed1579() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1569(core.List<core.String> o) { +checkUnnamed1579(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1570() { +buildUnnamed1580() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1570(core.List<core.String> o) { +checkUnnamed1580(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1571() { +buildUnnamed1581() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1571(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1581(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1572() { +buildUnnamed1582() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed1572(core.List<api.CreativeAsset> o) { +checkUnnamed1582(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed1573() { +buildUnnamed1583() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed1573(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed1583(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed1574() { +buildUnnamed1584() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1574(core.List<core.String> o) { +checkUnnamed1584(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1575() { +buildUnnamed1585() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1575(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1585(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1576() { +buildUnnamed1586() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed1576(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed1586(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed1577() { +buildUnnamed1587() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1577(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1587(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1955,7 +1955,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed1566(); + o.adTagKeys = buildUnnamed1576(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1965,19 +1965,19 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed1567(); + o.backupImageFeatures = buildUnnamed1577(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed1568(); + o.clickTags = buildUnnamed1578(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed1569(); - o.compatibility = buildUnnamed1570(); + o.companionCreatives = buildUnnamed1579(); + o.compatibility = buildUnnamed1580(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed1571(); - o.creativeAssets = buildUnnamed1572(); - o.creativeFieldAssignments = buildUnnamed1573(); - o.customKeyValues = buildUnnamed1574(); - o.exitCustomEvents = buildUnnamed1575(); + o.counterCustomEvents = buildUnnamed1581(); + o.creativeAssets = buildUnnamed1582(); + o.creativeFieldAssignments = buildUnnamed1583(); + o.customKeyValues = buildUnnamed1584(); + o.exitCustomEvents = buildUnnamed1585(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2003,8 +2003,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed1576(); - o.timerCustomEvents = buildUnnamed1577(); + o.thirdPartyUrls = buildUnnamed1586(); + o.timerCustomEvents = buildUnnamed1587(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -2021,7 +2021,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed1566(o.adTagKeys); + checkUnnamed1576(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2031,19 +2031,19 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed1567(o.backupImageFeatures); + checkUnnamed1577(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed1568(o.clickTags); + checkUnnamed1578(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed1569(o.companionCreatives); - checkUnnamed1570(o.compatibility); + checkUnnamed1579(o.companionCreatives); + checkUnnamed1580(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed1571(o.counterCustomEvents); - checkUnnamed1572(o.creativeAssets); - checkUnnamed1573(o.creativeFieldAssignments); - checkUnnamed1574(o.customKeyValues); - checkUnnamed1575(o.exitCustomEvents); + checkUnnamed1581(o.counterCustomEvents); + checkUnnamed1582(o.creativeAssets); + checkUnnamed1583(o.creativeFieldAssignments); + checkUnnamed1584(o.customKeyValues); + checkUnnamed1585(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2069,8 +2069,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed1576(o.thirdPartyUrls); - checkUnnamed1577(o.timerCustomEvents); + checkUnnamed1586(o.thirdPartyUrls); + checkUnnamed1587(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -2080,14 +2080,14 @@ buildCounterCreative--; } -buildUnnamed1578() { +buildUnnamed1588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1578(core.List<core.String> o) { +checkUnnamed1588(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2108,7 +2108,7 @@ o.childAssetType = "foo"; o.collapsedSize = buildSize(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed1578(); + o.detectedFeatures = buildUnnamed1588(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2158,7 +2158,7 @@ unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed1578(o.detectedFeatures); + checkUnnamed1588(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2215,40 +2215,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed1579() { +buildUnnamed1589() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1579(core.List<api.ClickTag> o) { +checkUnnamed1589(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1580() { +buildUnnamed1590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1580(core.List<core.String> o) { +checkUnnamed1590(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1581() { +buildUnnamed1591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1581(core.List<core.String> o) { +checkUnnamed1591(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2260,10 +2260,10 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed1579(); - o.detectedFeatures = buildUnnamed1580(); + o.clickTags = buildUnnamed1589(); + o.detectedFeatures = buildUnnamed1590(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed1581(); + o.warnedValidationRules = buildUnnamed1591(); } buildCounterCreativeAssetMetadata--; return o; @@ -2273,48 +2273,48 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed1579(o.clickTags); - checkUnnamed1580(o.detectedFeatures); + checkUnnamed1589(o.clickTags); + checkUnnamed1590(o.detectedFeatures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1581(o.warnedValidationRules); + checkUnnamed1591(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed1582() { +buildUnnamed1592() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed1582(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed1592(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed1583() { +buildUnnamed1593() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1583(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1593(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1584() { +buildUnnamed1594() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed1584(core.List<api.RichMediaExitOverride> o) { +checkUnnamed1594(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2328,12 +2328,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed1582(); - o.creativeGroupAssignments = buildUnnamed1583(); + o.companionCreativeOverrides = buildUnnamed1592(); + o.creativeGroupAssignments = buildUnnamed1593(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed1584(); + o.richMediaExitOverrides = buildUnnamed1594(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2349,12 +2349,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed1582(o.companionCreativeOverrides); - checkUnnamed1583(o.creativeGroupAssignments); + checkUnnamed1592(o.companionCreativeOverrides); + checkUnnamed1593(o.creativeGroupAssignments); unittest.expect(o.creativeId, unittest.equals('foo')); checkDimensionValue(o.creativeIdDimensionValue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1584(o.richMediaExitOverrides); + checkUnnamed1594(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2475,14 +2475,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed1585() { +buildUnnamed1595() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed1585(core.List<api.CreativeFieldValue> o) { +checkUnnamed1595(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2493,7 +2493,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed1585(); + o.creativeFieldValues = buildUnnamed1595(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2504,21 +2504,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed1585(o.creativeFieldValues); + checkUnnamed1595(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed1586() { +buildUnnamed1596() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed1586(core.List<api.CreativeField> o) { +checkUnnamed1596(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2529,7 +2529,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed1586(); + o.creativeFields = buildUnnamed1596(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2540,7 +2540,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed1586(o.creativeFields); + checkUnnamed1596(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2601,14 +2601,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed1587() { +buildUnnamed1597() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed1587(core.List<api.CreativeGroup> o) { +checkUnnamed1597(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2619,7 +2619,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed1587(); + o.creativeGroups = buildUnnamed1597(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2630,21 +2630,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed1587(o.creativeGroups); + checkUnnamed1597(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed1588() { +buildUnnamed1598() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed1588(core.List<api.OptimizationActivity> o) { +checkUnnamed1598(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2657,7 +2657,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed1588(); + o.optimizationActivitys = buildUnnamed1598(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2669,20 +2669,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1588(o.optimizationActivitys); + checkUnnamed1598(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed1589() { +buildUnnamed1599() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed1589(core.List<api.CreativeAssignment> o) { +checkUnnamed1599(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2693,7 +2693,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed1589(); + o.creativeAssignments = buildUnnamed1599(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2705,7 +2705,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed1589(o.creativeAssignments); + checkUnnamed1599(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2734,14 +2734,14 @@ buildCounterCreativeSettings--; } -buildUnnamed1590() { +buildUnnamed1600() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1590(core.List<api.Creative> o) { +checkUnnamed1600(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2752,7 +2752,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed1590(); + o.creatives = buildUnnamed1600(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2763,60 +2763,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed1590(o.creatives); + checkUnnamed1600(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed1591() { +buildUnnamed1601() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1591(core.List<api.Dimension> o) { +checkUnnamed1601(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1592() { +buildUnnamed1602() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1592(core.List<api.Dimension> o) { +checkUnnamed1602(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1593() { +buildUnnamed1603() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1593(core.List<api.Metric> o) { +checkUnnamed1603(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1594() { +buildUnnamed1604() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1594(core.List<api.Metric> o) { +checkUnnamed1604(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2827,11 +2827,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed1591(); - o.dimensionFilters = buildUnnamed1592(); + o.breakdown = buildUnnamed1601(); + o.dimensionFilters = buildUnnamed1602(); o.kind = "foo"; - o.metrics = buildUnnamed1593(); - o.overlapMetrics = buildUnnamed1594(); + o.metrics = buildUnnamed1603(); + o.overlapMetrics = buildUnnamed1604(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2840,11 +2840,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed1591(o.breakdown); - checkUnnamed1592(o.dimensionFilters); + checkUnnamed1601(o.breakdown); + checkUnnamed1602(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1593(o.metrics); - checkUnnamed1594(o.overlapMetrics); + checkUnnamed1603(o.metrics); + checkUnnamed1604(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2872,14 +2872,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed1595() { +buildUnnamed1605() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1595(core.List<api.DimensionValue> o) { +checkUnnamed1605(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2890,7 +2890,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed1595(); + o.filteredEventIds = buildUnnamed1605(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2900,7 +2900,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed1595(o.filteredEventIds); + checkUnnamed1605(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2931,27 +2931,27 @@ buildCounterDateRange--; } -buildUnnamed1596() { +buildUnnamed1606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1596(core.List<core.String> o) { +checkUnnamed1606(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1597() { +buildUnnamed1607() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1597(core.List<core.int> o) { +checkUnnamed1607(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -2962,8 +2962,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed1596(); - o.hoursOfDay = buildUnnamed1597(); + o.daysOfWeek = buildUnnamed1606(); + o.hoursOfDay = buildUnnamed1607(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2973,8 +2973,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed1596(o.daysOfWeek); - checkUnnamed1597(o.hoursOfDay); + checkUnnamed1606(o.daysOfWeek); + checkUnnamed1607(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3126,14 +3126,14 @@ buildCounterDimensionValue--; } -buildUnnamed1598() { +buildUnnamed1608() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1598(core.List<api.DimensionValue> o) { +checkUnnamed1608(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3145,7 +3145,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed1598(); + o.items = buildUnnamed1608(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3157,21 +3157,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1598(o.items); + checkUnnamed1608(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed1599() { +buildUnnamed1609() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed1599(core.List<api.DimensionFilter> o) { +checkUnnamed1609(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3184,7 +3184,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed1599(); + o.filters = buildUnnamed1609(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3197,47 +3197,47 @@ if (buildCounterDimensionValueRequest < 3) { unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1599(o.filters); + checkUnnamed1609(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed1600() { +buildUnnamed1610() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed1600(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed1610(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed1601() { +buildUnnamed1611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1601(core.List<core.String> o) { +checkUnnamed1611(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1602() { +buildUnnamed1612() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1602(core.List<core.String> o) { +checkUnnamed1612(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3249,14 +3249,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed1600(); + o.contactAssignments = buildUnnamed1610(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed1601(); - o.interstitialTagFormats = buildUnnamed1602(); + o.inpageTagFormats = buildUnnamed1611(); + o.interstitialTagFormats = buildUnnamed1612(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3271,14 +3271,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed1600(o.contactAssignments); + checkUnnamed1610(o.contactAssignments); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed1601(o.inpageTagFormats); - checkUnnamed1602(o.interstitialTagFormats); + checkUnnamed1611(o.inpageTagFormats); + checkUnnamed1612(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3346,14 +3346,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed1603() { +buildUnnamed1613() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed1603(core.List<api.DirectorySiteContact> o) { +checkUnnamed1613(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3364,7 +3364,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed1603(); + o.directorySiteContacts = buildUnnamed1613(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3375,7 +3375,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed1603(o.directorySiteContacts); + checkUnnamed1613(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3413,14 +3413,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed1604() { +buildUnnamed1614() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed1604(core.List<api.DirectorySite> o) { +checkUnnamed1614(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3431,7 +3431,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed1604(); + o.directorySites = buildUnnamed1614(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3442,7 +3442,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed1604(o.directorySites); + checkUnnamed1614(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3474,14 +3474,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed1605() { +buildUnnamed1615() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed1605(core.List<api.DynamicTargetingKey> o) { +checkUnnamed1615(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -3492,7 +3492,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed1605(); + o.dynamicTargetingKeys = buildUnnamed1615(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3502,7 +3502,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed1605(o.dynamicTargetingKeys); + checkUnnamed1615(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3533,14 +3533,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed1606() { +buildUnnamed1616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1606(core.List<core.String> o) { +checkUnnamed1616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3562,7 +3562,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed1606(); + o.siteIds = buildUnnamed1616(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3588,7 +3588,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed1606(o.siteIds); + checkUnnamed1616(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3620,14 +3620,14 @@ buildCounterEventTagOverride--; } -buildUnnamed1607() { +buildUnnamed1617() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed1607(core.List<api.EventTag> o) { +checkUnnamed1617(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3638,7 +3638,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed1607(); + o.eventTags = buildUnnamed1617(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3648,7 +3648,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed1607(o.eventTags); + checkUnnamed1617(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3712,14 +3712,14 @@ buildCounterFile--; } -buildUnnamed1608() { +buildUnnamed1618() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1608(core.List<api.File> o) { +checkUnnamed1618(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3731,7 +3731,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed1608(); + o.items = buildUnnamed1618(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3743,7 +3743,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1608(o.items); + checkUnnamed1618(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3796,14 +3796,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed1609() { +buildUnnamed1619() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed1609(core.List<api.FloodlightActivity> o) { +checkUnnamed1619(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3814,7 +3814,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed1609(); + o.floodlightActivities = buildUnnamed1619(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3825,47 +3825,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed1609(o.floodlightActivities); + checkUnnamed1619(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed1610() { +buildUnnamed1620() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed1610(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed1620(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed1611() { +buildUnnamed1621() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed1611(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed1621(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed1612() { +buildUnnamed1622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1612(core.List<core.String> o) { +checkUnnamed1622(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3881,7 +3881,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed1610(); + o.defaultTags = buildUnnamed1620(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3896,14 +3896,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed1611(); + o.publisherTags = buildUnnamed1621(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed1612(); + o.userDefinedVariableTypes = buildUnnamed1622(); } buildCounterFloodlightActivity--; return o; @@ -3917,7 +3917,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed1610(o.defaultTags); + checkUnnamed1620(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -3932,14 +3932,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1611(o.publisherTags); + checkUnnamed1621(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed1612(o.userDefinedVariableTypes); + checkUnnamed1622(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4008,14 +4008,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed1613() { +buildUnnamed1623() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed1613(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed1623(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4026,7 +4026,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed1613(); + o.floodlightActivityGroups = buildUnnamed1623(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4037,7 +4037,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed1613(o.floodlightActivityGroups); + checkUnnamed1623(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4073,40 +4073,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed1614() { +buildUnnamed1624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1614(core.List<core.String> o) { +checkUnnamed1624(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1615() { +buildUnnamed1625() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed1615(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed1625(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed1616() { +buildUnnamed1626() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed1616(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed1626(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4130,11 +4130,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed1614(); + o.standardVariableTypes = buildUnnamed1624(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed1615(); - o.userDefinedVariableConfigurations = buildUnnamed1616(); + o.thirdPartyAuthenticationTokens = buildUnnamed1625(); + o.userDefinedVariableConfigurations = buildUnnamed1626(); } buildCounterFloodlightConfiguration--; return o; @@ -4156,23 +4156,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed1614(o.standardVariableTypes); + checkUnnamed1624(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed1615(o.thirdPartyAuthenticationTokens); - checkUnnamed1616(o.userDefinedVariableConfigurations); + checkUnnamed1625(o.thirdPartyAuthenticationTokens); + checkUnnamed1626(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed1617() { +buildUnnamed1627() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed1617(core.List<api.FloodlightConfiguration> o) { +checkUnnamed1627(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4183,7 +4183,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed1617(); + o.floodlightConfigurations = buildUnnamed1627(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4193,46 +4193,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed1617(o.floodlightConfigurations); + checkUnnamed1627(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed1618() { +buildUnnamed1628() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1618(core.List<api.Dimension> o) { +checkUnnamed1628(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1619() { +buildUnnamed1629() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1619(core.List<api.Dimension> o) { +checkUnnamed1629(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1620() { +buildUnnamed1630() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1620(core.List<api.Metric> o) { +checkUnnamed1630(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4243,10 +4243,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1618(); - o.dimensions = buildUnnamed1619(); + o.dimensionFilters = buildUnnamed1628(); + o.dimensions = buildUnnamed1629(); o.kind = "foo"; - o.metrics = buildUnnamed1620(); + o.metrics = buildUnnamed1630(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4255,10 +4255,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed1618(o.dimensionFilters); - checkUnnamed1619(o.dimensions); + checkUnnamed1628(o.dimensionFilters); + checkUnnamed1629(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1620(o.metrics); + checkUnnamed1630(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4311,66 +4311,66 @@ buildCounterFsCommand--; } -buildUnnamed1621() { +buildUnnamed1631() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1621(core.List<api.City> o) { +checkUnnamed1631(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed1622() { +buildUnnamed1632() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1622(core.List<api.Country> o) { +checkUnnamed1632(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed1623() { +buildUnnamed1633() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1623(core.List<api.Metro> o) { +checkUnnamed1633(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed1624() { +buildUnnamed1634() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1624(core.List<api.PostalCode> o) { +checkUnnamed1634(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed1625() { +buildUnnamed1635() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1625(core.List<api.Region> o) { +checkUnnamed1635(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4381,12 +4381,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed1621(); - o.countries = buildUnnamed1622(); + o.cities = buildUnnamed1631(); + o.countries = buildUnnamed1632(); o.excludeCountries = true; - o.metros = buildUnnamed1623(); - o.postalCodes = buildUnnamed1624(); - o.regions = buildUnnamed1625(); + o.metros = buildUnnamed1633(); + o.postalCodes = buildUnnamed1634(); + o.regions = buildUnnamed1635(); } buildCounterGeoTargeting--; return o; @@ -4395,24 +4395,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed1621(o.cities); - checkUnnamed1622(o.countries); + checkUnnamed1631(o.cities); + checkUnnamed1632(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed1623(o.metros); - checkUnnamed1624(o.postalCodes); - checkUnnamed1625(o.regions); + checkUnnamed1633(o.metros); + checkUnnamed1634(o.postalCodes); + checkUnnamed1635(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed1626() { +buildUnnamed1636() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed1626(core.List<api.AdSlot> o) { +checkUnnamed1636(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4424,7 +4424,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed1626(); + o.adSlots = buildUnnamed1636(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4452,7 +4452,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1626(o.adSlots); + checkUnnamed1636(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4475,14 +4475,14 @@ buildCounterInventoryItem--; } -buildUnnamed1627() { +buildUnnamed1637() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed1627(core.List<api.InventoryItem> o) { +checkUnnamed1637(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4493,7 +4493,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed1627(); + o.inventoryItems = buildUnnamed1637(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4504,7 +4504,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed1627(o.inventoryItems); + checkUnnamed1637(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4557,14 +4557,14 @@ buildCounterLandingPage--; } -buildUnnamed1628() { +buildUnnamed1638() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed1628(core.List<api.LandingPage> o) { +checkUnnamed1638(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4576,7 +4576,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed1628(); + o.landingPages = buildUnnamed1638(); } buildCounterLandingPagesListResponse--; return o; @@ -4586,7 +4586,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1628(o.landingPages); + checkUnnamed1638(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4610,14 +4610,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed1629() { +buildUnnamed1639() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed1629(core.List<api.ListPopulationTerm> o) { +checkUnnamed1639(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4628,7 +4628,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed1629(); + o.terms = buildUnnamed1639(); } buildCounterListPopulationClause--; return o; @@ -4637,19 +4637,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed1629(o.terms); + checkUnnamed1639(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed1630() { +buildUnnamed1640() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed1630(core.List<api.ListPopulationClause> o) { +checkUnnamed1640(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4662,7 +4662,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed1630(); + o.listPopulationClauses = buildUnnamed1640(); } buildCounterListPopulationRule--; return o; @@ -4673,7 +4673,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed1630(o.listPopulationClauses); + checkUnnamed1640(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4803,14 +4803,14 @@ buildCounterMetro--; } -buildUnnamed1631() { +buildUnnamed1641() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1631(core.List<api.Metro> o) { +checkUnnamed1641(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4822,7 +4822,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed1631(); + o.metros = buildUnnamed1641(); } buildCounterMetrosListResponse--; return o; @@ -4832,7 +4832,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1631(o.metros); + checkUnnamed1641(o.metros); } buildCounterMetrosListResponse--; } @@ -4864,14 +4864,14 @@ buildCounterMobileCarrier--; } -buildUnnamed1632() { +buildUnnamed1642() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1632(core.List<api.MobileCarrier> o) { +checkUnnamed1642(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -4883,7 +4883,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed1632(); + o.mobileCarriers = buildUnnamed1642(); } buildCounterMobileCarriersListResponse--; return o; @@ -4893,19 +4893,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1632(o.mobileCarriers); + checkUnnamed1642(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed1633() { +buildUnnamed1643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1633(core.List<core.String> o) { +checkUnnamed1643(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4917,7 +4917,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed1633(); + o.objectIds = buildUnnamed1643(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4928,7 +4928,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1633(o.objectIds); + checkUnnamed1643(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5032,14 +5032,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed1634() { +buildUnnamed1644() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1634(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1644(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5051,7 +5051,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed1634(); + o.operatingSystemVersions = buildUnnamed1644(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5061,19 +5061,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1634(o.operatingSystemVersions); + checkUnnamed1644(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed1635() { +buildUnnamed1645() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1635(core.List<api.OperatingSystem> o) { +checkUnnamed1645(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5085,7 +5085,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed1635(); + o.operatingSystems = buildUnnamed1645(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5095,7 +5095,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1635(o.operatingSystems); + checkUnnamed1645(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5123,53 +5123,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed1636() { +buildUnnamed1646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1636(core.List<core.String> o) { +checkUnnamed1646(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1637() { +buildUnnamed1647() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed1637(core.List<api.OrderContact> o) { +checkUnnamed1647(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed1638() { +buildUnnamed1648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1638(core.List<core.String> o) { +checkUnnamed1648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1639() { +buildUnnamed1649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1639(core.List<core.String> o) { +checkUnnamed1649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5182,11 +5182,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed1636(); + o.approverUserProfileIds = buildUnnamed1646(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed1637(); + o.contacts = buildUnnamed1647(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5196,8 +5196,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed1638(); - o.siteNames = buildUnnamed1639(); + o.siteId = buildUnnamed1648(); + o.siteNames = buildUnnamed1649(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -5210,11 +5210,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed1636(o.approverUserProfileIds); + checkUnnamed1646(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed1637(o.contacts); + checkUnnamed1647(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -5224,8 +5224,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed1638(o.siteId); - checkUnnamed1639(o.siteNames); + checkUnnamed1648(o.siteId); + checkUnnamed1649(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5259,27 +5259,27 @@ buildCounterOrderContact--; } -buildUnnamed1640() { +buildUnnamed1650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1640(core.List<core.String> o) { +checkUnnamed1650(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1641() { +buildUnnamed1651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1641(core.List<core.String> o) { +checkUnnamed1651(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5293,13 +5293,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed1640(); + o.approvedByUserProfileIds = buildUnnamed1650(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed1641(); + o.lastSentRecipients = buildUnnamed1651(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5318,13 +5318,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed1640(o.approvedByUserProfileIds); + checkUnnamed1650(o.approvedByUserProfileIds); unittest.expect(o.cancelled, unittest.isTrue); checkLastModifiedInfo(o.createdInfo); unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1641(o.lastSentRecipients); + checkUnnamed1651(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); @@ -5336,14 +5336,14 @@ buildCounterOrderDocument--; } -buildUnnamed1642() { +buildUnnamed1652() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed1642(core.List<api.OrderDocument> o) { +checkUnnamed1652(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5356,7 +5356,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed1642(); + o.orderDocuments = buildUnnamed1652(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5367,19 +5367,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1642(o.orderDocuments); + checkUnnamed1652(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed1643() { +buildUnnamed1653() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1643(core.List<api.Order> o) { +checkUnnamed1653(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5392,7 +5392,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed1643(); + o.orders = buildUnnamed1653(); } buildCounterOrdersListResponse--; return o; @@ -5403,58 +5403,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1643(o.orders); + checkUnnamed1653(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed1644() { +buildUnnamed1654() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1644(core.List<api.Dimension> o) { +checkUnnamed1654(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1645() { +buildUnnamed1655() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1645(core.List<api.Dimension> o) { +checkUnnamed1655(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1646() { +buildUnnamed1656() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1646(core.List<api.Metric> o) { +checkUnnamed1656(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1647() { +buildUnnamed1657() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1647(core.List<api.Dimension> o) { +checkUnnamed1657(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5465,11 +5465,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed1644(); - o.customFloodlightVariables = buildUnnamed1645(); + o.conversionDimensions = buildUnnamed1654(); + o.customFloodlightVariables = buildUnnamed1655(); o.kind = "foo"; - o.metrics = buildUnnamed1646(); - o.perInteractionDimensions = buildUnnamed1647(); + o.metrics = buildUnnamed1656(); + o.perInteractionDimensions = buildUnnamed1657(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5478,23 +5478,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed1644(o.conversionDimensions); - checkUnnamed1645(o.customFloodlightVariables); + checkUnnamed1654(o.conversionDimensions); + checkUnnamed1655(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1646(o.metrics); - checkUnnamed1647(o.perInteractionDimensions); + checkUnnamed1656(o.metrics); + checkUnnamed1657(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed1648() { +buildUnnamed1658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1648(core.List<core.String> o) { +checkUnnamed1658(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5539,7 +5539,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed1648(); + o.tagFormats = buildUnnamed1658(); o.tagSetting = buildTagSetting(); } buildCounterPlacement--; @@ -5583,7 +5583,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed1648(o.tagFormats); + checkUnnamed1658(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5614,14 +5614,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed1649() { +buildUnnamed1659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1649(core.List<core.String> o) { +checkUnnamed1659(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5638,7 +5638,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed1649(); + o.childPlacementIds = buildUnnamed1659(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5672,7 +5672,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed1649(o.childPlacementIds); + checkUnnamed1659(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5696,14 +5696,14 @@ buildCounterPlacementGroup--; } -buildUnnamed1650() { +buildUnnamed1660() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed1650(core.List<api.PlacementGroup> o) { +checkUnnamed1660(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5716,7 +5716,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed1650(); + o.placementGroups = buildUnnamed1660(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5727,19 +5727,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1650(o.placementGroups); + checkUnnamed1660(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed1651() { +buildUnnamed1661() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed1651(core.List<api.PlacementStrategy> o) { +checkUnnamed1661(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5752,7 +5752,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed1651(); + o.placementStrategies = buildUnnamed1661(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5763,7 +5763,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1651(o.placementStrategies); + checkUnnamed1661(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5793,14 +5793,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed1652() { +buildUnnamed1662() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed1652(core.List<api.TagData> o) { +checkUnnamed1662(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5812,7 +5812,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed1652(); + o.tagDatas = buildUnnamed1662(); } buildCounterPlacementTag--; return o; @@ -5822,19 +5822,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed1652(o.tagDatas); + checkUnnamed1662(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed1653() { +buildUnnamed1663() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed1653(core.List<api.PlacementTag> o) { +checkUnnamed1663(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -5846,7 +5846,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed1653(); + o.placementTags = buildUnnamed1663(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5856,19 +5856,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1653(o.placementTags); + checkUnnamed1663(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed1654() { +buildUnnamed1664() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed1654(core.List<api.Placement> o) { +checkUnnamed1664(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -5881,7 +5881,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed1654(); + o.placements = buildUnnamed1664(); } buildCounterPlacementsListResponse--; return o; @@ -5892,7 +5892,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1654(o.placements); + checkUnnamed1664(o.placements); } buildCounterPlacementsListResponse--; } @@ -5920,14 +5920,14 @@ buildCounterPlatformType--; } -buildUnnamed1655() { +buildUnnamed1665() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed1655(core.List<api.PlatformType> o) { +checkUnnamed1665(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -5939,7 +5939,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed1655(); + o.platformTypes = buildUnnamed1665(); } buildCounterPlatformTypesListResponse--; return o; @@ -5949,7 +5949,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1655(o.platformTypes); + checkUnnamed1665(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6016,14 +6016,14 @@ buildCounterPostalCode--; } -buildUnnamed1656() { +buildUnnamed1666() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1656(core.List<api.PostalCode> o) { +checkUnnamed1666(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6035,7 +6035,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed1656(); + o.postalCodes = buildUnnamed1666(); } buildCounterPostalCodesListResponse--; return o; @@ -6045,19 +6045,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1656(o.postalCodes); + checkUnnamed1666(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed1657() { +buildUnnamed1667() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed1657(core.List<api.Flight> o) { +checkUnnamed1667(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6070,7 +6070,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed1657(); + o.flights = buildUnnamed1667(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6084,7 +6084,7 @@ if (buildCounterPricing < 3) { unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1657(o.flights); + checkUnnamed1667(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6092,14 +6092,14 @@ buildCounterPricing--; } -buildUnnamed1658() { +buildUnnamed1668() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed1658(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed1668(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6115,7 +6115,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed1658(); + o.pricingPeriods = buildUnnamed1668(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6132,7 +6132,7 @@ unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.flighted, unittest.isTrue); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed1658(o.pricingPeriods); + checkUnnamed1668(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6226,14 +6226,14 @@ buildCounterProject--; } -buildUnnamed1659() { +buildUnnamed1669() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed1659(core.List<api.Project> o) { +checkUnnamed1669(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -6246,7 +6246,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed1659(); + o.projects = buildUnnamed1669(); } buildCounterProjectsListResponse--; return o; @@ -6257,71 +6257,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1659(o.projects); + checkUnnamed1669(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed1660() { +buildUnnamed1670() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1660(core.List<api.Dimension> o) { +checkUnnamed1670(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1661() { +buildUnnamed1671() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1661(core.List<api.Dimension> o) { +checkUnnamed1671(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1662() { +buildUnnamed1672() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1662(core.List<api.Metric> o) { +checkUnnamed1672(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1663() { +buildUnnamed1673() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1663(core.List<api.Metric> o) { +checkUnnamed1673(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1664() { +buildUnnamed1674() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1664(core.List<api.Metric> o) { +checkUnnamed1674(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6332,12 +6332,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1660(); - o.dimensions = buildUnnamed1661(); + o.dimensionFilters = buildUnnamed1670(); + o.dimensions = buildUnnamed1671(); o.kind = "foo"; - o.metrics = buildUnnamed1662(); - o.pivotedActivityMetrics = buildUnnamed1663(); - o.reachByFrequencyMetrics = buildUnnamed1664(); + o.metrics = buildUnnamed1672(); + o.pivotedActivityMetrics = buildUnnamed1673(); + o.reachByFrequencyMetrics = buildUnnamed1674(); } buildCounterReachReportCompatibleFields--; return o; @@ -6346,12 +6346,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed1660(o.dimensionFilters); - checkUnnamed1661(o.dimensions); + checkUnnamed1670(o.dimensionFilters); + checkUnnamed1671(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1662(o.metrics); - checkUnnamed1663(o.pivotedActivityMetrics); - checkUnnamed1664(o.reachByFrequencyMetrics); + checkUnnamed1672(o.metrics); + checkUnnamed1673(o.pivotedActivityMetrics); + checkUnnamed1674(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6408,14 +6408,14 @@ buildCounterRegion--; } -buildUnnamed1665() { +buildUnnamed1675() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1665(core.List<api.Region> o) { +checkUnnamed1675(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6427,7 +6427,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed1665(); + o.regions = buildUnnamed1675(); } buildCounterRegionsListResponse--; return o; @@ -6437,7 +6437,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1665(o.regions); + checkUnnamed1675(o.regions); } buildCounterRegionsListResponse--; } @@ -6485,27 +6485,27 @@ buildCounterRemarketingList--; } -buildUnnamed1666() { +buildUnnamed1676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1666(core.List<core.String> o) { +checkUnnamed1676(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1667() { +buildUnnamed1677() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1667(core.List<core.String> o) { +checkUnnamed1677(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6518,8 +6518,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed1666(); - o.sharedAdvertiserIds = buildUnnamed1667(); + o.sharedAccountIds = buildUnnamed1676(); + o.sharedAdvertiserIds = buildUnnamed1677(); } buildCounterRemarketingListShare--; return o; @@ -6530,20 +6530,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed1666(o.sharedAccountIds); - checkUnnamed1667(o.sharedAdvertiserIds); + checkUnnamed1676(o.sharedAccountIds); + checkUnnamed1677(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed1668() { +buildUnnamed1678() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed1668(core.List<api.RemarketingList> o) { +checkUnnamed1678(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6556,7 +6556,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed1668(); + o.remarketingLists = buildUnnamed1678(); } buildCounterRemarketingListsListResponse--; return o; @@ -6567,45 +6567,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1668(o.remarketingLists); + checkUnnamed1678(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed1669() { +buildUnnamed1679() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1669(core.List<api.DimensionValue> o) { +checkUnnamed1679(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1670() { +buildUnnamed1680() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1670(core.List<api.SortedDimension> o) { +checkUnnamed1680(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1671() { +buildUnnamed1681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1671(core.List<core.String> o) { +checkUnnamed1681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6619,9 +6619,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed1669(); - o.dimensions = buildUnnamed1670(); - o.metricNames = buildUnnamed1671(); + o.dimensionFilters = buildUnnamed1679(); + o.dimensions = buildUnnamed1680(); + o.metricNames = buildUnnamed1681(); } buildCounterReportCriteria--; return o; @@ -6633,60 +6633,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1669(o.dimensionFilters); - checkUnnamed1670(o.dimensions); - checkUnnamed1671(o.metricNames); + checkUnnamed1679(o.dimensionFilters); + checkUnnamed1680(o.dimensions); + checkUnnamed1681(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed1672() { +buildUnnamed1682() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1672(core.List<api.SortedDimension> o) { +checkUnnamed1682(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1673() { +buildUnnamed1683() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1673(core.List<api.DimensionValue> o) { +checkUnnamed1683(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1674() { +buildUnnamed1684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1674(core.List<core.String> o) { +checkUnnamed1684(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1675() { +buildUnnamed1685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1675(core.List<core.String> o) { +checkUnnamed1685(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6697,12 +6697,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed1672(); + o.breakdown = buildUnnamed1682(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed1673(); - o.metricNames = buildUnnamed1674(); - o.overlapMetricNames = buildUnnamed1675(); + o.dimensionFilters = buildUnnamed1683(); + o.metricNames = buildUnnamed1684(); + o.overlapMetricNames = buildUnnamed1685(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6712,25 +6712,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed1672(o.breakdown); + checkUnnamed1682(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed1673(o.dimensionFilters); - checkUnnamed1674(o.metricNames); - checkUnnamed1675(o.overlapMetricNames); + checkUnnamed1683(o.dimensionFilters); + checkUnnamed1684(o.metricNames); + checkUnnamed1685(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed1676() { +buildUnnamed1686() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed1676(core.List<api.Recipient> o) { +checkUnnamed1686(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6744,7 +6744,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed1676(); + o.recipients = buildUnnamed1686(); } buildCounterReportDelivery--; return o; @@ -6756,58 +6756,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed1676(o.recipients); + checkUnnamed1686(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed1677() { +buildUnnamed1687() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1677(core.List<api.DimensionValue> o) { +checkUnnamed1687(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1678() { +buildUnnamed1688() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1678(core.List<api.DimensionValue> o) { +checkUnnamed1688(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1679() { +buildUnnamed1689() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1679(core.List<api.SortedDimension> o) { +checkUnnamed1689(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1680() { +buildUnnamed1690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1680(core.List<core.String> o) { +checkUnnamed1690(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6841,12 +6841,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed1677(); + o.customRichMediaEvents = buildUnnamed1687(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed1678(); - o.dimensions = buildUnnamed1679(); + o.dimensionFilters = buildUnnamed1688(); + o.dimensions = buildUnnamed1689(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed1680(); + o.metricNames = buildUnnamed1690(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6856,90 +6856,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed1677(o.customRichMediaEvents); + checkUnnamed1687(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1678(o.dimensionFilters); - checkUnnamed1679(o.dimensions); + checkUnnamed1688(o.dimensionFilters); + checkUnnamed1689(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed1680(o.metricNames); + checkUnnamed1690(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed1681() { +buildUnnamed1691() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1681(core.List<api.DimensionValue> o) { +checkUnnamed1691(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1682() { +buildUnnamed1692() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1682(core.List<api.SortedDimension> o) { +checkUnnamed1692(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1683() { +buildUnnamed1693() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1683(core.List<api.SortedDimension> o) { +checkUnnamed1693(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1684() { +buildUnnamed1694() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1684(core.List<api.DimensionValue> o) { +checkUnnamed1694(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1685() { +buildUnnamed1695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1685(core.List<core.String> o) { +checkUnnamed1695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1686() { +buildUnnamed1696() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1686(core.List<api.SortedDimension> o) { +checkUnnamed1696(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -6985,14 +6985,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed1681(); - o.conversionDimensions = buildUnnamed1682(); - o.customFloodlightVariables = buildUnnamed1683(); - o.customRichMediaEvents = buildUnnamed1684(); + o.activityFilters = buildUnnamed1691(); + o.conversionDimensions = buildUnnamed1692(); + o.customFloodlightVariables = buildUnnamed1693(); + o.customRichMediaEvents = buildUnnamed1694(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed1685(); - o.perInteractionDimensions = buildUnnamed1686(); + o.metricNames = buildUnnamed1695(); + o.perInteractionDimensions = buildUnnamed1696(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7002,66 +7002,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed1681(o.activityFilters); - checkUnnamed1682(o.conversionDimensions); - checkUnnamed1683(o.customFloodlightVariables); - checkUnnamed1684(o.customRichMediaEvents); + checkUnnamed1691(o.activityFilters); + checkUnnamed1692(o.conversionDimensions); + checkUnnamed1693(o.customFloodlightVariables); + checkUnnamed1694(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed1685(o.metricNames); - checkUnnamed1686(o.perInteractionDimensions); + checkUnnamed1695(o.metricNames); + checkUnnamed1696(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed1687() { +buildUnnamed1697() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1687(core.List<api.DimensionValue> o) { +checkUnnamed1697(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1688() { +buildUnnamed1698() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1688(core.List<api.SortedDimension> o) { +checkUnnamed1698(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1689() { +buildUnnamed1699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1689(core.List<core.String> o) { +checkUnnamed1699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1690() { +buildUnnamed1700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1690(core.List<core.String> o) { +checkUnnamed1700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7075,11 +7075,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed1687(); - o.dimensions = buildUnnamed1688(); + o.dimensionFilters = buildUnnamed1697(); + o.dimensions = buildUnnamed1698(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed1689(); - o.reachByFrequencyMetricNames = buildUnnamed1690(); + o.metricNames = buildUnnamed1699(); + o.reachByFrequencyMetricNames = buildUnnamed1700(); } buildCounterReportReachCriteria--; return o; @@ -7091,23 +7091,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1687(o.dimensionFilters); - checkUnnamed1688(o.dimensions); + checkUnnamed1697(o.dimensionFilters); + checkUnnamed1698(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed1689(o.metricNames); - checkUnnamed1690(o.reachByFrequencyMetricNames); + checkUnnamed1699(o.metricNames); + checkUnnamed1700(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed1691() { +buildUnnamed1701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1691(core.List<core.String> o) { +checkUnnamed1701(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7122,7 +7122,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed1691(); + o.repeatsOnWeekDays = buildUnnamed1701(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -7137,7 +7137,7 @@ unittest.expect(o.every, unittest.equals(42)); unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed1691(o.repeatsOnWeekDays); + checkUnnamed1701(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -7197,53 +7197,53 @@ buildCounterReport--; } -buildUnnamed1692() { +buildUnnamed1702() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1692(core.List<api.Dimension> o) { +checkUnnamed1702(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1693() { +buildUnnamed1703() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1693(core.List<api.Dimension> o) { +checkUnnamed1703(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1694() { +buildUnnamed1704() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1694(core.List<api.Metric> o) { +checkUnnamed1704(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1695() { +buildUnnamed1705() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1695(core.List<api.Metric> o) { +checkUnnamed1705(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7254,11 +7254,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1692(); - o.dimensions = buildUnnamed1693(); + o.dimensionFilters = buildUnnamed1702(); + o.dimensions = buildUnnamed1703(); o.kind = "foo"; - o.metrics = buildUnnamed1694(); - o.pivotedActivityMetrics = buildUnnamed1695(); + o.metrics = buildUnnamed1704(); + o.pivotedActivityMetrics = buildUnnamed1705(); } buildCounterReportCompatibleFields--; return o; @@ -7267,23 +7267,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed1692(o.dimensionFilters); - checkUnnamed1693(o.dimensions); + checkUnnamed1702(o.dimensionFilters); + checkUnnamed1703(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1694(o.metrics); - checkUnnamed1695(o.pivotedActivityMetrics); + checkUnnamed1704(o.metrics); + checkUnnamed1705(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed1696() { +buildUnnamed1706() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1696(core.List<api.Report> o) { +checkUnnamed1706(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7295,7 +7295,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed1696(); + o.items = buildUnnamed1706(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7307,7 +7307,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1696(o.items); + checkUnnamed1706(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7360,14 +7360,14 @@ buildCounterRichMediaExitOverride--; } -buildUnnamed1697() { +buildUnnamed1707() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed1697(core.List<api.SiteContact> o) { +checkUnnamed1707(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7387,7 +7387,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed1697(); + o.siteContacts = buildUnnamed1707(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7407,7 +7407,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1697(o.siteContacts); + checkUnnamed1707(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7478,14 +7478,14 @@ buildCounterSiteSettings--; } -buildUnnamed1698() { +buildUnnamed1708() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed1698(core.List<api.Site> o) { +checkUnnamed1708(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7498,7 +7498,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed1698(); + o.sites = buildUnnamed1708(); } buildCounterSitesListResponse--; return o; @@ -7509,7 +7509,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1698(o.sites); + checkUnnamed1708(o.sites); } buildCounterSitesListResponse--; } @@ -7541,14 +7541,14 @@ buildCounterSize--; } -buildUnnamed1699() { +buildUnnamed1709() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed1699(core.List<api.Size> o) { +checkUnnamed1709(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7560,7 +7560,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed1699(); + o.sizes = buildUnnamed1709(); } buildCounterSizesListResponse--; return o; @@ -7570,7 +7570,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1699(o.sizes); + checkUnnamed1709(o.sizes); } buildCounterSizesListResponse--; } @@ -7598,14 +7598,14 @@ buildCounterSortedDimension--; } -buildUnnamed1700() { +buildUnnamed1710() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1700(core.List<core.String> o) { +checkUnnamed1710(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7617,7 +7617,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed1700(); + o.availablePermissionIds = buildUnnamed1710(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7630,7 +7630,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1700(o.availablePermissionIds); + checkUnnamed1710(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7638,14 +7638,14 @@ buildCounterSubaccount--; } -buildUnnamed1701() { +buildUnnamed1711() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed1701(core.List<api.Subaccount> o) { +checkUnnamed1711(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7658,7 +7658,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed1701(); + o.subaccounts = buildUnnamed1711(); } buildCounterSubaccountsListResponse--; return o; @@ -7669,7 +7669,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1701(o.subaccounts); + checkUnnamed1711(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7809,14 +7809,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed1702() { +buildUnnamed1712() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed1702(core.List<api.TargetableRemarketingList> o) { +checkUnnamed1712(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -7829,7 +7829,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed1702(); + o.targetableRemarketingLists = buildUnnamed1712(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7840,84 +7840,84 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1702(o.targetableRemarketingLists); + checkUnnamed1712(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed1703() { +buildUnnamed1713() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1703(core.List<api.Browser> o) { +checkUnnamed1713(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed1704() { +buildUnnamed1714() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1704(core.List<api.ConnectionType> o) { +checkUnnamed1714(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed1705() { +buildUnnamed1715() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1705(core.List<api.MobileCarrier> o) { +checkUnnamed1715(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed1706() { +buildUnnamed1716() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1706(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1716(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed1707() { +buildUnnamed1717() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1707(core.List<api.OperatingSystem> o) { +checkUnnamed1717(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed1708() { +buildUnnamed1718() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed1708(core.List<api.PlatformType> o) { +checkUnnamed1718(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -7928,12 +7928,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed1703(); - o.connectionTypes = buildUnnamed1704(); - o.mobileCarriers = buildUnnamed1705(); - o.operatingSystemVersions = buildUnnamed1706(); - o.operatingSystems = buildUnnamed1707(); - o.platformTypes = buildUnnamed1708(); + o.browsers = buildUnnamed1713(); + o.connectionTypes = buildUnnamed1714(); + o.mobileCarriers = buildUnnamed1715(); + o.operatingSystemVersions = buildUnnamed1716(); + o.operatingSystems = buildUnnamed1717(); + o.platformTypes = buildUnnamed1718(); } buildCounterTechnologyTargeting--; return o; @@ -7942,12 +7942,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed1703(o.browsers); - checkUnnamed1704(o.connectionTypes); - checkUnnamed1705(o.mobileCarriers); - checkUnnamed1706(o.operatingSystemVersions); - checkUnnamed1707(o.operatingSystems); - checkUnnamed1708(o.platformTypes); + checkUnnamed1713(o.browsers); + checkUnnamed1714(o.connectionTypes); + checkUnnamed1715(o.mobileCarriers); + checkUnnamed1716(o.operatingSystemVersions); + checkUnnamed1717(o.operatingSystems); + checkUnnamed1718(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8050,14 +8050,14 @@ buildCounterUserProfile--; } -buildUnnamed1709() { +buildUnnamed1719() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed1709(core.List<api.UserProfile> o) { +checkUnnamed1719(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -8069,7 +8069,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed1709(); + o.items = buildUnnamed1719(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8080,20 +8080,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1709(o.items); + checkUnnamed1719(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed1710() { +buildUnnamed1720() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed1710(core.List<api.UserRolePermission> o) { +checkUnnamed1720(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8110,7 +8110,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed1710(); + o.permissions = buildUnnamed1720(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -8126,7 +8126,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed1710(o.permissions); + checkUnnamed1720(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8182,14 +8182,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed1711() { +buildUnnamed1721() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed1711(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed1721(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -8201,7 +8201,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed1711(); + o.userRolePermissionGroups = buildUnnamed1721(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8211,19 +8211,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1711(o.userRolePermissionGroups); + checkUnnamed1721(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed1712() { +buildUnnamed1722() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed1712(core.List<api.UserRolePermission> o) { +checkUnnamed1722(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8235,7 +8235,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed1712(); + o.userRolePermissions = buildUnnamed1722(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8245,19 +8245,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1712(o.userRolePermissions); + checkUnnamed1722(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed1713() { +buildUnnamed1723() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed1713(core.List<api.UserRole> o) { +checkUnnamed1723(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -8270,7 +8270,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed1713(); + o.userRoles = buildUnnamed1723(); } buildCounterUserRolesListResponse--; return o; @@ -8281,141 +8281,11 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1713(o.userRoles); + checkUnnamed1723(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed1714() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1714(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1715() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1715(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1716() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1716(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1717() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1717(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1718() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1718(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1719() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1719(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1720() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1720(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1721() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1721(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1722() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1722(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1723() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1723(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed1724() { var o = new core.List<core.String>(); o.add("foo"); @@ -9417,6 +9287,136 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed1801() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1801(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1802() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1802(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1803() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1803(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1804() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1804(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1805() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1805(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1806() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1806(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1807() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1807(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1808() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1808(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1809() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1809(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1810() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1810(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + main() { unittest.group("obj-schema-Account", () { @@ -11647,7 +11647,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed1714(); + var arg_ids = buildUnnamed1724(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11895,7 +11895,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed1715(); + var arg_ids = buildUnnamed1725(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12198,27 +12198,27 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed1716(); - var arg_campaignIds = buildUnnamed1717(); + var arg_audienceSegmentIds = buildUnnamed1726(); + var arg_campaignIds = buildUnnamed1727(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed1718(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed1719(); + var arg_creativeIds = buildUnnamed1728(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed1729(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed1720(); - var arg_landingPageIds = buildUnnamed1721(); + var arg_ids = buildUnnamed1730(); + var arg_landingPageIds = buildUnnamed1731(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed1722(); - var arg_remarketingListIds = buildUnnamed1723(); + var arg_placementIds = buildUnnamed1732(); + var arg_remarketingListIds = buildUnnamed1733(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed1724(); + var arg_sizeIds = buildUnnamed1734(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed1725(); + var arg_type = buildUnnamed1735(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -12585,7 +12585,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1726(); + var arg_ids = buildUnnamed1736(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12884,9 +12884,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed1727(); - var arg_floodlightConfigurationIds = buildUnnamed1728(); - var arg_ids = buildUnnamed1729(); + var arg_advertiserGroupIds = buildUnnamed1737(); + var arg_floodlightConfigurationIds = buildUnnamed1738(); + var arg_ids = buildUnnamed1739(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -13392,12 +13392,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed1730(); - var arg_advertiserIds = buildUnnamed1731(); + var arg_advertiserGroupIds = buildUnnamed1740(); + var arg_advertiserIds = buildUnnamed1741(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed1732(); - var arg_ids = buildUnnamed1733(); + var arg_excludedIds = buildUnnamed1742(); + var arg_ids = buildUnnamed1743(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13649,15 +13649,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed1734(); + var arg_ids = buildUnnamed1744(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed1735(); + var arg_objectIds = buildUnnamed1745(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed1736(); + var arg_userProfileIds = buildUnnamed1746(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13725,10 +13725,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed1737(); - var arg_dartIds = buildUnnamed1738(); + var arg_countryDartIds = buildUnnamed1747(); + var arg_dartIds = buildUnnamed1748(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed1739(); + var arg_regionDartIds = buildUnnamed1749(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14073,7 +14073,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1740(); + var arg_ids = buildUnnamed1750(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14698,7 +14698,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed1741(); + var arg_ids = buildUnnamed1751(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15075,8 +15075,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1742(); - var arg_ids = buildUnnamed1743(); + var arg_advertiserIds = buildUnnamed1752(); + var arg_ids = buildUnnamed1753(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15376,9 +15376,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1744(); + var arg_advertiserIds = buildUnnamed1754(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed1745(); + var arg_ids = buildUnnamed1755(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15683,18 +15683,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed1746(); - var arg_creativeFieldIds = buildUnnamed1747(); - var arg_ids = buildUnnamed1748(); + var arg_companionCreativeIds = buildUnnamed1756(); + var arg_creativeFieldIds = buildUnnamed1757(); + var arg_ids = buildUnnamed1758(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed1749(); + var arg_renderingIds = buildUnnamed1759(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed1750(); + var arg_sizeIds = buildUnnamed1760(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed1751(); + var arg_types = buildUnnamed1761(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -16006,8 +16006,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed1752(); - var arg_ids = buildUnnamed1753(); + var arg_directorySiteIds = buildUnnamed1762(); + var arg_ids = buildUnnamed1763(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16197,7 +16197,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed1754(); + var arg_ids = buildUnnamed1764(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -16391,7 +16391,7 @@ api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_names = buildUnnamed1755(); + var arg_names = buildUnnamed1765(); var arg_objectId = "foo"; var arg_objectType = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -16629,8 +16629,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed1756(); - var arg_ids = buildUnnamed1757(); + var arg_eventTagTypes = buildUnnamed1766(); + var arg_ids = buildUnnamed1767(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -17168,12 +17168,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed1758(); + var arg_floodlightActivityGroupIds = buildUnnamed1768(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed1759(); + var arg_ids = buildUnnamed1769(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17482,7 +17482,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed1760(); + var arg_ids = buildUnnamed1770(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17728,7 +17728,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1761(); + var arg_ids = buildUnnamed1771(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -17969,12 +17969,12 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed1762(); + var arg_ids = buildUnnamed1772(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed1763(); + var arg_orderId = buildUnnamed1773(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed1764(); + var arg_siteId = buildUnnamed1774(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -18907,12 +18907,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed1765(); + var arg_ids = buildUnnamed1775(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed1766(); + var arg_orderId = buildUnnamed1776(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed1767(); + var arg_siteId = buildUnnamed1777(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19054,11 +19054,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed1768(); + var arg_ids = buildUnnamed1778(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed1769(); + var arg_siteId = buildUnnamed1779(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19246,12 +19246,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1770(); + var arg_advertiserIds = buildUnnamed1780(); var arg_archived = true; - var arg_campaignIds = buildUnnamed1771(); - var arg_contentCategoryIds = buildUnnamed1772(); - var arg_directorySiteIds = buildUnnamed1773(); - var arg_ids = buildUnnamed1774(); + var arg_campaignIds = buildUnnamed1781(); + var arg_contentCategoryIds = buildUnnamed1782(); + var arg_directorySiteIds = buildUnnamed1783(); + var arg_ids = buildUnnamed1784(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19259,10 +19259,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed1775(); - var arg_pricingTypes = buildUnnamed1776(); + var arg_placementStrategyIds = buildUnnamed1785(); + var arg_pricingTypes = buildUnnamed1786(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed1777(); + var arg_siteIds = buildUnnamed1787(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19626,7 +19626,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1778(); + var arg_ids = buildUnnamed1788(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19812,8 +19812,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed1779(); - var arg_tagFormats = buildUnnamed1780(); + var arg_placementIds = buildUnnamed1789(); + var arg_tagFormats = buildUnnamed1790(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -19984,14 +19984,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1781(); + var arg_advertiserIds = buildUnnamed1791(); var arg_archived = true; - var arg_campaignIds = buildUnnamed1782(); - var arg_compatibilities = buildUnnamed1783(); - var arg_contentCategoryIds = buildUnnamed1784(); - var arg_directorySiteIds = buildUnnamed1785(); - var arg_groupIds = buildUnnamed1786(); - var arg_ids = buildUnnamed1787(); + var arg_campaignIds = buildUnnamed1792(); + var arg_compatibilities = buildUnnamed1793(); + var arg_contentCategoryIds = buildUnnamed1794(); + var arg_directorySiteIds = buildUnnamed1795(); + var arg_groupIds = buildUnnamed1796(); + var arg_ids = buildUnnamed1797(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19999,11 +19999,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed1788(); - var arg_pricingTypes = buildUnnamed1789(); + var arg_placementStrategyIds = buildUnnamed1798(); + var arg_pricingTypes = buildUnnamed1799(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed1790(); - var arg_sizeIds = buildUnnamed1791(); + var arg_siteIds = buildUnnamed1800(); + var arg_sizeIds = buildUnnamed1801(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -20486,8 +20486,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1792(); - var arg_ids = buildUnnamed1793(); + var arg_advertiserIds = buildUnnamed1802(); + var arg_ids = buildUnnamed1803(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21835,9 +21835,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed1794(); - var arg_directorySiteIds = buildUnnamed1795(); - var arg_ids = buildUnnamed1796(); + var arg_campaignIds = buildUnnamed1804(); + var arg_directorySiteIds = buildUnnamed1805(); + var arg_ids = buildUnnamed1806(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22149,7 +22149,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed1797(); + var arg_ids = buildUnnamed1807(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -22326,7 +22326,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1798(); + var arg_ids = buildUnnamed1808(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22908,7 +22908,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1799(); + var arg_ids = buildUnnamed1809(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -23137,7 +23137,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed1800(); + var arg_ids = buildUnnamed1810(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v2_6_test.dart b/generated/googleapis/test/dfareporting/v2_6_test.dart index 875aaec..6127055 100644 --- a/generated/googleapis/test/dfareporting/v2_6_test.dart +++ b/generated/googleapis/test/dfareporting/v2_6_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2643() { +buildUnnamed2717() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2643(core.List<core.String> o) { +checkUnnamed2717(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2644() { +buildUnnamed2718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2644(core.List<core.String> o) { +checkUnnamed2718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed2643(); + o.accountPermissionIds = buildUnnamed2717(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed2644(); + o.availablePermissionIds = buildUnnamed2718(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2643(o.accountPermissionIds); + checkUnnamed2717(o.accountPermissionIds); unittest.expect(o.accountProfile, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed2644(o.availablePermissionIds); + checkUnnamed2718(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed2645() { +buildUnnamed2719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2645(core.List<core.String> o) { +checkUnnamed2719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed2645(); + o.accountProfiles = buildUnnamed2719(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed2645(o.accountProfiles); + checkUnnamed2719(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -224,14 +224,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed2646() { +buildUnnamed2720() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed2646(core.List<api.AccountPermissionGroup> o) { +checkUnnamed2720(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -242,7 +242,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed2646(); + o.accountPermissionGroups = buildUnnamed2720(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed2646(o.accountPermissionGroups); + checkUnnamed2720(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed2647() { +buildUnnamed2721() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed2647(core.List<api.AccountPermission> o) { +checkUnnamed2721(core.List<api.AccountPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermission(o[0]); checkAccountPermission(o[1]); @@ -276,7 +276,7 @@ var o = new api.AccountPermissionsListResponse(); buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed2647(); + o.accountPermissions = buildUnnamed2721(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed2647(o.accountPermissions); + checkUnnamed2721(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed2648() { +buildUnnamed2722() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed2648(core.List<api.AccountUserProfile> o) { +checkUnnamed2722(core.List<api.AccountUserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUserProfile(o[0]); checkAccountUserProfile(o[1]); @@ -359,7 +359,7 @@ var o = new api.AccountUserProfilesListResponse(); buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed2648(); + o.accountUserProfiles = buildUnnamed2722(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed2648(o.accountUserProfiles); + checkUnnamed2722(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed2649() { +buildUnnamed2723() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2649(core.List<api.Account> o) { +checkUnnamed2723(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -395,7 +395,7 @@ var o = new api.AccountsListResponse(); buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed2649(); + o.accounts = buildUnnamed2723(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed2649(o.accounts); + checkUnnamed2723(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed2650() { +buildUnnamed2724() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2650(core.List<api.DimensionValue> o) { +checkUnnamed2724(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2651() { +buildUnnamed2725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2651(core.List<core.String> o) { +checkUnnamed2725(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed2650(); + o.filters = buildUnnamed2724(); o.kind = "foo"; - o.metricNames = buildUnnamed2651(); + o.metricNames = buildUnnamed2725(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed2650(o.filters); + checkUnnamed2724(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2651(o.metricNames); + checkUnnamed2725(o.metricNames); } buildCounterActivities--; } -buildUnnamed2652() { +buildUnnamed2726() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2652(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2726(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2653() { +buildUnnamed2727() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2653(core.List<api.EventTagOverride> o) { +checkUnnamed2727(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2654() { +buildUnnamed2728() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed2654(core.List<api.PlacementAssignment> o) { +checkUnnamed2728(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,14 +519,14 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed2652(); + o.creativeGroupAssignments = buildUnnamed2726(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed2653(); + o.eventTagOverrides = buildUnnamed2727(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -535,7 +535,7 @@ o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed2654(); + o.placementAssignments = buildUnnamed2728(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -566,14 +566,14 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed2652(o.creativeGroupAssignments); + checkUnnamed2726(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); checkDeliverySchedule(o.deliverySchedule); unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2653(o.eventTagOverrides); + checkUnnamed2727(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -582,7 +582,7 @@ checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2654(o.placementAssignments); + checkUnnamed2728(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -629,14 +629,14 @@ buildCounterAdSlot--; } -buildUnnamed2655() { +buildUnnamed2729() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed2655(core.List<api.Ad> o) { +checkUnnamed2729(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -647,7 +647,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed2655(); + o.ads = buildUnnamed2729(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -658,7 +658,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed2655(o.ads); + checkUnnamed2729(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -737,14 +737,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed2656() { +buildUnnamed2730() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed2656(core.List<api.AdvertiserGroup> o) { +checkUnnamed2730(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -755,7 +755,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed2656(); + o.advertiserGroups = buildUnnamed2730(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -766,21 +766,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed2656(o.advertiserGroups); + checkUnnamed2730(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed2657() { +buildUnnamed2731() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed2657(core.List<api.Advertiser> o) { +checkUnnamed2731(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -791,7 +791,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed2657(); + o.advertisers = buildUnnamed2731(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -802,7 +802,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed2657(o.advertisers); + checkUnnamed2731(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -832,14 +832,14 @@ buildCounterAudienceSegment--; } -buildUnnamed2658() { +buildUnnamed2732() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed2658(core.List<api.AudienceSegment> o) { +checkUnnamed2732(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -850,7 +850,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed2658(); + o.audienceSegments = buildUnnamed2732(); o.id = "foo"; o.name = "foo"; } @@ -861,7 +861,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed2658(o.audienceSegments); + checkUnnamed2732(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -897,14 +897,14 @@ buildCounterBrowser--; } -buildUnnamed2659() { +buildUnnamed2733() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2659(core.List<api.Browser> o) { +checkUnnamed2733(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -915,7 +915,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed2659(); + o.browsers = buildUnnamed2733(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -925,72 +925,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed2659(o.browsers); + checkUnnamed2733(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed2660() { +buildUnnamed2734() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed2660(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed2734(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed2661() { +buildUnnamed2735() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed2661(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed2735(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed2662() { +buildUnnamed2736() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2662(core.List<core.String> o) { +checkUnnamed2736(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2663() { +buildUnnamed2737() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2663(core.List<api.EventTagOverride> o) { +checkUnnamed2737(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2664() { +buildUnnamed2738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2664(core.List<core.String> o) { +checkUnnamed2738(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1002,21 +1002,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed2660(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed2734(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed2661(); + o.audienceSegmentGroups = buildUnnamed2735(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed2662(); + o.creativeGroupIds = buildUnnamed2736(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed2663(); + o.eventTagOverrides = buildUnnamed2737(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1027,7 +1027,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed2664(); + o.traffickerEmails = buildUnnamed2738(); } buildCounterCampaign--; return o; @@ -1037,21 +1037,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2660(o.additionalCreativeOptimizationConfigurations); + checkUnnamed2734(o.additionalCreativeOptimizationConfigurations); unittest.expect(o.advertiserGroupId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed2661(o.audienceSegmentGroups); + checkUnnamed2735(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed2662(o.creativeGroupIds); + checkUnnamed2736(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2663(o.eventTagOverrides); + checkUnnamed2737(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1062,7 +1062,7 @@ unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed2664(o.traffickerEmails); + checkUnnamed2738(o.traffickerEmails); } buildCounterCampaign--; } @@ -1088,14 +1088,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed2665() { +buildUnnamed2739() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed2665(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed2739(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1106,7 +1106,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed2665(); + o.campaignCreativeAssociations = buildUnnamed2739(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1117,21 +1117,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed2665(o.campaignCreativeAssociations); + checkUnnamed2739(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed2666() { +buildUnnamed2740() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed2666(core.List<api.Campaign> o) { +checkUnnamed2740(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1142,7 +1142,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed2666(); + o.campaigns = buildUnnamed2740(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1153,7 +1153,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed2666(o.campaigns); + checkUnnamed2740(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1205,14 +1205,14 @@ buildCounterChangeLog--; } -buildUnnamed2667() { +buildUnnamed2741() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed2667(core.List<api.ChangeLog> o) { +checkUnnamed2741(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1223,7 +1223,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed2667(); + o.changeLogs = buildUnnamed2741(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1234,21 +1234,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed2667(o.changeLogs); + checkUnnamed2741(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed2668() { +buildUnnamed2742() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2668(core.List<api.City> o) { +checkUnnamed2742(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1259,7 +1259,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed2668(); + o.cities = buildUnnamed2742(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1269,7 +1269,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed2668(o.cities); + checkUnnamed2742(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1452,14 +1452,14 @@ buildCounterConnectionType--; } -buildUnnamed2669() { +buildUnnamed2743() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2669(core.List<api.ConnectionType> o) { +checkUnnamed2743(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1470,7 +1470,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed2669(); + o.connectionTypes = buildUnnamed2743(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1480,20 +1480,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed2669(o.connectionTypes); + checkUnnamed2743(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed2670() { +buildUnnamed2744() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed2670(core.List<api.ContentCategory> o) { +checkUnnamed2744(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1504,7 +1504,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed2670(); + o.contentCategories = buildUnnamed2744(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1515,7 +1515,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed2670(o.contentCategories); + checkUnnamed2744(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1547,27 +1547,27 @@ buildCounterContentCategory--; } -buildUnnamed2671() { +buildUnnamed2745() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed2671(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed2745(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); } -buildUnnamed2672() { +buildUnnamed2746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2672(core.List<core.String> o) { +checkUnnamed2746(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1579,9 +1579,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed2671(); + o.customVariables = buildUnnamed2745(); o.encryptedUserId = "foo"; - o.encryptedUserIdCandidates = buildUnnamed2672(); + o.encryptedUserIdCandidates = buildUnnamed2746(); o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; o.kind = "foo"; @@ -1600,9 +1600,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed2671(o.customVariables); + checkUnnamed2745(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); - checkUnnamed2672(o.encryptedUserIdCandidates); + checkUnnamed2746(o.encryptedUserIdCandidates); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1639,14 +1639,14 @@ buildCounterConversionError--; } -buildUnnamed2673() { +buildUnnamed2747() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed2673(core.List<api.ConversionError> o) { +checkUnnamed2747(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1658,7 +1658,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed2673(); + o.errors = buildUnnamed2747(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1669,20 +1669,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed2673(o.errors); + checkUnnamed2747(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed2674() { +buildUnnamed2748() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed2674(core.List<api.Conversion> o) { +checkUnnamed2748(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1693,7 +1693,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed2674(); + o.conversions = buildUnnamed2748(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1704,21 +1704,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed2674(o.conversions); + checkUnnamed2748(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed2675() { +buildUnnamed2749() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed2675(core.List<api.ConversionStatus> o) { +checkUnnamed2749(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1731,7 +1731,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed2675(); + o.status = buildUnnamed2749(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1742,19 +1742,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2675(o.status); + checkUnnamed2749(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed2676() { +buildUnnamed2750() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2676(core.List<api.Country> o) { +checkUnnamed2750(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1765,7 +1765,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed2676(); + o.countries = buildUnnamed2750(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1775,7 +1775,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed2676(o.countries); + checkUnnamed2750(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1808,157 +1808,157 @@ buildCounterCountry--; } -buildUnnamed2677() { +buildUnnamed2751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2677(core.List<core.String> o) { +checkUnnamed2751(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2678() { +buildUnnamed2752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2678(core.List<core.String> o) { +checkUnnamed2752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2679() { +buildUnnamed2753() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2679(core.List<api.ClickTag> o) { +checkUnnamed2753(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2680() { +buildUnnamed2754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2680(core.List<core.String> o) { +checkUnnamed2754(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2681() { +buildUnnamed2755() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2681(core.List<core.String> o) { +checkUnnamed2755(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2682() { +buildUnnamed2756() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2682(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2756(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2683() { +buildUnnamed2757() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed2683(core.List<api.CreativeAsset> o) { +checkUnnamed2757(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed2684() { +buildUnnamed2758() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed2684(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed2758(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed2685() { +buildUnnamed2759() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2685(core.List<core.String> o) { +checkUnnamed2759(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2686() { +buildUnnamed2760() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2686(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2760(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2687() { +buildUnnamed2761() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed2687(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed2761(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed2688() { +buildUnnamed2762() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2688(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2762(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1972,7 +1972,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed2677(); + o.adTagKeys = buildUnnamed2751(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1982,21 +1982,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed2678(); + o.backupImageFeatures = buildUnnamed2752(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed2679(); + o.clickTags = buildUnnamed2753(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed2680(); - o.compatibility = buildUnnamed2681(); + o.companionCreatives = buildUnnamed2754(); + o.compatibility = buildUnnamed2755(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed2682(); + o.counterCustomEvents = buildUnnamed2756(); o.creativeAssetSelection = buildCreativeAssetSelection(); - o.creativeAssets = buildUnnamed2683(); - o.creativeFieldAssignments = buildUnnamed2684(); - o.customKeyValues = buildUnnamed2685(); + o.creativeAssets = buildUnnamed2757(); + o.creativeFieldAssignments = buildUnnamed2758(); + o.customKeyValues = buildUnnamed2759(); o.dynamicAssetSelection = true; - o.exitCustomEvents = buildUnnamed2686(); + o.exitCustomEvents = buildUnnamed2760(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2022,8 +2022,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed2687(); - o.timerCustomEvents = buildUnnamed2688(); + o.thirdPartyUrls = buildUnnamed2761(); + o.timerCustomEvents = buildUnnamed2762(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -2040,7 +2040,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed2677(o.adTagKeys); + checkUnnamed2751(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2050,21 +2050,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed2678(o.backupImageFeatures); + checkUnnamed2752(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed2679(o.clickTags); + checkUnnamed2753(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed2680(o.companionCreatives); - checkUnnamed2681(o.compatibility); + checkUnnamed2754(o.companionCreatives); + checkUnnamed2755(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed2682(o.counterCustomEvents); + checkUnnamed2756(o.counterCustomEvents); checkCreativeAssetSelection(o.creativeAssetSelection); - checkUnnamed2683(o.creativeAssets); - checkUnnamed2684(o.creativeFieldAssignments); - checkUnnamed2685(o.customKeyValues); + checkUnnamed2757(o.creativeAssets); + checkUnnamed2758(o.creativeFieldAssignments); + checkUnnamed2759(o.customKeyValues); unittest.expect(o.dynamicAssetSelection, unittest.isTrue); - checkUnnamed2686(o.exitCustomEvents); + checkUnnamed2760(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2090,8 +2090,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed2687(o.thirdPartyUrls); - checkUnnamed2688(o.timerCustomEvents); + checkUnnamed2761(o.thirdPartyUrls); + checkUnnamed2762(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -2101,27 +2101,27 @@ buildCounterCreative--; } -buildUnnamed2689() { +buildUnnamed2763() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2689(core.List<core.String> o) { +checkUnnamed2763(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2690() { +buildUnnamed2764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2690(core.List<core.String> o) { +checkUnnamed2764(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2141,9 +2141,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); - o.companionCreativeIds = buildUnnamed2689(); + o.companionCreativeIds = buildUnnamed2763(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed2690(); + o.detectedFeatures = buildUnnamed2764(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2193,9 +2193,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); - checkUnnamed2689(o.companionCreativeIds); + checkUnnamed2763(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed2690(o.detectedFeatures); + checkUnnamed2764(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2253,40 +2253,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed2691() { +buildUnnamed2765() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2691(core.List<api.ClickTag> o) { +checkUnnamed2765(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2692() { +buildUnnamed2766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2692(core.List<core.String> o) { +checkUnnamed2766(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2693() { +buildUnnamed2767() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2693(core.List<core.String> o) { +checkUnnamed2767(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2298,12 +2298,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed2691(); - o.detectedFeatures = buildUnnamed2692(); + o.clickTags = buildUnnamed2765(); + o.detectedFeatures = buildUnnamed2766(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed2693(); + o.warnedValidationRules = buildUnnamed2767(); } buildCounterCreativeAssetMetadata--; return o; @@ -2313,24 +2313,24 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed2691(o.clickTags); - checkUnnamed2692(o.detectedFeatures); + checkUnnamed2765(o.clickTags); + checkUnnamed2766(o.detectedFeatures); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2693(o.warnedValidationRules); + checkUnnamed2767(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed2694() { +buildUnnamed2768() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2694(core.List<api.Rule> o) { +checkUnnamed2768(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2342,7 +2342,7 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { o.defaultAssetId = "foo"; - o.rules = buildUnnamed2694(); + o.rules = buildUnnamed2768(); } buildCounterCreativeAssetSelection--; return o; @@ -2352,45 +2352,45 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { unittest.expect(o.defaultAssetId, unittest.equals('foo')); - checkUnnamed2694(o.rules); + checkUnnamed2768(o.rules); } buildCounterCreativeAssetSelection--; } -buildUnnamed2695() { +buildUnnamed2769() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed2695(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed2769(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed2696() { +buildUnnamed2770() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2696(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2770(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2697() { +buildUnnamed2771() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed2697(core.List<api.RichMediaExitOverride> o) { +checkUnnamed2771(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2404,12 +2404,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed2695(); - o.creativeGroupAssignments = buildUnnamed2696(); + o.companionCreativeOverrides = buildUnnamed2769(); + o.creativeGroupAssignments = buildUnnamed2770(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed2697(); + o.richMediaExitOverrides = buildUnnamed2771(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2425,12 +2425,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed2695(o.companionCreativeOverrides); - checkUnnamed2696(o.creativeGroupAssignments); + checkUnnamed2769(o.companionCreativeOverrides); + checkUnnamed2770(o.creativeGroupAssignments); unittest.expect(o.creativeId, unittest.equals('foo')); checkDimensionValue(o.creativeIdDimensionValue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2697(o.richMediaExitOverrides); + checkUnnamed2771(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2551,14 +2551,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed2698() { +buildUnnamed2772() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed2698(core.List<api.CreativeFieldValue> o) { +checkUnnamed2772(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2569,7 +2569,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed2698(); + o.creativeFieldValues = buildUnnamed2772(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2580,21 +2580,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed2698(o.creativeFieldValues); + checkUnnamed2772(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed2699() { +buildUnnamed2773() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed2699(core.List<api.CreativeField> o) { +checkUnnamed2773(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2605,7 +2605,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed2699(); + o.creativeFields = buildUnnamed2773(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2616,7 +2616,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed2699(o.creativeFields); + checkUnnamed2773(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2677,14 +2677,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed2700() { +buildUnnamed2774() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed2700(core.List<api.CreativeGroup> o) { +checkUnnamed2774(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2695,7 +2695,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed2700(); + o.creativeGroups = buildUnnamed2774(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2706,21 +2706,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed2700(o.creativeGroups); + checkUnnamed2774(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed2701() { +buildUnnamed2775() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed2701(core.List<api.OptimizationActivity> o) { +checkUnnamed2775(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2733,7 +2733,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed2701(); + o.optimizationActivitys = buildUnnamed2775(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2745,20 +2745,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2701(o.optimizationActivitys); + checkUnnamed2775(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed2702() { +buildUnnamed2776() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed2702(core.List<api.CreativeAssignment> o) { +checkUnnamed2776(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2769,7 +2769,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed2702(); + o.creativeAssignments = buildUnnamed2776(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2781,7 +2781,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed2702(o.creativeAssignments); + checkUnnamed2776(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2810,14 +2810,14 @@ buildCounterCreativeSettings--; } -buildUnnamed2703() { +buildUnnamed2777() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2703(core.List<api.Creative> o) { +checkUnnamed2777(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2828,7 +2828,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed2703(); + o.creatives = buildUnnamed2777(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2839,60 +2839,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed2703(o.creatives); + checkUnnamed2777(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed2704() { +buildUnnamed2778() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2704(core.List<api.Dimension> o) { +checkUnnamed2778(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2705() { +buildUnnamed2779() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2705(core.List<api.Dimension> o) { +checkUnnamed2779(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2706() { +buildUnnamed2780() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2706(core.List<api.Metric> o) { +checkUnnamed2780(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2707() { +buildUnnamed2781() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2707(core.List<api.Metric> o) { +checkUnnamed2781(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2903,11 +2903,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed2704(); - o.dimensionFilters = buildUnnamed2705(); + o.breakdown = buildUnnamed2778(); + o.dimensionFilters = buildUnnamed2779(); o.kind = "foo"; - o.metrics = buildUnnamed2706(); - o.overlapMetrics = buildUnnamed2707(); + o.metrics = buildUnnamed2780(); + o.overlapMetrics = buildUnnamed2781(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2916,11 +2916,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed2704(o.breakdown); - checkUnnamed2705(o.dimensionFilters); + checkUnnamed2778(o.breakdown); + checkUnnamed2779(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2706(o.metrics); - checkUnnamed2707(o.overlapMetrics); + checkUnnamed2780(o.metrics); + checkUnnamed2781(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2948,14 +2948,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed2708() { +buildUnnamed2782() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2708(core.List<api.DimensionValue> o) { +checkUnnamed2782(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2966,7 +2966,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed2708(); + o.filteredEventIds = buildUnnamed2782(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2976,7 +2976,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed2708(o.filteredEventIds); + checkUnnamed2782(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -3007,27 +3007,27 @@ buildCounterDateRange--; } -buildUnnamed2709() { +buildUnnamed2783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2709(core.List<core.String> o) { +checkUnnamed2783(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2710() { +buildUnnamed2784() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2710(core.List<core.int> o) { +checkUnnamed2784(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -3038,8 +3038,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed2709(); - o.hoursOfDay = buildUnnamed2710(); + o.daysOfWeek = buildUnnamed2783(); + o.hoursOfDay = buildUnnamed2784(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -3049,8 +3049,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed2709(o.daysOfWeek); - checkUnnamed2710(o.hoursOfDay); + checkUnnamed2783(o.daysOfWeek); + checkUnnamed2784(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3202,14 +3202,14 @@ buildCounterDimensionValue--; } -buildUnnamed2711() { +buildUnnamed2785() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2711(core.List<api.DimensionValue> o) { +checkUnnamed2785(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3221,7 +3221,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed2711(); + o.items = buildUnnamed2785(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3233,21 +3233,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2711(o.items); + checkUnnamed2785(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed2712() { +buildUnnamed2786() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed2712(core.List<api.DimensionFilter> o) { +checkUnnamed2786(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3260,7 +3260,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed2712(); + o.filters = buildUnnamed2786(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3273,47 +3273,47 @@ if (buildCounterDimensionValueRequest < 3) { unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2712(o.filters); + checkUnnamed2786(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed2713() { +buildUnnamed2787() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed2713(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed2787(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed2714() { +buildUnnamed2788() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2714(core.List<core.String> o) { +checkUnnamed2788(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2715() { +buildUnnamed2789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2715(core.List<core.String> o) { +checkUnnamed2789(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3325,14 +3325,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed2713(); + o.contactAssignments = buildUnnamed2787(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed2714(); - o.interstitialTagFormats = buildUnnamed2715(); + o.inpageTagFormats = buildUnnamed2788(); + o.interstitialTagFormats = buildUnnamed2789(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3347,14 +3347,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed2713(o.contactAssignments); + checkUnnamed2787(o.contactAssignments); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed2714(o.inpageTagFormats); - checkUnnamed2715(o.interstitialTagFormats); + checkUnnamed2788(o.inpageTagFormats); + checkUnnamed2789(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3422,14 +3422,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed2716() { +buildUnnamed2790() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed2716(core.List<api.DirectorySiteContact> o) { +checkUnnamed2790(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3440,7 +3440,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed2716(); + o.directorySiteContacts = buildUnnamed2790(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3451,7 +3451,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed2716(o.directorySiteContacts); + checkUnnamed2790(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3489,14 +3489,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed2717() { +buildUnnamed2791() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed2717(core.List<api.DirectorySite> o) { +checkUnnamed2791(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3507,7 +3507,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed2717(); + o.directorySites = buildUnnamed2791(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3518,7 +3518,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed2717(o.directorySites); + checkUnnamed2791(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3550,14 +3550,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed2718() { +buildUnnamed2792() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed2718(core.List<api.DynamicTargetingKey> o) { +checkUnnamed2792(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -3568,7 +3568,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed2718(); + o.dynamicTargetingKeys = buildUnnamed2792(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3578,7 +3578,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed2718(o.dynamicTargetingKeys); + checkUnnamed2792(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3609,14 +3609,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed2719() { +buildUnnamed2793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2719(core.List<core.String> o) { +checkUnnamed2793(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3638,7 +3638,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed2719(); + o.siteIds = buildUnnamed2793(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3664,7 +3664,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed2719(o.siteIds); + checkUnnamed2793(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3696,14 +3696,14 @@ buildCounterEventTagOverride--; } -buildUnnamed2720() { +buildUnnamed2794() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed2720(core.List<api.EventTag> o) { +checkUnnamed2794(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3714,7 +3714,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed2720(); + o.eventTags = buildUnnamed2794(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3724,7 +3724,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed2720(o.eventTags); + checkUnnamed2794(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3788,14 +3788,14 @@ buildCounterFile--; } -buildUnnamed2721() { +buildUnnamed2795() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed2721(core.List<api.File> o) { +checkUnnamed2795(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3807,7 +3807,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2721(); + o.items = buildUnnamed2795(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3819,7 +3819,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2721(o.items); + checkUnnamed2795(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3872,14 +3872,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed2722() { +buildUnnamed2796() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed2722(core.List<api.FloodlightActivity> o) { +checkUnnamed2796(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3890,7 +3890,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed2722(); + o.floodlightActivities = buildUnnamed2796(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3901,47 +3901,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed2722(o.floodlightActivities); + checkUnnamed2796(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed2723() { +buildUnnamed2797() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed2723(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed2797(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed2724() { +buildUnnamed2798() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed2724(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed2798(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed2725() { +buildUnnamed2799() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2725(core.List<core.String> o) { +checkUnnamed2799(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3957,7 +3957,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed2723(); + o.defaultTags = buildUnnamed2797(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3972,14 +3972,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed2724(); + o.publisherTags = buildUnnamed2798(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed2725(); + o.userDefinedVariableTypes = buildUnnamed2799(); } buildCounterFloodlightActivity--; return o; @@ -3993,7 +3993,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed2723(o.defaultTags); + checkUnnamed2797(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -4008,14 +4008,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2724(o.publisherTags); + checkUnnamed2798(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed2725(o.userDefinedVariableTypes); + checkUnnamed2799(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4084,14 +4084,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed2726() { +buildUnnamed2800() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed2726(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed2800(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4102,7 +4102,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed2726(); + o.floodlightActivityGroups = buildUnnamed2800(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4113,7 +4113,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed2726(o.floodlightActivityGroups); + checkUnnamed2800(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4149,40 +4149,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed2727() { +buildUnnamed2801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2727(core.List<core.String> o) { +checkUnnamed2801(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2728() { +buildUnnamed2802() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed2728(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed2802(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed2729() { +buildUnnamed2803() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed2729(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed2803(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4206,11 +4206,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed2727(); + o.standardVariableTypes = buildUnnamed2801(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed2728(); - o.userDefinedVariableConfigurations = buildUnnamed2729(); + o.thirdPartyAuthenticationTokens = buildUnnamed2802(); + o.userDefinedVariableConfigurations = buildUnnamed2803(); } buildCounterFloodlightConfiguration--; return o; @@ -4232,23 +4232,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed2727(o.standardVariableTypes); + checkUnnamed2801(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed2728(o.thirdPartyAuthenticationTokens); - checkUnnamed2729(o.userDefinedVariableConfigurations); + checkUnnamed2802(o.thirdPartyAuthenticationTokens); + checkUnnamed2803(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed2730() { +buildUnnamed2804() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed2730(core.List<api.FloodlightConfiguration> o) { +checkUnnamed2804(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4259,7 +4259,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed2730(); + o.floodlightConfigurations = buildUnnamed2804(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4269,46 +4269,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed2730(o.floodlightConfigurations); + checkUnnamed2804(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed2731() { +buildUnnamed2805() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2731(core.List<api.Dimension> o) { +checkUnnamed2805(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2732() { +buildUnnamed2806() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2732(core.List<api.Dimension> o) { +checkUnnamed2806(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2733() { +buildUnnamed2807() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2733(core.List<api.Metric> o) { +checkUnnamed2807(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4319,10 +4319,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2731(); - o.dimensions = buildUnnamed2732(); + o.dimensionFilters = buildUnnamed2805(); + o.dimensions = buildUnnamed2806(); o.kind = "foo"; - o.metrics = buildUnnamed2733(); + o.metrics = buildUnnamed2807(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4331,10 +4331,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed2731(o.dimensionFilters); - checkUnnamed2732(o.dimensions); + checkUnnamed2805(o.dimensionFilters); + checkUnnamed2806(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2733(o.metrics); + checkUnnamed2807(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4387,66 +4387,66 @@ buildCounterFsCommand--; } -buildUnnamed2734() { +buildUnnamed2808() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2734(core.List<api.City> o) { +checkUnnamed2808(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed2735() { +buildUnnamed2809() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2735(core.List<api.Country> o) { +checkUnnamed2809(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed2736() { +buildUnnamed2810() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2736(core.List<api.Metro> o) { +checkUnnamed2810(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed2737() { +buildUnnamed2811() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2737(core.List<api.PostalCode> o) { +checkUnnamed2811(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed2738() { +buildUnnamed2812() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2738(core.List<api.Region> o) { +checkUnnamed2812(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4457,12 +4457,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed2734(); - o.countries = buildUnnamed2735(); + o.cities = buildUnnamed2808(); + o.countries = buildUnnamed2809(); o.excludeCountries = true; - o.metros = buildUnnamed2736(); - o.postalCodes = buildUnnamed2737(); - o.regions = buildUnnamed2738(); + o.metros = buildUnnamed2810(); + o.postalCodes = buildUnnamed2811(); + o.regions = buildUnnamed2812(); } buildCounterGeoTargeting--; return o; @@ -4471,24 +4471,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed2734(o.cities); - checkUnnamed2735(o.countries); + checkUnnamed2808(o.cities); + checkUnnamed2809(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed2736(o.metros); - checkUnnamed2737(o.postalCodes); - checkUnnamed2738(o.regions); + checkUnnamed2810(o.metros); + checkUnnamed2811(o.postalCodes); + checkUnnamed2812(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed2739() { +buildUnnamed2813() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed2739(core.List<api.AdSlot> o) { +checkUnnamed2813(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4500,7 +4500,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed2739(); + o.adSlots = buildUnnamed2813(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4528,7 +4528,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2739(o.adSlots); + checkUnnamed2813(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4551,14 +4551,14 @@ buildCounterInventoryItem--; } -buildUnnamed2740() { +buildUnnamed2814() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed2740(core.List<api.InventoryItem> o) { +checkUnnamed2814(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4569,7 +4569,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed2740(); + o.inventoryItems = buildUnnamed2814(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4580,7 +4580,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed2740(o.inventoryItems); + checkUnnamed2814(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4633,14 +4633,14 @@ buildCounterLandingPage--; } -buildUnnamed2741() { +buildUnnamed2815() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed2741(core.List<api.LandingPage> o) { +checkUnnamed2815(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4652,7 +4652,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed2741(); + o.landingPages = buildUnnamed2815(); } buildCounterLandingPagesListResponse--; return o; @@ -4662,7 +4662,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2741(o.landingPages); + checkUnnamed2815(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4692,14 +4692,14 @@ buildCounterLanguage--; } -buildUnnamed2742() { +buildUnnamed2816() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2742(core.List<api.Language> o) { +checkUnnamed2816(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4710,7 +4710,7 @@ var o = new api.LanguageTargeting(); buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - o.languages = buildUnnamed2742(); + o.languages = buildUnnamed2816(); } buildCounterLanguageTargeting--; return o; @@ -4719,19 +4719,19 @@ checkLanguageTargeting(api.LanguageTargeting o) { buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - checkUnnamed2742(o.languages); + checkUnnamed2816(o.languages); } buildCounterLanguageTargeting--; } -buildUnnamed2743() { +buildUnnamed2817() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2743(core.List<api.Language> o) { +checkUnnamed2817(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4743,7 +4743,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { o.kind = "foo"; - o.languages = buildUnnamed2743(); + o.languages = buildUnnamed2817(); } buildCounterLanguagesListResponse--; return o; @@ -4753,7 +4753,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2743(o.languages); + checkUnnamed2817(o.languages); } buildCounterLanguagesListResponse--; } @@ -4777,14 +4777,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed2744() { +buildUnnamed2818() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed2744(core.List<api.ListPopulationTerm> o) { +checkUnnamed2818(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4795,7 +4795,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed2744(); + o.terms = buildUnnamed2818(); } buildCounterListPopulationClause--; return o; @@ -4804,19 +4804,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed2744(o.terms); + checkUnnamed2818(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed2745() { +buildUnnamed2819() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed2745(core.List<api.ListPopulationClause> o) { +checkUnnamed2819(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4829,7 +4829,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed2745(); + o.listPopulationClauses = buildUnnamed2819(); } buildCounterListPopulationRule--; return o; @@ -4840,7 +4840,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed2745(o.listPopulationClauses); + checkUnnamed2819(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4970,14 +4970,14 @@ buildCounterMetro--; } -buildUnnamed2746() { +buildUnnamed2820() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2746(core.List<api.Metro> o) { +checkUnnamed2820(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4989,7 +4989,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed2746(); + o.metros = buildUnnamed2820(); } buildCounterMetrosListResponse--; return o; @@ -4999,7 +4999,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2746(o.metros); + checkUnnamed2820(o.metros); } buildCounterMetrosListResponse--; } @@ -5031,14 +5031,14 @@ buildCounterMobileCarrier--; } -buildUnnamed2747() { +buildUnnamed2821() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2747(core.List<api.MobileCarrier> o) { +checkUnnamed2821(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -5050,7 +5050,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed2747(); + o.mobileCarriers = buildUnnamed2821(); } buildCounterMobileCarriersListResponse--; return o; @@ -5060,19 +5060,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2747(o.mobileCarriers); + checkUnnamed2821(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed2748() { +buildUnnamed2822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2748(core.List<core.String> o) { +checkUnnamed2822(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5084,7 +5084,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed2748(); + o.objectIds = buildUnnamed2822(); o.status = "foo"; } buildCounterObjectFilter--; @@ -5095,7 +5095,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2748(o.objectIds); + checkUnnamed2822(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5199,14 +5199,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed2749() { +buildUnnamed2823() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2749(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2823(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5218,7 +5218,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed2749(); + o.operatingSystemVersions = buildUnnamed2823(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5228,19 +5228,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2749(o.operatingSystemVersions); + checkUnnamed2823(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed2750() { +buildUnnamed2824() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2750(core.List<api.OperatingSystem> o) { +checkUnnamed2824(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5252,7 +5252,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed2750(); + o.operatingSystems = buildUnnamed2824(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5262,7 +5262,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2750(o.operatingSystems); + checkUnnamed2824(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5290,53 +5290,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed2751() { +buildUnnamed2825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2751(core.List<core.String> o) { +checkUnnamed2825(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2752() { +buildUnnamed2826() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed2752(core.List<api.OrderContact> o) { +checkUnnamed2826(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed2753() { +buildUnnamed2827() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2753(core.List<core.String> o) { +checkUnnamed2827(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2754() { +buildUnnamed2828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2754(core.List<core.String> o) { +checkUnnamed2828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5349,11 +5349,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed2751(); + o.approverUserProfileIds = buildUnnamed2825(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed2752(); + o.contacts = buildUnnamed2826(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5363,8 +5363,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed2753(); - o.siteNames = buildUnnamed2754(); + o.siteId = buildUnnamed2827(); + o.siteNames = buildUnnamed2828(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -5377,11 +5377,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed2751(o.approverUserProfileIds); + checkUnnamed2825(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed2752(o.contacts); + checkUnnamed2826(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -5391,8 +5391,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed2753(o.siteId); - checkUnnamed2754(o.siteNames); + checkUnnamed2827(o.siteId); + checkUnnamed2828(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5426,27 +5426,27 @@ buildCounterOrderContact--; } -buildUnnamed2755() { +buildUnnamed2829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2755(core.List<core.String> o) { +checkUnnamed2829(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2756() { +buildUnnamed2830() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2756(core.List<core.String> o) { +checkUnnamed2830(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5460,13 +5460,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed2755(); + o.approvedByUserProfileIds = buildUnnamed2829(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed2756(); + o.lastSentRecipients = buildUnnamed2830(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5485,13 +5485,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed2755(o.approvedByUserProfileIds); + checkUnnamed2829(o.approvedByUserProfileIds); unittest.expect(o.cancelled, unittest.isTrue); checkLastModifiedInfo(o.createdInfo); unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2756(o.lastSentRecipients); + checkUnnamed2830(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); @@ -5503,14 +5503,14 @@ buildCounterOrderDocument--; } -buildUnnamed2757() { +buildUnnamed2831() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed2757(core.List<api.OrderDocument> o) { +checkUnnamed2831(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5523,7 +5523,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed2757(); + o.orderDocuments = buildUnnamed2831(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5534,19 +5534,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2757(o.orderDocuments); + checkUnnamed2831(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed2758() { +buildUnnamed2832() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed2758(core.List<api.Order> o) { +checkUnnamed2832(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5559,7 +5559,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed2758(); + o.orders = buildUnnamed2832(); } buildCounterOrdersListResponse--; return o; @@ -5570,58 +5570,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2758(o.orders); + checkUnnamed2832(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed2759() { +buildUnnamed2833() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2759(core.List<api.Dimension> o) { +checkUnnamed2833(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2760() { +buildUnnamed2834() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2760(core.List<api.Dimension> o) { +checkUnnamed2834(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2761() { +buildUnnamed2835() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2761(core.List<api.Metric> o) { +checkUnnamed2835(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2762() { +buildUnnamed2836() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2762(core.List<api.Dimension> o) { +checkUnnamed2836(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5632,11 +5632,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed2759(); - o.customFloodlightVariables = buildUnnamed2760(); + o.conversionDimensions = buildUnnamed2833(); + o.customFloodlightVariables = buildUnnamed2834(); o.kind = "foo"; - o.metrics = buildUnnamed2761(); - o.perInteractionDimensions = buildUnnamed2762(); + o.metrics = buildUnnamed2835(); + o.perInteractionDimensions = buildUnnamed2836(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5645,23 +5645,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed2759(o.conversionDimensions); - checkUnnamed2760(o.customFloodlightVariables); + checkUnnamed2833(o.conversionDimensions); + checkUnnamed2834(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2761(o.metrics); - checkUnnamed2762(o.perInteractionDimensions); + checkUnnamed2835(o.metrics); + checkUnnamed2836(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed2763() { +buildUnnamed2837() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2763(core.List<core.String> o) { +checkUnnamed2837(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5706,7 +5706,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed2763(); + o.tagFormats = buildUnnamed2837(); o.tagSetting = buildTagSetting(); } buildCounterPlacement--; @@ -5750,7 +5750,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed2763(o.tagFormats); + checkUnnamed2837(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5781,14 +5781,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed2764() { +buildUnnamed2838() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2764(core.List<core.String> o) { +checkUnnamed2838(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5805,7 +5805,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed2764(); + o.childPlacementIds = buildUnnamed2838(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5839,7 +5839,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed2764(o.childPlacementIds); + checkUnnamed2838(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5863,14 +5863,14 @@ buildCounterPlacementGroup--; } -buildUnnamed2765() { +buildUnnamed2839() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed2765(core.List<api.PlacementGroup> o) { +checkUnnamed2839(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5883,7 +5883,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed2765(); + o.placementGroups = buildUnnamed2839(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5894,19 +5894,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2765(o.placementGroups); + checkUnnamed2839(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed2766() { +buildUnnamed2840() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed2766(core.List<api.PlacementStrategy> o) { +checkUnnamed2840(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5919,7 +5919,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed2766(); + o.placementStrategies = buildUnnamed2840(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5930,7 +5930,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2766(o.placementStrategies); + checkUnnamed2840(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5960,14 +5960,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed2767() { +buildUnnamed2841() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed2767(core.List<api.TagData> o) { +checkUnnamed2841(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5979,7 +5979,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed2767(); + o.tagDatas = buildUnnamed2841(); } buildCounterPlacementTag--; return o; @@ -5989,19 +5989,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed2767(o.tagDatas); + checkUnnamed2841(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed2768() { +buildUnnamed2842() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed2768(core.List<api.PlacementTag> o) { +checkUnnamed2842(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -6013,7 +6013,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed2768(); + o.placementTags = buildUnnamed2842(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -6023,19 +6023,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2768(o.placementTags); + checkUnnamed2842(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed2769() { +buildUnnamed2843() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed2769(core.List<api.Placement> o) { +checkUnnamed2843(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -6048,7 +6048,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed2769(); + o.placements = buildUnnamed2843(); } buildCounterPlacementsListResponse--; return o; @@ -6059,7 +6059,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2769(o.placements); + checkUnnamed2843(o.placements); } buildCounterPlacementsListResponse--; } @@ -6087,14 +6087,14 @@ buildCounterPlatformType--; } -buildUnnamed2770() { +buildUnnamed2844() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2770(core.List<api.PlatformType> o) { +checkUnnamed2844(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -6106,7 +6106,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed2770(); + o.platformTypes = buildUnnamed2844(); } buildCounterPlatformTypesListResponse--; return o; @@ -6116,7 +6116,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2770(o.platformTypes); + checkUnnamed2844(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6183,14 +6183,14 @@ buildCounterPostalCode--; } -buildUnnamed2771() { +buildUnnamed2845() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2771(core.List<api.PostalCode> o) { +checkUnnamed2845(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6202,7 +6202,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed2771(); + o.postalCodes = buildUnnamed2845(); } buildCounterPostalCodesListResponse--; return o; @@ -6212,19 +6212,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2771(o.postalCodes); + checkUnnamed2845(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed2772() { +buildUnnamed2846() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed2772(core.List<api.Flight> o) { +checkUnnamed2846(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6237,7 +6237,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed2772(); + o.flights = buildUnnamed2846(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6251,7 +6251,7 @@ if (buildCounterPricing < 3) { unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2772(o.flights); + checkUnnamed2846(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6259,14 +6259,14 @@ buildCounterPricing--; } -buildUnnamed2773() { +buildUnnamed2847() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed2773(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed2847(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6282,7 +6282,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed2773(); + o.pricingPeriods = buildUnnamed2847(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6299,7 +6299,7 @@ unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.flighted, unittest.isTrue); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed2773(o.pricingPeriods); + checkUnnamed2847(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6395,14 +6395,14 @@ buildCounterProject--; } -buildUnnamed2774() { +buildUnnamed2848() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2774(core.List<api.Project> o) { +checkUnnamed2848(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -6415,7 +6415,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed2774(); + o.projects = buildUnnamed2848(); } buildCounterProjectsListResponse--; return o; @@ -6426,71 +6426,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2774(o.projects); + checkUnnamed2848(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed2775() { +buildUnnamed2849() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2775(core.List<api.Dimension> o) { +checkUnnamed2849(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2776() { +buildUnnamed2850() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2776(core.List<api.Dimension> o) { +checkUnnamed2850(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2777() { +buildUnnamed2851() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2777(core.List<api.Metric> o) { +checkUnnamed2851(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2778() { +buildUnnamed2852() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2778(core.List<api.Metric> o) { +checkUnnamed2852(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2779() { +buildUnnamed2853() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2779(core.List<api.Metric> o) { +checkUnnamed2853(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6501,12 +6501,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2775(); - o.dimensions = buildUnnamed2776(); + o.dimensionFilters = buildUnnamed2849(); + o.dimensions = buildUnnamed2850(); o.kind = "foo"; - o.metrics = buildUnnamed2777(); - o.pivotedActivityMetrics = buildUnnamed2778(); - o.reachByFrequencyMetrics = buildUnnamed2779(); + o.metrics = buildUnnamed2851(); + o.pivotedActivityMetrics = buildUnnamed2852(); + o.reachByFrequencyMetrics = buildUnnamed2853(); } buildCounterReachReportCompatibleFields--; return o; @@ -6515,12 +6515,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed2775(o.dimensionFilters); - checkUnnamed2776(o.dimensions); + checkUnnamed2849(o.dimensionFilters); + checkUnnamed2850(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2777(o.metrics); - checkUnnamed2778(o.pivotedActivityMetrics); - checkUnnamed2779(o.reachByFrequencyMetrics); + checkUnnamed2851(o.metrics); + checkUnnamed2852(o.pivotedActivityMetrics); + checkUnnamed2853(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6577,14 +6577,14 @@ buildCounterRegion--; } -buildUnnamed2780() { +buildUnnamed2854() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2780(core.List<api.Region> o) { +checkUnnamed2854(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6596,7 +6596,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed2780(); + o.regions = buildUnnamed2854(); } buildCounterRegionsListResponse--; return o; @@ -6606,7 +6606,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2780(o.regions); + checkUnnamed2854(o.regions); } buildCounterRegionsListResponse--; } @@ -6654,27 +6654,27 @@ buildCounterRemarketingList--; } -buildUnnamed2781() { +buildUnnamed2855() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2781(core.List<core.String> o) { +checkUnnamed2855(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2782() { +buildUnnamed2856() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2782(core.List<core.String> o) { +checkUnnamed2856(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6687,8 +6687,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed2781(); - o.sharedAdvertiserIds = buildUnnamed2782(); + o.sharedAccountIds = buildUnnamed2855(); + o.sharedAdvertiserIds = buildUnnamed2856(); } buildCounterRemarketingListShare--; return o; @@ -6699,20 +6699,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed2781(o.sharedAccountIds); - checkUnnamed2782(o.sharedAdvertiserIds); + checkUnnamed2855(o.sharedAccountIds); + checkUnnamed2856(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed2783() { +buildUnnamed2857() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed2783(core.List<api.RemarketingList> o) { +checkUnnamed2857(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6725,7 +6725,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed2783(); + o.remarketingLists = buildUnnamed2857(); } buildCounterRemarketingListsListResponse--; return o; @@ -6736,45 +6736,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2783(o.remarketingLists); + checkUnnamed2857(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed2784() { +buildUnnamed2858() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2784(core.List<api.DimensionValue> o) { +checkUnnamed2858(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2785() { +buildUnnamed2859() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2785(core.List<api.SortedDimension> o) { +checkUnnamed2859(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2786() { +buildUnnamed2860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2786(core.List<core.String> o) { +checkUnnamed2860(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6788,9 +6788,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2784(); - o.dimensions = buildUnnamed2785(); - o.metricNames = buildUnnamed2786(); + o.dimensionFilters = buildUnnamed2858(); + o.dimensions = buildUnnamed2859(); + o.metricNames = buildUnnamed2860(); } buildCounterReportCriteria--; return o; @@ -6802,60 +6802,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2784(o.dimensionFilters); - checkUnnamed2785(o.dimensions); - checkUnnamed2786(o.metricNames); + checkUnnamed2858(o.dimensionFilters); + checkUnnamed2859(o.dimensions); + checkUnnamed2860(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed2787() { +buildUnnamed2861() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2787(core.List<api.SortedDimension> o) { +checkUnnamed2861(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2788() { +buildUnnamed2862() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2788(core.List<api.DimensionValue> o) { +checkUnnamed2862(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2789() { +buildUnnamed2863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2789(core.List<core.String> o) { +checkUnnamed2863(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2790() { +buildUnnamed2864() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2790(core.List<core.String> o) { +checkUnnamed2864(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6866,12 +6866,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed2787(); + o.breakdown = buildUnnamed2861(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed2788(); - o.metricNames = buildUnnamed2789(); - o.overlapMetricNames = buildUnnamed2790(); + o.dimensionFilters = buildUnnamed2862(); + o.metricNames = buildUnnamed2863(); + o.overlapMetricNames = buildUnnamed2864(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6881,25 +6881,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed2787(o.breakdown); + checkUnnamed2861(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed2788(o.dimensionFilters); - checkUnnamed2789(o.metricNames); - checkUnnamed2790(o.overlapMetricNames); + checkUnnamed2862(o.dimensionFilters); + checkUnnamed2863(o.metricNames); + checkUnnamed2864(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed2791() { +buildUnnamed2865() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed2791(core.List<api.Recipient> o) { +checkUnnamed2865(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6913,7 +6913,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed2791(); + o.recipients = buildUnnamed2865(); } buildCounterReportDelivery--; return o; @@ -6925,58 +6925,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed2791(o.recipients); + checkUnnamed2865(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed2792() { +buildUnnamed2866() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2792(core.List<api.DimensionValue> o) { +checkUnnamed2866(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2793() { +buildUnnamed2867() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2793(core.List<api.DimensionValue> o) { +checkUnnamed2867(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2794() { +buildUnnamed2868() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2794(core.List<api.SortedDimension> o) { +checkUnnamed2868(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2795() { +buildUnnamed2869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2795(core.List<core.String> o) { +checkUnnamed2869(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7010,12 +7010,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed2792(); + o.customRichMediaEvents = buildUnnamed2866(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2793(); - o.dimensions = buildUnnamed2794(); + o.dimensionFilters = buildUnnamed2867(); + o.dimensions = buildUnnamed2868(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2795(); + o.metricNames = buildUnnamed2869(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -7025,90 +7025,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed2792(o.customRichMediaEvents); + checkUnnamed2866(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2793(o.dimensionFilters); - checkUnnamed2794(o.dimensions); + checkUnnamed2867(o.dimensionFilters); + checkUnnamed2868(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2795(o.metricNames); + checkUnnamed2869(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed2796() { +buildUnnamed2870() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2796(core.List<api.DimensionValue> o) { +checkUnnamed2870(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2797() { +buildUnnamed2871() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2797(core.List<api.SortedDimension> o) { +checkUnnamed2871(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2798() { +buildUnnamed2872() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2798(core.List<api.SortedDimension> o) { +checkUnnamed2872(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2799() { +buildUnnamed2873() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2799(core.List<api.DimensionValue> o) { +checkUnnamed2873(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2800() { +buildUnnamed2874() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2800(core.List<core.String> o) { +checkUnnamed2874(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2801() { +buildUnnamed2875() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2801(core.List<api.SortedDimension> o) { +checkUnnamed2875(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -7154,14 +7154,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed2796(); - o.conversionDimensions = buildUnnamed2797(); - o.customFloodlightVariables = buildUnnamed2798(); - o.customRichMediaEvents = buildUnnamed2799(); + o.activityFilters = buildUnnamed2870(); + o.conversionDimensions = buildUnnamed2871(); + o.customFloodlightVariables = buildUnnamed2872(); + o.customRichMediaEvents = buildUnnamed2873(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2800(); - o.perInteractionDimensions = buildUnnamed2801(); + o.metricNames = buildUnnamed2874(); + o.perInteractionDimensions = buildUnnamed2875(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7171,66 +7171,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed2796(o.activityFilters); - checkUnnamed2797(o.conversionDimensions); - checkUnnamed2798(o.customFloodlightVariables); - checkUnnamed2799(o.customRichMediaEvents); + checkUnnamed2870(o.activityFilters); + checkUnnamed2871(o.conversionDimensions); + checkUnnamed2872(o.customFloodlightVariables); + checkUnnamed2873(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2800(o.metricNames); - checkUnnamed2801(o.perInteractionDimensions); + checkUnnamed2874(o.metricNames); + checkUnnamed2875(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed2802() { +buildUnnamed2876() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2802(core.List<api.DimensionValue> o) { +checkUnnamed2876(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2803() { +buildUnnamed2877() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2803(core.List<api.SortedDimension> o) { +checkUnnamed2877(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2804() { +buildUnnamed2878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2804(core.List<core.String> o) { +checkUnnamed2878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2805() { +buildUnnamed2879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2805(core.List<core.String> o) { +checkUnnamed2879(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7244,11 +7244,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2802(); - o.dimensions = buildUnnamed2803(); + o.dimensionFilters = buildUnnamed2876(); + o.dimensions = buildUnnamed2877(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed2804(); - o.reachByFrequencyMetricNames = buildUnnamed2805(); + o.metricNames = buildUnnamed2878(); + o.reachByFrequencyMetricNames = buildUnnamed2879(); } buildCounterReportReachCriteria--; return o; @@ -7260,23 +7260,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2802(o.dimensionFilters); - checkUnnamed2803(o.dimensions); + checkUnnamed2876(o.dimensionFilters); + checkUnnamed2877(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed2804(o.metricNames); - checkUnnamed2805(o.reachByFrequencyMetricNames); + checkUnnamed2878(o.metricNames); + checkUnnamed2879(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed2806() { +buildUnnamed2880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2806(core.List<core.String> o) { +checkUnnamed2880(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7291,7 +7291,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed2806(); + o.repeatsOnWeekDays = buildUnnamed2880(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -7306,7 +7306,7 @@ unittest.expect(o.every, unittest.equals(42)); unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed2806(o.repeatsOnWeekDays); + checkUnnamed2880(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -7366,53 +7366,53 @@ buildCounterReport--; } -buildUnnamed2807() { +buildUnnamed2881() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2807(core.List<api.Dimension> o) { +checkUnnamed2881(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2808() { +buildUnnamed2882() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2808(core.List<api.Dimension> o) { +checkUnnamed2882(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2809() { +buildUnnamed2883() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2809(core.List<api.Metric> o) { +checkUnnamed2883(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2810() { +buildUnnamed2884() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2810(core.List<api.Metric> o) { +checkUnnamed2884(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7423,11 +7423,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2807(); - o.dimensions = buildUnnamed2808(); + o.dimensionFilters = buildUnnamed2881(); + o.dimensions = buildUnnamed2882(); o.kind = "foo"; - o.metrics = buildUnnamed2809(); - o.pivotedActivityMetrics = buildUnnamed2810(); + o.metrics = buildUnnamed2883(); + o.pivotedActivityMetrics = buildUnnamed2884(); } buildCounterReportCompatibleFields--; return o; @@ -7436,23 +7436,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed2807(o.dimensionFilters); - checkUnnamed2808(o.dimensions); + checkUnnamed2881(o.dimensionFilters); + checkUnnamed2882(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2809(o.metrics); - checkUnnamed2810(o.pivotedActivityMetrics); + checkUnnamed2883(o.metrics); + checkUnnamed2884(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed2811() { +buildUnnamed2885() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2811(core.List<api.Report> o) { +checkUnnamed2885(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7464,7 +7464,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed2811(); + o.items = buildUnnamed2885(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7476,7 +7476,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2811(o.items); + checkUnnamed2885(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7552,14 +7552,14 @@ buildCounterRule--; } -buildUnnamed2812() { +buildUnnamed2886() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed2812(core.List<api.SiteContact> o) { +checkUnnamed2886(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7579,7 +7579,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed2812(); + o.siteContacts = buildUnnamed2886(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7599,7 +7599,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2812(o.siteContacts); + checkUnnamed2886(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7670,14 +7670,14 @@ buildCounterSiteSettings--; } -buildUnnamed2813() { +buildUnnamed2887() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed2813(core.List<api.Site> o) { +checkUnnamed2887(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7690,7 +7690,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed2813(); + o.sites = buildUnnamed2887(); } buildCounterSitesListResponse--; return o; @@ -7701,7 +7701,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2813(o.sites); + checkUnnamed2887(o.sites); } buildCounterSitesListResponse--; } @@ -7733,14 +7733,14 @@ buildCounterSize--; } -buildUnnamed2814() { +buildUnnamed2888() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed2814(core.List<api.Size> o) { +checkUnnamed2888(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7752,7 +7752,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed2814(); + o.sizes = buildUnnamed2888(); } buildCounterSizesListResponse--; return o; @@ -7762,7 +7762,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2814(o.sizes); + checkUnnamed2888(o.sizes); } buildCounterSizesListResponse--; } @@ -7790,14 +7790,14 @@ buildCounterSortedDimension--; } -buildUnnamed2815() { +buildUnnamed2889() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2815(core.List<core.String> o) { +checkUnnamed2889(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7809,7 +7809,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed2815(); + o.availablePermissionIds = buildUnnamed2889(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7822,7 +7822,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2815(o.availablePermissionIds); + checkUnnamed2889(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7830,14 +7830,14 @@ buildCounterSubaccount--; } -buildUnnamed2816() { +buildUnnamed2890() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed2816(core.List<api.Subaccount> o) { +checkUnnamed2890(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7850,7 +7850,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed2816(); + o.subaccounts = buildUnnamed2890(); } buildCounterSubaccountsListResponse--; return o; @@ -7861,7 +7861,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2816(o.subaccounts); + checkUnnamed2890(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -8001,14 +8001,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed2817() { +buildUnnamed2891() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed2817(core.List<api.TargetableRemarketingList> o) { +checkUnnamed2891(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -8021,7 +8021,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed2817(); + o.targetableRemarketingLists = buildUnnamed2891(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -8032,7 +8032,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2817(o.targetableRemarketingLists); + checkUnnamed2891(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } @@ -8080,14 +8080,14 @@ buildCounterTargetingTemplate--; } -buildUnnamed2818() { +buildUnnamed2892() { var o = new core.List<api.TargetingTemplate>(); o.add(buildTargetingTemplate()); o.add(buildTargetingTemplate()); return o; } -checkUnnamed2818(core.List<api.TargetingTemplate> o) { +checkUnnamed2892(core.List<api.TargetingTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingTemplate(o[0]); checkTargetingTemplate(o[1]); @@ -8100,7 +8100,7 @@ if (buildCounterTargetingTemplatesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetingTemplates = buildUnnamed2818(); + o.targetingTemplates = buildUnnamed2892(); } buildCounterTargetingTemplatesListResponse--; return o; @@ -8111,84 +8111,84 @@ if (buildCounterTargetingTemplatesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2818(o.targetingTemplates); + checkUnnamed2892(o.targetingTemplates); } buildCounterTargetingTemplatesListResponse--; } -buildUnnamed2819() { +buildUnnamed2893() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2819(core.List<api.Browser> o) { +checkUnnamed2893(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed2820() { +buildUnnamed2894() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2820(core.List<api.ConnectionType> o) { +checkUnnamed2894(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed2821() { +buildUnnamed2895() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2821(core.List<api.MobileCarrier> o) { +checkUnnamed2895(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed2822() { +buildUnnamed2896() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2822(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2896(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed2823() { +buildUnnamed2897() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2823(core.List<api.OperatingSystem> o) { +checkUnnamed2897(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed2824() { +buildUnnamed2898() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2824(core.List<api.PlatformType> o) { +checkUnnamed2898(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -8199,12 +8199,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed2819(); - o.connectionTypes = buildUnnamed2820(); - o.mobileCarriers = buildUnnamed2821(); - o.operatingSystemVersions = buildUnnamed2822(); - o.operatingSystems = buildUnnamed2823(); - o.platformTypes = buildUnnamed2824(); + o.browsers = buildUnnamed2893(); + o.connectionTypes = buildUnnamed2894(); + o.mobileCarriers = buildUnnamed2895(); + o.operatingSystemVersions = buildUnnamed2896(); + o.operatingSystems = buildUnnamed2897(); + o.platformTypes = buildUnnamed2898(); } buildCounterTechnologyTargeting--; return o; @@ -8213,12 +8213,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed2819(o.browsers); - checkUnnamed2820(o.connectionTypes); - checkUnnamed2821(o.mobileCarriers); - checkUnnamed2822(o.operatingSystemVersions); - checkUnnamed2823(o.operatingSystems); - checkUnnamed2824(o.platformTypes); + checkUnnamed2893(o.browsers); + checkUnnamed2894(o.connectionTypes); + checkUnnamed2895(o.mobileCarriers); + checkUnnamed2896(o.operatingSystemVersions); + checkUnnamed2897(o.operatingSystems); + checkUnnamed2898(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8321,14 +8321,14 @@ buildCounterUserProfile--; } -buildUnnamed2825() { +buildUnnamed2899() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed2825(core.List<api.UserProfile> o) { +checkUnnamed2899(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -8340,7 +8340,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2825(); + o.items = buildUnnamed2899(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8351,20 +8351,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2825(o.items); + checkUnnamed2899(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed2826() { +buildUnnamed2900() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2826(core.List<api.UserRolePermission> o) { +checkUnnamed2900(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8381,7 +8381,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed2826(); + o.permissions = buildUnnamed2900(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -8397,7 +8397,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed2826(o.permissions); + checkUnnamed2900(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8453,14 +8453,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed2827() { +buildUnnamed2901() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed2827(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed2901(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -8472,7 +8472,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed2827(); + o.userRolePermissionGroups = buildUnnamed2901(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8482,19 +8482,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2827(o.userRolePermissionGroups); + checkUnnamed2901(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed2828() { +buildUnnamed2902() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2828(core.List<api.UserRolePermission> o) { +checkUnnamed2902(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8506,7 +8506,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed2828(); + o.userRolePermissions = buildUnnamed2902(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8516,19 +8516,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2828(o.userRolePermissions); + checkUnnamed2902(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed2829() { +buildUnnamed2903() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed2829(core.List<api.UserRole> o) { +checkUnnamed2903(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -8541,7 +8541,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed2829(); + o.userRoles = buildUnnamed2903(); } buildCounterUserRolesListResponse--; return o; @@ -8552,973 +8552,11 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2829(o.userRoles); + checkUnnamed2903(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed2830() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2830(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2831() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2831(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2832() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2832(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2833() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2833(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2834() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2834(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2835() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2835(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2836() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2836(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2837() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2837(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2838() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2838(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2839() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2839(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2840() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2840(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2841() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2841(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2842() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2842(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2843() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2843(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2844() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2844(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2845() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2845(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2846() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2846(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2847() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2847(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2848() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2848(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2849() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2849(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2850() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2850(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2851() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2851(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2852() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2852(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2853() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2853(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2854() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2854(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2855() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2855(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2856() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2856(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2857() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2857(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2858() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2858(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2859() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2859(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2860() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2860(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2861() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2861(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2862() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2862(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2863() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2863(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2864() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2864(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2865() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2865(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2866() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2866(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2867() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2867(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2868() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2868(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2869() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2869(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2870() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2870(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2871() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2871(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2872() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2872(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2873() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2873(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2874() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2874(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2875() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2875(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2876() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2876(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2877() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2877(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2878() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2878(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2879() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2879(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2880() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2880(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2881() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2881(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2882() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2882(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2883() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2883(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2884() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2884(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2885() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2885(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2886() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2886(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2887() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2887(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2888() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2888(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2889() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2889(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2890() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2890(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2891() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2891(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2892() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2892(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2893() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2893(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2894() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2894(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2895() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2895(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2896() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2896(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2897() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2897(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2898() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2898(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2899() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2899(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2900() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2900(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2901() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2901(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2902() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2902(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2903() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2903(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed2904() { var o = new core.List<core.String>(); o.add("foo"); @@ -9701,6 +8739,968 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed2918() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2918(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2919() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2919(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2920() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2920(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2921() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2921(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2922() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2922(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2923() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2923(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2924() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2924(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2925() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2925(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2926() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2926(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2927() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2927(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2928() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2928(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2929() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2929(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2930() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2930(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2931() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2931(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2932() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2932(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2933() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2933(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2934() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2934(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2935() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2935(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2936() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2936(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2937() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2937(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2938() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2938(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2939() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2939(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2940() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2940(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2941() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2941(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2942() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2942(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2943() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2943(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2944() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2944(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2945() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2945(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2946() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2946(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2947() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2947(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2948() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2948(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2949() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2949(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2950() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2950(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2951() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2951(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2952() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2952(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2953() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2953(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2954() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2954(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2955() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2955(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2956() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2956(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2957() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2957(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2958() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2958(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2959() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2959(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2960() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2960(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2961() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2961(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2962() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2962(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2963() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2963(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2964() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2964(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2965() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2965(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2966() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2966(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2967() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2967(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2968() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2968(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2969() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2969(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2970() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2970(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2971() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2971(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2972() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2972(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2973() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2973(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2974() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2974(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2975() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2975(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2976() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2976(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2977() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2977(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2978() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2978(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2979() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2979(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2980() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2980(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2981() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2981(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2982() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2982(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2983() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2983(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2984() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2984(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2985() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2985(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2986() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2986(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2987() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2987(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2988() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2988(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2989() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2989(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2990() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2990(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2991() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2991(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + main() { unittest.group("obj-schema-Account", () { @@ -11994,7 +11994,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2830(); + var arg_ids = buildUnnamed2904(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12242,7 +12242,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2831(); + var arg_ids = buildUnnamed2905(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12545,27 +12545,27 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed2832(); - var arg_campaignIds = buildUnnamed2833(); + var arg_audienceSegmentIds = buildUnnamed2906(); + var arg_campaignIds = buildUnnamed2907(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed2834(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed2835(); + var arg_creativeIds = buildUnnamed2908(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed2909(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed2836(); - var arg_landingPageIds = buildUnnamed2837(); + var arg_ids = buildUnnamed2910(); + var arg_landingPageIds = buildUnnamed2911(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed2838(); - var arg_remarketingListIds = buildUnnamed2839(); + var arg_placementIds = buildUnnamed2912(); + var arg_remarketingListIds = buildUnnamed2913(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2840(); + var arg_sizeIds = buildUnnamed2914(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed2841(); + var arg_type = buildUnnamed2915(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -12932,7 +12932,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2842(); + var arg_ids = buildUnnamed2916(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13231,9 +13231,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2843(); - var arg_floodlightConfigurationIds = buildUnnamed2844(); - var arg_ids = buildUnnamed2845(); + var arg_advertiserGroupIds = buildUnnamed2917(); + var arg_floodlightConfigurationIds = buildUnnamed2918(); + var arg_ids = buildUnnamed2919(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -13739,12 +13739,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2846(); - var arg_advertiserIds = buildUnnamed2847(); + var arg_advertiserGroupIds = buildUnnamed2920(); + var arg_advertiserIds = buildUnnamed2921(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed2848(); - var arg_ids = buildUnnamed2849(); + var arg_excludedIds = buildUnnamed2922(); + var arg_ids = buildUnnamed2923(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13996,15 +13996,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed2850(); + var arg_ids = buildUnnamed2924(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed2851(); + var arg_objectIds = buildUnnamed2925(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed2852(); + var arg_userProfileIds = buildUnnamed2926(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14072,10 +14072,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed2853(); - var arg_dartIds = buildUnnamed2854(); + var arg_countryDartIds = buildUnnamed2927(); + var arg_dartIds = buildUnnamed2928(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed2855(); + var arg_regionDartIds = buildUnnamed2929(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14420,7 +14420,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2856(); + var arg_ids = buildUnnamed2930(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15045,7 +15045,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed2857(); + var arg_ids = buildUnnamed2931(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15422,8 +15422,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2858(); - var arg_ids = buildUnnamed2859(); + var arg_advertiserIds = buildUnnamed2932(); + var arg_ids = buildUnnamed2933(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15723,9 +15723,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2860(); + var arg_advertiserIds = buildUnnamed2934(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed2861(); + var arg_ids = buildUnnamed2935(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16030,18 +16030,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed2862(); - var arg_creativeFieldIds = buildUnnamed2863(); - var arg_ids = buildUnnamed2864(); + var arg_companionCreativeIds = buildUnnamed2936(); + var arg_creativeFieldIds = buildUnnamed2937(); + var arg_ids = buildUnnamed2938(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed2865(); + var arg_renderingIds = buildUnnamed2939(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2866(); + var arg_sizeIds = buildUnnamed2940(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed2867(); + var arg_types = buildUnnamed2941(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -16353,8 +16353,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed2868(); - var arg_ids = buildUnnamed2869(); + var arg_directorySiteIds = buildUnnamed2942(); + var arg_ids = buildUnnamed2943(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16544,7 +16544,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed2870(); + var arg_ids = buildUnnamed2944(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -16738,7 +16738,7 @@ api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_names = buildUnnamed2871(); + var arg_names = buildUnnamed2945(); var arg_objectId = "foo"; var arg_objectType = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -16976,8 +16976,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed2872(); - var arg_ids = buildUnnamed2873(); + var arg_eventTagTypes = buildUnnamed2946(); + var arg_ids = buildUnnamed2947(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -17515,12 +17515,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed2874(); + var arg_floodlightActivityGroupIds = buildUnnamed2948(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2875(); + var arg_ids = buildUnnamed2949(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17829,7 +17829,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2876(); + var arg_ids = buildUnnamed2950(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -18075,7 +18075,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2877(); + var arg_ids = buildUnnamed2951(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -18316,12 +18316,12 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2878(); + var arg_ids = buildUnnamed2952(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed2879(); + var arg_orderId = buildUnnamed2953(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed2880(); + var arg_siteId = buildUnnamed2954(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -19311,12 +19311,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed2881(); + var arg_ids = buildUnnamed2955(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed2882(); + var arg_orderId = buildUnnamed2956(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2883(); + var arg_siteId = buildUnnamed2957(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19458,11 +19458,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2884(); + var arg_ids = buildUnnamed2958(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2885(); + var arg_siteId = buildUnnamed2959(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19650,12 +19650,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2886(); + var arg_advertiserIds = buildUnnamed2960(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2887(); - var arg_contentCategoryIds = buildUnnamed2888(); - var arg_directorySiteIds = buildUnnamed2889(); - var arg_ids = buildUnnamed2890(); + var arg_campaignIds = buildUnnamed2961(); + var arg_contentCategoryIds = buildUnnamed2962(); + var arg_directorySiteIds = buildUnnamed2963(); + var arg_ids = buildUnnamed2964(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19663,10 +19663,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed2891(); - var arg_pricingTypes = buildUnnamed2892(); + var arg_placementStrategyIds = buildUnnamed2965(); + var arg_pricingTypes = buildUnnamed2966(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2893(); + var arg_siteIds = buildUnnamed2967(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -20030,7 +20030,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2894(); + var arg_ids = buildUnnamed2968(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -20216,8 +20216,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed2895(); - var arg_tagFormats = buildUnnamed2896(); + var arg_placementIds = buildUnnamed2969(); + var arg_tagFormats = buildUnnamed2970(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -20388,14 +20388,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2897(); + var arg_advertiserIds = buildUnnamed2971(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2898(); - var arg_compatibilities = buildUnnamed2899(); - var arg_contentCategoryIds = buildUnnamed2900(); - var arg_directorySiteIds = buildUnnamed2901(); - var arg_groupIds = buildUnnamed2902(); - var arg_ids = buildUnnamed2903(); + var arg_campaignIds = buildUnnamed2972(); + var arg_compatibilities = buildUnnamed2973(); + var arg_contentCategoryIds = buildUnnamed2974(); + var arg_directorySiteIds = buildUnnamed2975(); + var arg_groupIds = buildUnnamed2976(); + var arg_ids = buildUnnamed2977(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -20403,11 +20403,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed2904(); - var arg_pricingTypes = buildUnnamed2905(); + var arg_placementStrategyIds = buildUnnamed2978(); + var arg_pricingTypes = buildUnnamed2979(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2906(); - var arg_sizeIds = buildUnnamed2907(); + var arg_siteIds = buildUnnamed2980(); + var arg_sizeIds = buildUnnamed2981(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -20890,8 +20890,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2908(); - var arg_ids = buildUnnamed2909(); + var arg_advertiserIds = buildUnnamed2982(); + var arg_ids = buildUnnamed2983(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22239,9 +22239,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed2910(); - var arg_directorySiteIds = buildUnnamed2911(); - var arg_ids = buildUnnamed2912(); + var arg_campaignIds = buildUnnamed2984(); + var arg_directorySiteIds = buildUnnamed2985(); + var arg_ids = buildUnnamed2986(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22553,7 +22553,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed2913(); + var arg_ids = buildUnnamed2987(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -22730,7 +22730,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2914(); + var arg_ids = buildUnnamed2988(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -23158,7 +23158,7 @@ api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_ids = buildUnnamed2915(); + var arg_ids = buildUnnamed2989(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -23613,7 +23613,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2916(); + var arg_ids = buildUnnamed2990(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -23842,7 +23842,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed2917(); + var arg_ids = buildUnnamed2991(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v2_3_test.dart b/generated/googleapis/test/dfareporting/v2_7_test.dart similarity index 88% rename from generated/googleapis/test/dfareporting/v2_3_test.dart rename to generated/googleapis/test/dfareporting/v2_7_test.dart index b85147a..06f9cd9 100644 --- a/generated/googleapis/test/dfareporting/v2_3_test.dart +++ b/generated/googleapis/test/dfareporting/v2_7_test.dart
@@ -1,4 +1,4 @@ -library googleapis.dfareporting.v2_3.test; +library googleapis.dfareporting.v2_7.test; import "dart:core" as core; import "dart:collection" as collection; @@ -9,7 +9,7 @@ import 'package:http/testing.dart' as http_testing; import 'package:unittest/unittest.dart' as unittest; -import 'package:googleapis/dfareporting/v2_3.dart' as api; +import 'package:googleapis/dfareporting/v2_7.dart' as api; class HttpServerMock extends http.BaseClient { core.Function _callback; @@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1889() { +buildUnnamed2397() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1889(core.List<core.String> o) { +checkUnnamed2397(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1890() { +buildUnnamed2398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1890(core.List<core.String> o) { +checkUnnamed2398(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,13 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed1889(); + o.accountPermissionIds = buildUnnamed2397(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed1890(); - o.comscoreVceEnabled = true; + o.availablePermissionIds = buildUnnamed2398(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -100,6 +99,7 @@ o.name = "foo"; o.nielsenOcrEnabled = true; o.reportsConfiguration = buildReportsConfiguration(); + o.shareReportsWithTwitter = true; o.teaserSizeLimit = "foo"; } buildCounterAccount--; @@ -109,13 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1889(o.accountPermissionIds); + checkUnnamed2397(o.accountPermissionIds); unittest.expect(o.accountProfile, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed1890(o.availablePermissionIds); - unittest.expect(o.comscoreVceEnabled, unittest.isTrue); + checkUnnamed2398(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -127,6 +126,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); checkReportsConfiguration(o.reportsConfiguration); + unittest.expect(o.shareReportsWithTwitter, unittest.isTrue); unittest.expect(o.teaserSizeLimit, unittest.equals('foo')); } buildCounterAccount--; @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed1891() { +buildUnnamed2399() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1891(core.List<core.String> o) { +checkUnnamed2399(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed1891(); + o.accountProfiles = buildUnnamed2399(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed1891(o.accountProfiles); + checkUnnamed2399(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -224,14 +224,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed1892() { +buildUnnamed2400() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed1892(core.List<api.AccountPermissionGroup> o) { +checkUnnamed2400(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -242,7 +242,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed1892(); + o.accountPermissionGroups = buildUnnamed2400(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed1892(o.accountPermissionGroups); + checkUnnamed2400(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed1893() { +buildUnnamed2401() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed1893(core.List<api.AccountPermission> o) { +checkUnnamed2401(core.List<api.AccountPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermission(o[0]); checkAccountPermission(o[1]); @@ -276,7 +276,7 @@ var o = new api.AccountPermissionsListResponse(); buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed1893(); + o.accountPermissions = buildUnnamed2401(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed1893(o.accountPermissions); + checkUnnamed2401(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed1894() { +buildUnnamed2402() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed1894(core.List<api.AccountUserProfile> o) { +checkUnnamed2402(core.List<api.AccountUserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUserProfile(o[0]); checkAccountUserProfile(o[1]); @@ -359,7 +359,7 @@ var o = new api.AccountUserProfilesListResponse(); buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed1894(); + o.accountUserProfiles = buildUnnamed2402(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed1894(o.accountUserProfiles); + checkUnnamed2402(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed1895() { +buildUnnamed2403() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1895(core.List<api.Account> o) { +checkUnnamed2403(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -395,7 +395,7 @@ var o = new api.AccountsListResponse(); buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed1895(); + o.accounts = buildUnnamed2403(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed1895(o.accounts); + checkUnnamed2403(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed1896() { +buildUnnamed2404() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1896(core.List<api.DimensionValue> o) { +checkUnnamed2404(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1897() { +buildUnnamed2405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1897(core.List<core.String> o) { +checkUnnamed2405(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed1896(); + o.filters = buildUnnamed2404(); o.kind = "foo"; - o.metricNames = buildUnnamed1897(); + o.metricNames = buildUnnamed2405(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed1896(o.filters); + checkUnnamed2404(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1897(o.metricNames); + checkUnnamed2405(o.metricNames); } buildCounterActivities--; } -buildUnnamed1898() { +buildUnnamed2406() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1898(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2406(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1899() { +buildUnnamed2407() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1899(core.List<api.EventTagOverride> o) { +checkUnnamed2407(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1900() { +buildUnnamed2408() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed1900(core.List<api.PlacementAssignment> o) { +checkUnnamed2408(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,28 +519,30 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed1898(); + o.creativeGroupAssignments = buildUnnamed2406(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed1899(); + o.eventTagOverrides = buildUnnamed2407(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); o.kind = "foo"; + o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed1900(); + o.placementAssignments = buildUnnamed2408(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; o.sslRequired = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); o.subaccountId = "foo"; + o.targetingTemplateId = "foo"; o.technologyTargeting = buildTechnologyTargeting(); o.type = "foo"; } @@ -564,28 +566,30 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed1898(o.creativeGroupAssignments); + checkUnnamed2406(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); checkDeliverySchedule(o.deliverySchedule); unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1899(o.eventTagOverrides); + checkUnnamed2407(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); checkKeyValueTargetingExpression(o.keyValueTargetingExpression); unittest.expect(o.kind, unittest.equals('foo')); + checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1900(o.placementAssignments); + checkUnnamed2408(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.subaccountId, unittest.equals('foo')); + unittest.expect(o.targetingTemplateId, unittest.equals('foo')); checkTechnologyTargeting(o.technologyTargeting); unittest.expect(o.type, unittest.equals('foo')); } @@ -625,14 +629,14 @@ buildCounterAdSlot--; } -buildUnnamed1901() { +buildUnnamed2409() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed1901(core.List<api.Ad> o) { +checkUnnamed2409(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -643,7 +647,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed1901(); + o.ads = buildUnnamed2409(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +658,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed1901(o.ads); + checkUnnamed2409(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +737,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed1902() { +buildUnnamed2410() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed1902(core.List<api.AdvertiserGroup> o) { +checkUnnamed2410(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -751,7 +755,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed1902(); + o.advertiserGroups = buildUnnamed2410(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +766,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed1902(o.advertiserGroups); + checkUnnamed2410(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed1903() { +buildUnnamed2411() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed1903(core.List<api.Advertiser> o) { +checkUnnamed2411(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -787,7 +791,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed1903(); + o.advertisers = buildUnnamed2411(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +802,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed1903(o.advertisers); + checkUnnamed2411(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +832,14 @@ buildCounterAudienceSegment--; } -buildUnnamed1904() { +buildUnnamed2412() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed1904(core.List<api.AudienceSegment> o) { +checkUnnamed2412(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -846,7 +850,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed1904(); + o.audienceSegments = buildUnnamed2412(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +861,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed1904(o.audienceSegments); + checkUnnamed2412(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +897,14 @@ buildCounterBrowser--; } -buildUnnamed1905() { +buildUnnamed2413() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1905(core.List<api.Browser> o) { +checkUnnamed2413(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -911,7 +915,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed1905(); + o.browsers = buildUnnamed2413(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +925,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed1905(o.browsers); + checkUnnamed2413(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed1906() { +buildUnnamed2414() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed1906(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed2414(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed1907() { +buildUnnamed2415() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed1907(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed2415(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed1908() { +buildUnnamed2416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1908(core.List<core.String> o) { +checkUnnamed2416(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1909() { +buildUnnamed2417() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1909(core.List<api.EventTagOverride> o) { +checkUnnamed2417(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1910() { +buildUnnamed2418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1910(core.List<core.String> o) { +checkUnnamed2418(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -998,22 +1002,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed1906(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed2414(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed1907(); + o.audienceSegmentGroups = buildUnnamed2415(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; - o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed1908(); + o.creativeGroupIds = buildUnnamed2416(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed1909(); + o.eventTagOverrides = buildUnnamed2417(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1024,7 +1027,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed1910(); + o.traffickerEmails = buildUnnamed2418(); } buildCounterCampaign--; return o; @@ -1034,22 +1037,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1906(o.additionalCreativeOptimizationConfigurations); + checkUnnamed2414(o.additionalCreativeOptimizationConfigurations); unittest.expect(o.advertiserGroupId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed1907(o.audienceSegmentGroups); + checkUnnamed2415(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.comscoreVceEnabled, unittest.isTrue); checkLastModifiedInfo(o.createInfo); - checkUnnamed1908(o.creativeGroupIds); + checkUnnamed2416(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1909(o.eventTagOverrides); + checkUnnamed2417(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1060,7 +1062,7 @@ unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed1910(o.traffickerEmails); + checkUnnamed2418(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1088,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed1911() { +buildUnnamed2419() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed1911(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed2419(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1104,7 +1106,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed1911(); + o.campaignCreativeAssociations = buildUnnamed2419(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1117,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed1911(o.campaignCreativeAssociations); + checkUnnamed2419(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed1912() { +buildUnnamed2420() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed1912(core.List<api.Campaign> o) { +checkUnnamed2420(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1140,7 +1142,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed1912(); + o.campaigns = buildUnnamed2420(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1153,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed1912(o.campaigns); + checkUnnamed2420(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1205,14 @@ buildCounterChangeLog--; } -buildUnnamed1913() { +buildUnnamed2421() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed1913(core.List<api.ChangeLog> o) { +checkUnnamed2421(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1221,7 +1223,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed1913(); + o.changeLogs = buildUnnamed2421(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1234,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed1913(o.changeLogs); + checkUnnamed2421(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed1914() { +buildUnnamed2422() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1914(core.List<api.City> o) { +checkUnnamed2422(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1257,7 +1259,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed1914(); + o.cities = buildUnnamed2422(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1269,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed1914(o.cities); + checkUnnamed2422(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1398,6 +1400,44 @@ buildCounterCompanionClickThroughOverride--; } +buildUnnamed2423() { + var o = new core.List<api.Size>(); + o.add(buildSize()); + o.add(buildSize()); + return o; +} + +checkUnnamed2423(core.List<api.Size> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSize(o[0]); + checkSize(o[1]); +} + +core.int buildCounterCompanionSetting = 0; +buildCompanionSetting() { + var o = new api.CompanionSetting(); + buildCounterCompanionSetting++; + if (buildCounterCompanionSetting < 3) { + o.companionsDisabled = true; + o.enabledSizes = buildUnnamed2423(); + o.imageOnly = true; + o.kind = "foo"; + } + buildCounterCompanionSetting--; + return o; +} + +checkCompanionSetting(api.CompanionSetting o) { + buildCounterCompanionSetting++; + if (buildCounterCompanionSetting < 3) { + unittest.expect(o.companionsDisabled, unittest.isTrue); + checkUnnamed2423(o.enabledSizes); + unittest.expect(o.imageOnly, unittest.isTrue); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterCompanionSetting--; +} + core.int buildCounterCompatibleFields = 0; buildCompatibleFields() { var o = new api.CompatibleFields(); @@ -1450,14 +1490,14 @@ buildCounterConnectionType--; } -buildUnnamed1915() { +buildUnnamed2424() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1915(core.List<api.ConnectionType> o) { +checkUnnamed2424(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1468,7 +1508,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed1915(); + o.connectionTypes = buildUnnamed2424(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1518,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed1915(o.connectionTypes); + checkUnnamed2424(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed1916() { +buildUnnamed2425() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed1916(core.List<api.ContentCategory> o) { +checkUnnamed2425(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1502,7 +1542,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed1916(); + o.contentCategories = buildUnnamed2425(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1553,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed1916(o.contentCategories); + checkUnnamed2425(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1585,214 @@ buildCounterContentCategory--; } -buildUnnamed1917() { +buildUnnamed2426() { + var o = new core.List<api.CustomFloodlightVariable>(); + o.add(buildCustomFloodlightVariable()); + o.add(buildCustomFloodlightVariable()); + return o; +} + +checkUnnamed2426(core.List<api.CustomFloodlightVariable> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomFloodlightVariable(o[0]); + checkCustomFloodlightVariable(o[1]); +} + +buildUnnamed2427() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2427(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterConversion = 0; +buildConversion() { + var o = new api.Conversion(); + buildCounterConversion++; + if (buildCounterConversion < 3) { + o.childDirectedTreatment = true; + o.customVariables = buildUnnamed2426(); + o.encryptedUserId = "foo"; + o.encryptedUserIdCandidates = buildUnnamed2427(); + o.floodlightActivityId = "foo"; + o.floodlightConfigurationId = "foo"; + o.kind = "foo"; + o.limitAdTracking = true; + o.mobileDeviceId = "foo"; + o.ordinal = "foo"; + o.quantity = "foo"; + o.timestampMicros = "foo"; + o.value = 42.0; + } + buildCounterConversion--; + return o; +} + +checkConversion(api.Conversion o) { + buildCounterConversion++; + if (buildCounterConversion < 3) { + unittest.expect(o.childDirectedTreatment, unittest.isTrue); + checkUnnamed2426(o.customVariables); + unittest.expect(o.encryptedUserId, unittest.equals('foo')); + checkUnnamed2427(o.encryptedUserIdCandidates); + unittest.expect(o.floodlightActivityId, unittest.equals('foo')); + unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.limitAdTracking, unittest.isTrue); + unittest.expect(o.mobileDeviceId, unittest.equals('foo')); + unittest.expect(o.ordinal, unittest.equals('foo')); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.timestampMicros, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals(42.0)); + } + buildCounterConversion--; +} + +core.int buildCounterConversionError = 0; +buildConversionError() { + var o = new api.ConversionError(); + buildCounterConversionError++; + if (buildCounterConversionError < 3) { + o.code = "foo"; + o.kind = "foo"; + o.message = "foo"; + } + buildCounterConversionError--; + return o; +} + +checkConversionError(api.ConversionError o) { + buildCounterConversionError++; + if (buildCounterConversionError < 3) { + unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterConversionError--; +} + +buildUnnamed2428() { + var o = new core.List<api.ConversionError>(); + o.add(buildConversionError()); + o.add(buildConversionError()); + return o; +} + +checkUnnamed2428(core.List<api.ConversionError> o) { + unittest.expect(o, unittest.hasLength(2)); + checkConversionError(o[0]); + checkConversionError(o[1]); +} + +core.int buildCounterConversionStatus = 0; +buildConversionStatus() { + var o = new api.ConversionStatus(); + buildCounterConversionStatus++; + if (buildCounterConversionStatus < 3) { + o.conversion = buildConversion(); + o.errors = buildUnnamed2428(); + o.kind = "foo"; + } + buildCounterConversionStatus--; + return o; +} + +checkConversionStatus(api.ConversionStatus o) { + buildCounterConversionStatus++; + if (buildCounterConversionStatus < 3) { + checkConversion(o.conversion); + checkUnnamed2428(o.errors); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterConversionStatus--; +} + +buildUnnamed2429() { + var o = new core.List<api.Conversion>(); + o.add(buildConversion()); + o.add(buildConversion()); + return o; +} + +checkUnnamed2429(core.List<api.Conversion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkConversion(o[0]); + checkConversion(o[1]); +} + +core.int buildCounterConversionsBatchInsertRequest = 0; +buildConversionsBatchInsertRequest() { + var o = new api.ConversionsBatchInsertRequest(); + buildCounterConversionsBatchInsertRequest++; + if (buildCounterConversionsBatchInsertRequest < 3) { + o.conversions = buildUnnamed2429(); + o.encryptionInfo = buildEncryptionInfo(); + o.kind = "foo"; + } + buildCounterConversionsBatchInsertRequest--; + return o; +} + +checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { + buildCounterConversionsBatchInsertRequest++; + if (buildCounterConversionsBatchInsertRequest < 3) { + checkUnnamed2429(o.conversions); + checkEncryptionInfo(o.encryptionInfo); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterConversionsBatchInsertRequest--; +} + +buildUnnamed2430() { + var o = new core.List<api.ConversionStatus>(); + o.add(buildConversionStatus()); + o.add(buildConversionStatus()); + return o; +} + +checkUnnamed2430(core.List<api.ConversionStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkConversionStatus(o[0]); + checkConversionStatus(o[1]); +} + +core.int buildCounterConversionsBatchInsertResponse = 0; +buildConversionsBatchInsertResponse() { + var o = new api.ConversionsBatchInsertResponse(); + buildCounterConversionsBatchInsertResponse++; + if (buildCounterConversionsBatchInsertResponse < 3) { + o.hasFailures = true; + o.kind = "foo"; + o.status = buildUnnamed2430(); + } + buildCounterConversionsBatchInsertResponse--; + return o; +} + +checkConversionsBatchInsertResponse(api.ConversionsBatchInsertResponse o) { + buildCounterConversionsBatchInsertResponse++; + if (buildCounterConversionsBatchInsertResponse < 3) { + unittest.expect(o.hasFailures, unittest.isTrue); + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2430(o.status); + } + buildCounterConversionsBatchInsertResponse--; +} + +buildUnnamed2431() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1917(core.List<api.Country> o) { +checkUnnamed2431(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1563,7 +1803,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed1917(); + o.countries = buildUnnamed2431(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1573,7 +1813,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed1917(o.countries); + checkUnnamed2431(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1606,157 +1846,157 @@ buildCounterCountry--; } -buildUnnamed1918() { +buildUnnamed2432() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1918(core.List<core.String> o) { +checkUnnamed2432(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1919() { +buildUnnamed2433() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1919(core.List<core.String> o) { +checkUnnamed2433(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1920() { +buildUnnamed2434() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1920(core.List<api.ClickTag> o) { +checkUnnamed2434(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1921() { +buildUnnamed2435() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1921(core.List<core.String> o) { +checkUnnamed2435(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1922() { +buildUnnamed2436() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1922(core.List<core.String> o) { +checkUnnamed2436(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1923() { +buildUnnamed2437() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1923(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2437(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1924() { +buildUnnamed2438() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed1924(core.List<api.CreativeAsset> o) { +checkUnnamed2438(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed1925() { +buildUnnamed2439() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed1925(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed2439(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed1926() { +buildUnnamed2440() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1926(core.List<core.String> o) { +checkUnnamed2440(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1927() { +buildUnnamed2441() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1927(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2441(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1928() { +buildUnnamed2442() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed1928(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed2442(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed1929() { +buildUnnamed2443() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1929(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2443(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1770,7 +2010,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed1918(); + o.adTagKeys = buildUnnamed2432(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1780,19 +2020,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed1919(); + o.backupImageFeatures = buildUnnamed2433(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed1920(); + o.clickTags = buildUnnamed2434(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed1921(); - o.compatibility = buildUnnamed1922(); + o.companionCreatives = buildUnnamed2435(); + o.compatibility = buildUnnamed2436(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed1923(); - o.creativeAssets = buildUnnamed1924(); - o.creativeFieldAssignments = buildUnnamed1925(); - o.customKeyValues = buildUnnamed1926(); - o.exitCustomEvents = buildUnnamed1927(); + o.counterCustomEvents = buildUnnamed2437(); + o.creativeAssetSelection = buildCreativeAssetSelection(); + o.creativeAssets = buildUnnamed2438(); + o.creativeFieldAssignments = buildUnnamed2439(); + o.customKeyValues = buildUnnamed2440(); + o.dynamicAssetSelection = true; + o.exitCustomEvents = buildUnnamed2441(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -1803,12 +2045,14 @@ o.latestTraffickedCreativeId = "foo"; o.name = "foo"; o.overrideCss = "foo"; + o.progressOffset = buildVideoOffset(); o.redirectUrl = "foo"; o.renderingId = "foo"; o.renderingIdDimensionValue = buildDimensionValue(); o.requiredFlashPluginVersion = "foo"; o.requiredFlashVersion = 42; o.size = buildSize(); + o.skipOffset = buildVideoOffset(); o.skippable = true; o.sslCompliant = true; o.sslOverride = true; @@ -1818,8 +2062,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed1928(); - o.timerCustomEvents = buildUnnamed1929(); + o.thirdPartyUrls = buildUnnamed2442(); + o.timerCustomEvents = buildUnnamed2443(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -1836,7 +2080,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed1918(o.adTagKeys); + checkUnnamed2432(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -1846,19 +2090,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed1919(o.backupImageFeatures); + checkUnnamed2433(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed1920(o.clickTags); + checkUnnamed2434(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed1921(o.companionCreatives); - checkUnnamed1922(o.compatibility); + checkUnnamed2435(o.companionCreatives); + checkUnnamed2436(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed1923(o.counterCustomEvents); - checkUnnamed1924(o.creativeAssets); - checkUnnamed1925(o.creativeFieldAssignments); - checkUnnamed1926(o.customKeyValues); - checkUnnamed1927(o.exitCustomEvents); + checkUnnamed2437(o.counterCustomEvents); + checkCreativeAssetSelection(o.creativeAssetSelection); + checkUnnamed2438(o.creativeAssets); + checkUnnamed2439(o.creativeFieldAssignments); + checkUnnamed2440(o.customKeyValues); + unittest.expect(o.dynamicAssetSelection, unittest.isTrue); + checkUnnamed2441(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -1869,12 +2115,14 @@ unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.overrideCss, unittest.equals('foo')); + checkVideoOffset(o.progressOffset); unittest.expect(o.redirectUrl, unittest.equals('foo')); unittest.expect(o.renderingId, unittest.equals('foo')); checkDimensionValue(o.renderingIdDimensionValue); unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); unittest.expect(o.requiredFlashVersion, unittest.equals(42)); checkSize(o.size); + checkVideoOffset(o.skipOffset); unittest.expect(o.skippable, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslOverride, unittest.isTrue); @@ -1884,8 +2132,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed1928(o.thirdPartyUrls); - checkUnnamed1929(o.timerCustomEvents); + checkUnnamed2442(o.thirdPartyUrls); + checkUnnamed2443(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -1895,14 +2143,27 @@ buildCounterCreative--; } -buildUnnamed1930() { +buildUnnamed2444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1930(core.List<core.String> o) { +checkUnnamed2444(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2445() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2445(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1922,8 +2183,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); + o.companionCreativeIds = buildUnnamed2444(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed1930(); + o.detectedFeatures = buildUnnamed2445(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -1934,6 +2196,7 @@ o.hideSelectionBoxes = true; o.horizontallyLocked = true; o.id = "foo"; + o.idDimensionValue = buildDimensionValue(); o.mimeType = "foo"; o.offset = buildOffsetPosition(); o.originalBackup = true; @@ -1972,8 +2235,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); + checkUnnamed2444(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed1930(o.detectedFeatures); + checkUnnamed2445(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -1984,6 +2248,7 @@ unittest.expect(o.hideSelectionBoxes, unittest.isTrue); unittest.expect(o.horizontallyLocked, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); + checkDimensionValue(o.idDimensionValue); unittest.expect(o.mimeType, unittest.equals('foo')); checkOffsetPosition(o.offset); unittest.expect(o.originalBackup, unittest.isTrue); @@ -2030,40 +2295,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed1931() { +buildUnnamed2446() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1931(core.List<api.ClickTag> o) { +checkUnnamed2446(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1932() { +buildUnnamed2447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1932(core.List<core.String> o) { +checkUnnamed2447(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1933() { +buildUnnamed2448() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1933(core.List<core.String> o) { +checkUnnamed2448(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2075,10 +2340,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed1931(); - o.detectedFeatures = buildUnnamed1932(); + o.clickTags = buildUnnamed2446(); + o.detectedFeatures = buildUnnamed2447(); + o.id = "foo"; + o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed1933(); + o.warnedValidationRules = buildUnnamed2448(); } buildCounterCreativeAssetMetadata--; return o; @@ -2088,48 +2355,84 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed1931(o.clickTags); - checkUnnamed1932(o.detectedFeatures); + checkUnnamed2446(o.clickTags); + checkUnnamed2447(o.detectedFeatures); + unittest.expect(o.id, unittest.equals('foo')); + checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1933(o.warnedValidationRules); + checkUnnamed2448(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed1934() { +buildUnnamed2449() { + var o = new core.List<api.Rule>(); + o.add(buildRule()); + o.add(buildRule()); + return o; +} + +checkUnnamed2449(core.List<api.Rule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRule(o[0]); + checkRule(o[1]); +} + +core.int buildCounterCreativeAssetSelection = 0; +buildCreativeAssetSelection() { + var o = new api.CreativeAssetSelection(); + buildCounterCreativeAssetSelection++; + if (buildCounterCreativeAssetSelection < 3) { + o.defaultAssetId = "foo"; + o.rules = buildUnnamed2449(); + } + buildCounterCreativeAssetSelection--; + return o; +} + +checkCreativeAssetSelection(api.CreativeAssetSelection o) { + buildCounterCreativeAssetSelection++; + if (buildCounterCreativeAssetSelection < 3) { + unittest.expect(o.defaultAssetId, unittest.equals('foo')); + checkUnnamed2449(o.rules); + } + buildCounterCreativeAssetSelection--; +} + +buildUnnamed2450() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed1934(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed2450(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed1935() { +buildUnnamed2451() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1935(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2451(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1936() { +buildUnnamed2452() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed1936(core.List<api.RichMediaExitOverride> o) { +checkUnnamed2452(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2143,12 +2446,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed1934(); - o.creativeGroupAssignments = buildUnnamed1935(); + o.companionCreativeOverrides = buildUnnamed2450(); + o.creativeGroupAssignments = buildUnnamed2451(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed1936(); + o.richMediaExitOverrides = buildUnnamed2452(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2164,12 +2467,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed1934(o.companionCreativeOverrides); - checkUnnamed1935(o.creativeGroupAssignments); + checkUnnamed2450(o.companionCreativeOverrides); + checkUnnamed2451(o.creativeGroupAssignments); unittest.expect(o.creativeId, unittest.equals('foo')); checkDimensionValue(o.creativeIdDimensionValue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1936(o.richMediaExitOverrides); + checkUnnamed2452(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2290,14 +2593,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed1937() { +buildUnnamed2453() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed1937(core.List<api.CreativeFieldValue> o) { +checkUnnamed2453(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2308,7 +2611,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed1937(); + o.creativeFieldValues = buildUnnamed2453(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2319,21 +2622,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed1937(o.creativeFieldValues); + checkUnnamed2453(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed1938() { +buildUnnamed2454() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed1938(core.List<api.CreativeField> o) { +checkUnnamed2454(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2344,7 +2647,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed1938(); + o.creativeFields = buildUnnamed2454(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2355,7 +2658,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed1938(o.creativeFields); + checkUnnamed2454(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2416,14 +2719,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed1939() { +buildUnnamed2455() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed1939(core.List<api.CreativeGroup> o) { +checkUnnamed2455(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2434,7 +2737,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed1939(); + o.creativeGroups = buildUnnamed2455(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2445,21 +2748,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed1939(o.creativeGroups); + checkUnnamed2455(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed1940() { +buildUnnamed2456() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed1940(core.List<api.OptimizationActivity> o) { +checkUnnamed2456(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2472,7 +2775,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed1940(); + o.optimizationActivitys = buildUnnamed2456(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2484,20 +2787,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1940(o.optimizationActivitys); + checkUnnamed2456(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed1941() { +buildUnnamed2457() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed1941(core.List<api.CreativeAssignment> o) { +checkUnnamed2457(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2508,7 +2811,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed1941(); + o.creativeAssignments = buildUnnamed2457(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2520,7 +2823,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed1941(o.creativeAssignments); + checkUnnamed2457(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2549,14 +2852,14 @@ buildCounterCreativeSettings--; } -buildUnnamed1942() { +buildUnnamed2458() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1942(core.List<api.Creative> o) { +checkUnnamed2458(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2567,7 +2870,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed1942(); + o.creatives = buildUnnamed2458(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2578,60 +2881,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed1942(o.creatives); + checkUnnamed2458(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed1943() { +buildUnnamed2459() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1943(core.List<api.Dimension> o) { +checkUnnamed2459(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1944() { +buildUnnamed2460() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1944(core.List<api.Dimension> o) { +checkUnnamed2460(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1945() { +buildUnnamed2461() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1945(core.List<api.Metric> o) { +checkUnnamed2461(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1946() { +buildUnnamed2462() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1946(core.List<api.Metric> o) { +checkUnnamed2462(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2642,11 +2945,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed1943(); - o.dimensionFilters = buildUnnamed1944(); + o.breakdown = buildUnnamed2459(); + o.dimensionFilters = buildUnnamed2460(); o.kind = "foo"; - o.metrics = buildUnnamed1945(); - o.overlapMetrics = buildUnnamed1946(); + o.metrics = buildUnnamed2461(); + o.overlapMetrics = buildUnnamed2462(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2655,23 +2958,46 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed1943(o.breakdown); - checkUnnamed1944(o.dimensionFilters); + checkUnnamed2459(o.breakdown); + checkUnnamed2460(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1945(o.metrics); - checkUnnamed1946(o.overlapMetrics); + checkUnnamed2461(o.metrics); + checkUnnamed2462(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } -buildUnnamed1947() { +core.int buildCounterCustomFloodlightVariable = 0; +buildCustomFloodlightVariable() { + var o = new api.CustomFloodlightVariable(); + buildCounterCustomFloodlightVariable++; + if (buildCounterCustomFloodlightVariable < 3) { + o.kind = "foo"; + o.type = "foo"; + o.value = "foo"; + } + buildCounterCustomFloodlightVariable--; + return o; +} + +checkCustomFloodlightVariable(api.CustomFloodlightVariable o) { + buildCounterCustomFloodlightVariable++; + if (buildCounterCustomFloodlightVariable < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterCustomFloodlightVariable--; +} + +buildUnnamed2463() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1947(core.List<api.DimensionValue> o) { +checkUnnamed2463(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2682,7 +3008,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed1947(); + o.filteredEventIds = buildUnnamed2463(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2692,7 +3018,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed1947(o.filteredEventIds); + checkUnnamed2463(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2723,27 +3049,27 @@ buildCounterDateRange--; } -buildUnnamed1948() { +buildUnnamed2464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1948(core.List<core.String> o) { +checkUnnamed2464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1949() { +buildUnnamed2465() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1949(core.List<core.int> o) { +checkUnnamed2465(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -2754,8 +3080,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed1948(); - o.hoursOfDay = buildUnnamed1949(); + o.daysOfWeek = buildUnnamed2464(); + o.hoursOfDay = buildUnnamed2465(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2765,8 +3091,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed1948(o.daysOfWeek); - checkUnnamed1949(o.hoursOfDay); + checkUnnamed2464(o.daysOfWeek); + checkUnnamed2465(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -2918,14 +3244,14 @@ buildCounterDimensionValue--; } -buildUnnamed1950() { +buildUnnamed2466() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1950(core.List<api.DimensionValue> o) { +checkUnnamed2466(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2937,7 +3263,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed1950(); + o.items = buildUnnamed2466(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2949,21 +3275,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1950(o.items); + checkUnnamed2466(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed1951() { +buildUnnamed2467() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed1951(core.List<api.DimensionFilter> o) { +checkUnnamed2467(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -2976,7 +3302,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed1951(); + o.filters = buildUnnamed2467(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -2989,47 +3315,47 @@ if (buildCounterDimensionValueRequest < 3) { unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1951(o.filters); + checkUnnamed2467(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed1952() { +buildUnnamed2468() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed1952(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed2468(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed1953() { +buildUnnamed2469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1953(core.List<core.String> o) { +checkUnnamed2469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1954() { +buildUnnamed2470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1954(core.List<core.String> o) { +checkUnnamed2470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3041,14 +3367,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed1952(); + o.contactAssignments = buildUnnamed2468(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed1953(); - o.interstitialTagFormats = buildUnnamed1954(); + o.inpageTagFormats = buildUnnamed2469(); + o.interstitialTagFormats = buildUnnamed2470(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3063,14 +3389,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed1952(o.contactAssignments); + checkUnnamed2468(o.contactAssignments); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed1953(o.inpageTagFormats); - checkUnnamed1954(o.interstitialTagFormats); + checkUnnamed2469(o.inpageTagFormats); + checkUnnamed2470(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3138,14 +3464,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed1955() { +buildUnnamed2471() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed1955(core.List<api.DirectorySiteContact> o) { +checkUnnamed2471(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3156,7 +3482,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed1955(); + o.directorySiteContacts = buildUnnamed2471(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3167,7 +3493,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed1955(o.directorySiteContacts); + checkUnnamed2471(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3205,14 +3531,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed1956() { +buildUnnamed2472() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed1956(core.List<api.DirectorySite> o) { +checkUnnamed2472(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3223,7 +3549,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed1956(); + o.directorySites = buildUnnamed2472(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3234,21 +3560,105 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed1956(o.directorySites); + checkUnnamed2472(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDirectorySitesListResponse--; } -buildUnnamed1957() { +core.int buildCounterDynamicTargetingKey = 0; +buildDynamicTargetingKey() { + var o = new api.DynamicTargetingKey(); + buildCounterDynamicTargetingKey++; + if (buildCounterDynamicTargetingKey < 3) { + o.kind = "foo"; + o.name = "foo"; + o.objectId = "foo"; + o.objectType = "foo"; + } + buildCounterDynamicTargetingKey--; + return o; +} + +checkDynamicTargetingKey(api.DynamicTargetingKey o) { + buildCounterDynamicTargetingKey++; + if (buildCounterDynamicTargetingKey < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.objectType, unittest.equals('foo')); + } + buildCounterDynamicTargetingKey--; +} + +buildUnnamed2473() { + var o = new core.List<api.DynamicTargetingKey>(); + o.add(buildDynamicTargetingKey()); + o.add(buildDynamicTargetingKey()); + return o; +} + +checkUnnamed2473(core.List<api.DynamicTargetingKey> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDynamicTargetingKey(o[0]); + checkDynamicTargetingKey(o[1]); +} + +core.int buildCounterDynamicTargetingKeysListResponse = 0; +buildDynamicTargetingKeysListResponse() { + var o = new api.DynamicTargetingKeysListResponse(); + buildCounterDynamicTargetingKeysListResponse++; + if (buildCounterDynamicTargetingKeysListResponse < 3) { + o.dynamicTargetingKeys = buildUnnamed2473(); + o.kind = "foo"; + } + buildCounterDynamicTargetingKeysListResponse--; + return o; +} + +checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { + buildCounterDynamicTargetingKeysListResponse++; + if (buildCounterDynamicTargetingKeysListResponse < 3) { + checkUnnamed2473(o.dynamicTargetingKeys); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterDynamicTargetingKeysListResponse--; +} + +core.int buildCounterEncryptionInfo = 0; +buildEncryptionInfo() { + var o = new api.EncryptionInfo(); + buildCounterEncryptionInfo++; + if (buildCounterEncryptionInfo < 3) { + o.encryptionEntityId = "foo"; + o.encryptionEntityType = "foo"; + o.encryptionSource = "foo"; + o.kind = "foo"; + } + buildCounterEncryptionInfo--; + return o; +} + +checkEncryptionInfo(api.EncryptionInfo o) { + buildCounterEncryptionInfo++; + if (buildCounterEncryptionInfo < 3) { + unittest.expect(o.encryptionEntityId, unittest.equals('foo')); + unittest.expect(o.encryptionEntityType, unittest.equals('foo')); + unittest.expect(o.encryptionSource, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterEncryptionInfo--; +} + +buildUnnamed2474() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1957(core.List<core.String> o) { +checkUnnamed2474(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3270,7 +3680,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed1957(); + o.siteIds = buildUnnamed2474(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3296,7 +3706,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed1957(o.siteIds); + checkUnnamed2474(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3328,14 +3738,14 @@ buildCounterEventTagOverride--; } -buildUnnamed1958() { +buildUnnamed2475() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed1958(core.List<api.EventTag> o) { +checkUnnamed2475(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3346,7 +3756,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed1958(); + o.eventTags = buildUnnamed2475(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3356,7 +3766,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed1958(o.eventTags); + checkUnnamed2475(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3420,14 +3830,14 @@ buildCounterFile--; } -buildUnnamed1959() { +buildUnnamed2476() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1959(core.List<api.File> o) { +checkUnnamed2476(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3439,7 +3849,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed1959(); + o.items = buildUnnamed2476(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3451,7 +3861,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1959(o.items); + checkUnnamed2476(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3504,14 +3914,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed1960() { +buildUnnamed2477() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed1960(core.List<api.FloodlightActivity> o) { +checkUnnamed2477(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3522,7 +3932,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed1960(); + o.floodlightActivities = buildUnnamed2477(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3533,47 +3943,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed1960(o.floodlightActivities); + checkUnnamed2477(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed1961() { +buildUnnamed2478() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed1961(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed2478(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed1962() { +buildUnnamed2479() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed1962(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed2479(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed1963() { +buildUnnamed2480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1963(core.List<core.String> o) { +checkUnnamed2480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3589,7 +3999,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed1961(); + o.defaultTags = buildUnnamed2478(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3604,14 +4014,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed1962(); + o.publisherTags = buildUnnamed2479(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed1963(); + o.userDefinedVariableTypes = buildUnnamed2480(); } buildCounterFloodlightActivity--; return o; @@ -3625,7 +4035,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed1961(o.defaultTags); + checkUnnamed2478(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -3640,14 +4050,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1962(o.publisherTags); + checkUnnamed2479(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed1963(o.userDefinedVariableTypes); + checkUnnamed2480(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -3716,14 +4126,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed1964() { +buildUnnamed2481() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed1964(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed2481(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -3734,7 +4144,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed1964(); + o.floodlightActivityGroups = buildUnnamed2481(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3745,7 +4155,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed1964(o.floodlightActivityGroups); + checkUnnamed2481(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3781,40 +4191,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed1965() { +buildUnnamed2482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1965(core.List<core.String> o) { +checkUnnamed2482(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1966() { +buildUnnamed2483() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed1966(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed2483(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed1967() { +buildUnnamed2484() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed1967(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed2484(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -3838,11 +4248,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed1965(); + o.standardVariableTypes = buildUnnamed2482(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed1966(); - o.userDefinedVariableConfigurations = buildUnnamed1967(); + o.thirdPartyAuthenticationTokens = buildUnnamed2483(); + o.userDefinedVariableConfigurations = buildUnnamed2484(); } buildCounterFloodlightConfiguration--; return o; @@ -3864,23 +4274,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed1965(o.standardVariableTypes); + checkUnnamed2482(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed1966(o.thirdPartyAuthenticationTokens); - checkUnnamed1967(o.userDefinedVariableConfigurations); + checkUnnamed2483(o.thirdPartyAuthenticationTokens); + checkUnnamed2484(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed1968() { +buildUnnamed2485() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed1968(core.List<api.FloodlightConfiguration> o) { +checkUnnamed2485(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -3891,7 +4301,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed1968(); + o.floodlightConfigurations = buildUnnamed2485(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -3901,46 +4311,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed1968(o.floodlightConfigurations); + checkUnnamed2485(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed1969() { +buildUnnamed2486() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1969(core.List<api.Dimension> o) { +checkUnnamed2486(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1970() { +buildUnnamed2487() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1970(core.List<api.Dimension> o) { +checkUnnamed2487(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1971() { +buildUnnamed2488() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1971(core.List<api.Metric> o) { +checkUnnamed2488(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -3951,10 +4361,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1969(); - o.dimensions = buildUnnamed1970(); + o.dimensionFilters = buildUnnamed2486(); + o.dimensions = buildUnnamed2487(); o.kind = "foo"; - o.metrics = buildUnnamed1971(); + o.metrics = buildUnnamed2488(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -3963,10 +4373,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed1969(o.dimensionFilters); - checkUnnamed1970(o.dimensions); + checkUnnamed2486(o.dimensionFilters); + checkUnnamed2487(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1971(o.metrics); + checkUnnamed2488(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4019,66 +4429,66 @@ buildCounterFsCommand--; } -buildUnnamed1972() { +buildUnnamed2489() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1972(core.List<api.City> o) { +checkUnnamed2489(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed1973() { +buildUnnamed2490() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1973(core.List<api.Country> o) { +checkUnnamed2490(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed1974() { +buildUnnamed2491() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1974(core.List<api.Metro> o) { +checkUnnamed2491(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed1975() { +buildUnnamed2492() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1975(core.List<api.PostalCode> o) { +checkUnnamed2492(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed1976() { +buildUnnamed2493() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1976(core.List<api.Region> o) { +checkUnnamed2493(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4089,12 +4499,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed1972(); - o.countries = buildUnnamed1973(); + o.cities = buildUnnamed2489(); + o.countries = buildUnnamed2490(); o.excludeCountries = true; - o.metros = buildUnnamed1974(); - o.postalCodes = buildUnnamed1975(); - o.regions = buildUnnamed1976(); + o.metros = buildUnnamed2491(); + o.postalCodes = buildUnnamed2492(); + o.regions = buildUnnamed2493(); } buildCounterGeoTargeting--; return o; @@ -4103,24 +4513,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed1972(o.cities); - checkUnnamed1973(o.countries); + checkUnnamed2489(o.cities); + checkUnnamed2490(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed1974(o.metros); - checkUnnamed1975(o.postalCodes); - checkUnnamed1976(o.regions); + checkUnnamed2491(o.metros); + checkUnnamed2492(o.postalCodes); + checkUnnamed2493(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed1977() { +buildUnnamed2494() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed1977(core.List<api.AdSlot> o) { +checkUnnamed2494(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4132,7 +4542,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed1977(); + o.adSlots = buildUnnamed2494(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4150,6 +4560,7 @@ o.rfpId = "foo"; o.siteId = "foo"; o.subaccountId = "foo"; + o.type = "foo"; } buildCounterInventoryItem--; return o; @@ -4159,7 +4570,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1977(o.adSlots); + checkUnnamed2494(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4177,18 +4588,19 @@ unittest.expect(o.rfpId, unittest.equals('foo')); unittest.expect(o.siteId, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); } buildCounterInventoryItem--; } -buildUnnamed1978() { +buildUnnamed2495() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed1978(core.List<api.InventoryItem> o) { +checkUnnamed2495(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4199,7 +4611,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed1978(); + o.inventoryItems = buildUnnamed2495(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4210,7 +4622,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed1978(o.inventoryItems); + checkUnnamed2495(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4263,14 +4675,14 @@ buildCounterLandingPage--; } -buildUnnamed1979() { +buildUnnamed2496() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed1979(core.List<api.LandingPage> o) { +checkUnnamed2496(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4282,7 +4694,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed1979(); + o.landingPages = buildUnnamed2496(); } buildCounterLandingPagesListResponse--; return o; @@ -4292,11 +4704,102 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1979(o.landingPages); + checkUnnamed2496(o.landingPages); } buildCounterLandingPagesListResponse--; } +core.int buildCounterLanguage = 0; +buildLanguage() { + var o = new api.Language(); + buildCounterLanguage++; + if (buildCounterLanguage < 3) { + o.id = "foo"; + o.kind = "foo"; + o.languageCode = "foo"; + o.name = "foo"; + } + buildCounterLanguage--; + return o; +} + +checkLanguage(api.Language o) { + buildCounterLanguage++; + if (buildCounterLanguage < 3) { + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterLanguage--; +} + +buildUnnamed2497() { + var o = new core.List<api.Language>(); + o.add(buildLanguage()); + o.add(buildLanguage()); + return o; +} + +checkUnnamed2497(core.List<api.Language> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLanguage(o[0]); + checkLanguage(o[1]); +} + +core.int buildCounterLanguageTargeting = 0; +buildLanguageTargeting() { + var o = new api.LanguageTargeting(); + buildCounterLanguageTargeting++; + if (buildCounterLanguageTargeting < 3) { + o.languages = buildUnnamed2497(); + } + buildCounterLanguageTargeting--; + return o; +} + +checkLanguageTargeting(api.LanguageTargeting o) { + buildCounterLanguageTargeting++; + if (buildCounterLanguageTargeting < 3) { + checkUnnamed2497(o.languages); + } + buildCounterLanguageTargeting--; +} + +buildUnnamed2498() { + var o = new core.List<api.Language>(); + o.add(buildLanguage()); + o.add(buildLanguage()); + return o; +} + +checkUnnamed2498(core.List<api.Language> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLanguage(o[0]); + checkLanguage(o[1]); +} + +core.int buildCounterLanguagesListResponse = 0; +buildLanguagesListResponse() { + var o = new api.LanguagesListResponse(); + buildCounterLanguagesListResponse++; + if (buildCounterLanguagesListResponse < 3) { + o.kind = "foo"; + o.languages = buildUnnamed2498(); + } + buildCounterLanguagesListResponse--; + return o; +} + +checkLanguagesListResponse(api.LanguagesListResponse o) { + buildCounterLanguagesListResponse++; + if (buildCounterLanguagesListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2498(o.languages); + } + buildCounterLanguagesListResponse--; +} + core.int buildCounterLastModifiedInfo = 0; buildLastModifiedInfo() { var o = new api.LastModifiedInfo(); @@ -4316,14 +4819,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed1980() { +buildUnnamed2499() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed1980(core.List<api.ListPopulationTerm> o) { +checkUnnamed2499(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4334,7 +4837,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed1980(); + o.terms = buildUnnamed2499(); } buildCounterListPopulationClause--; return o; @@ -4343,19 +4846,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed1980(o.terms); + checkUnnamed2499(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed1981() { +buildUnnamed2500() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed1981(core.List<api.ListPopulationClause> o) { +checkUnnamed2500(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4368,7 +4871,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed1981(); + o.listPopulationClauses = buildUnnamed2500(); } buildCounterListPopulationRule--; return o; @@ -4379,7 +4882,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed1981(o.listPopulationClauses); + checkUnnamed2500(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4509,14 +5012,14 @@ buildCounterMetro--; } -buildUnnamed1982() { +buildUnnamed2501() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1982(core.List<api.Metro> o) { +checkUnnamed2501(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4528,7 +5031,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed1982(); + o.metros = buildUnnamed2501(); } buildCounterMetrosListResponse--; return o; @@ -4538,7 +5041,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1982(o.metros); + checkUnnamed2501(o.metros); } buildCounterMetrosListResponse--; } @@ -4570,14 +5073,14 @@ buildCounterMobileCarrier--; } -buildUnnamed1983() { +buildUnnamed2502() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1983(core.List<api.MobileCarrier> o) { +checkUnnamed2502(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -4589,7 +5092,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed1983(); + o.mobileCarriers = buildUnnamed2502(); } buildCounterMobileCarriersListResponse--; return o; @@ -4599,19 +5102,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1983(o.mobileCarriers); + checkUnnamed2502(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed1984() { +buildUnnamed2503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1984(core.List<core.String> o) { +checkUnnamed2503(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4623,7 +5126,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed1984(); + o.objectIds = buildUnnamed2503(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4634,7 +5137,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1984(o.objectIds); + checkUnnamed2503(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -4738,14 +5241,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed1985() { +buildUnnamed2504() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1985(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2504(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -4757,7 +5260,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed1985(); + o.operatingSystemVersions = buildUnnamed2504(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -4767,19 +5270,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1985(o.operatingSystemVersions); + checkUnnamed2504(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed1986() { +buildUnnamed2505() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1986(core.List<api.OperatingSystem> o) { +checkUnnamed2505(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -4791,7 +5294,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed1986(); + o.operatingSystems = buildUnnamed2505(); } buildCounterOperatingSystemsListResponse--; return o; @@ -4801,7 +5304,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1986(o.operatingSystems); + checkUnnamed2505(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -4829,53 +5332,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed1987() { +buildUnnamed2506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1987(core.List<core.String> o) { +checkUnnamed2506(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1988() { +buildUnnamed2507() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed1988(core.List<api.OrderContact> o) { +checkUnnamed2507(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed1989() { +buildUnnamed2508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1989(core.List<core.String> o) { +checkUnnamed2508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1990() { +buildUnnamed2509() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1990(core.List<core.String> o) { +checkUnnamed2509(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4888,11 +5391,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed1987(); + o.approverUserProfileIds = buildUnnamed2506(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed1988(); + o.contacts = buildUnnamed2507(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -4902,8 +5405,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed1989(); - o.siteNames = buildUnnamed1990(); + o.siteId = buildUnnamed2508(); + o.siteNames = buildUnnamed2509(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -4916,11 +5419,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed1987(o.approverUserProfileIds); + checkUnnamed2506(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed1988(o.contacts); + checkUnnamed2507(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -4930,8 +5433,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed1989(o.siteId); - checkUnnamed1990(o.siteNames); + checkUnnamed2508(o.siteId); + checkUnnamed2509(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -4965,27 +5468,27 @@ buildCounterOrderContact--; } -buildUnnamed1991() { +buildUnnamed2510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1991(core.List<core.String> o) { +checkUnnamed2510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1992() { +buildUnnamed2511() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1992(core.List<core.String> o) { +checkUnnamed2511(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4999,13 +5502,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed1991(); + o.approvedByUserProfileIds = buildUnnamed2510(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed1992(); + o.lastSentRecipients = buildUnnamed2511(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5024,13 +5527,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed1991(o.approvedByUserProfileIds); + checkUnnamed2510(o.approvedByUserProfileIds); unittest.expect(o.cancelled, unittest.isTrue); checkLastModifiedInfo(o.createdInfo); unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1992(o.lastSentRecipients); + checkUnnamed2511(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); @@ -5042,14 +5545,14 @@ buildCounterOrderDocument--; } -buildUnnamed1993() { +buildUnnamed2512() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed1993(core.List<api.OrderDocument> o) { +checkUnnamed2512(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5062,7 +5565,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed1993(); + o.orderDocuments = buildUnnamed2512(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5073,19 +5576,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1993(o.orderDocuments); + checkUnnamed2512(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed1994() { +buildUnnamed2513() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1994(core.List<api.Order> o) { +checkUnnamed2513(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5098,7 +5601,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed1994(); + o.orders = buildUnnamed2513(); } buildCounterOrdersListResponse--; return o; @@ -5109,58 +5612,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1994(o.orders); + checkUnnamed2513(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed1995() { +buildUnnamed2514() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1995(core.List<api.Dimension> o) { +checkUnnamed2514(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1996() { +buildUnnamed2515() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1996(core.List<api.Dimension> o) { +checkUnnamed2515(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1997() { +buildUnnamed2516() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1997(core.List<api.Metric> o) { +checkUnnamed2516(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1998() { +buildUnnamed2517() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1998(core.List<api.Dimension> o) { +checkUnnamed2517(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5171,11 +5674,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed1995(); - o.customFloodlightVariables = buildUnnamed1996(); + o.conversionDimensions = buildUnnamed2514(); + o.customFloodlightVariables = buildUnnamed2515(); o.kind = "foo"; - o.metrics = buildUnnamed1997(); - o.perInteractionDimensions = buildUnnamed1998(); + o.metrics = buildUnnamed2516(); + o.perInteractionDimensions = buildUnnamed2517(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5184,23 +5687,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed1995(o.conversionDimensions); - checkUnnamed1996(o.customFloodlightVariables); + checkUnnamed2514(o.conversionDimensions); + checkUnnamed2515(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1997(o.metrics); - checkUnnamed1998(o.perInteractionDimensions); + checkUnnamed2516(o.metrics); + checkUnnamed2517(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed1999() { +buildUnnamed2518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1999(core.List<core.String> o) { +checkUnnamed2518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5245,8 +5748,11 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed1999(); + o.tagFormats = buildUnnamed2518(); o.tagSetting = buildTagSetting(); + o.videoActiveViewOptOut = true; + o.videoSettings = buildVideoSettings(); + o.vpaidAdapterChoice = "foo"; } buildCounterPlacement--; return o; @@ -5289,8 +5795,11 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed1999(o.tagFormats); + checkUnnamed2518(o.tagFormats); checkTagSetting(o.tagSetting); + unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); + checkVideoSettings(o.videoSettings); + unittest.expect(o.vpaidAdapterChoice, unittest.equals('foo')); } buildCounterPlacement--; } @@ -5320,14 +5829,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed2000() { +buildUnnamed2519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2000(core.List<core.String> o) { +checkUnnamed2519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5344,7 +5853,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed2000(); + o.childPlacementIds = buildUnnamed2519(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5378,7 +5887,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed2000(o.childPlacementIds); + checkUnnamed2519(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5402,14 +5911,14 @@ buildCounterPlacementGroup--; } -buildUnnamed2001() { +buildUnnamed2520() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed2001(core.List<api.PlacementGroup> o) { +checkUnnamed2520(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5422,7 +5931,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed2001(); + o.placementGroups = buildUnnamed2520(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5433,19 +5942,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2001(o.placementGroups); + checkUnnamed2520(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed2002() { +buildUnnamed2521() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed2002(core.List<api.PlacementStrategy> o) { +checkUnnamed2521(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5458,7 +5967,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed2002(); + o.placementStrategies = buildUnnamed2521(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5469,7 +5978,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2002(o.placementStrategies); + checkUnnamed2521(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5499,14 +6008,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed2003() { +buildUnnamed2522() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed2003(core.List<api.TagData> o) { +checkUnnamed2522(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5518,7 +6027,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed2003(); + o.tagDatas = buildUnnamed2522(); } buildCounterPlacementTag--; return o; @@ -5528,19 +6037,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed2003(o.tagDatas); + checkUnnamed2522(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed2004() { +buildUnnamed2523() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed2004(core.List<api.PlacementTag> o) { +checkUnnamed2523(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -5552,7 +6061,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed2004(); + o.placementTags = buildUnnamed2523(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5562,19 +6071,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2004(o.placementTags); + checkUnnamed2523(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed2005() { +buildUnnamed2524() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed2005(core.List<api.Placement> o) { +checkUnnamed2524(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -5587,7 +6096,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed2005(); + o.placements = buildUnnamed2524(); } buildCounterPlacementsListResponse--; return o; @@ -5598,7 +6107,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2005(o.placements); + checkUnnamed2524(o.placements); } buildCounterPlacementsListResponse--; } @@ -5626,14 +6135,14 @@ buildCounterPlatformType--; } -buildUnnamed2006() { +buildUnnamed2525() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2006(core.List<api.PlatformType> o) { +checkUnnamed2525(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -5645,7 +6154,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed2006(); + o.platformTypes = buildUnnamed2525(); } buildCounterPlatformTypesListResponse--; return o; @@ -5655,7 +6164,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2006(o.platformTypes); + checkUnnamed2525(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -5722,14 +6231,14 @@ buildCounterPostalCode--; } -buildUnnamed2007() { +buildUnnamed2526() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2007(core.List<api.PostalCode> o) { +checkUnnamed2526(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -5741,7 +6250,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed2007(); + o.postalCodes = buildUnnamed2526(); } buildCounterPostalCodesListResponse--; return o; @@ -5751,19 +6260,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2007(o.postalCodes); + checkUnnamed2526(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed2008() { +buildUnnamed2527() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed2008(core.List<api.Flight> o) { +checkUnnamed2527(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -5776,7 +6285,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed2008(); + o.flights = buildUnnamed2527(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -5790,7 +6299,7 @@ if (buildCounterPricing < 3) { unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2008(o.flights); + checkUnnamed2527(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -5798,14 +6307,14 @@ buildCounterPricing--; } -buildUnnamed2009() { +buildUnnamed2528() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed2009(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed2528(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -5821,7 +6330,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed2009(); + o.pricingPeriods = buildUnnamed2528(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -5838,7 +6347,7 @@ unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.flighted, unittest.isTrue); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed2009(o.pricingPeriods); + checkUnnamed2528(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -5897,6 +6406,7 @@ o.targetConversions = "foo"; o.targetCpaNanos = "foo"; o.targetCpcNanos = "foo"; + o.targetCpmActiveViewNanos = "foo"; o.targetCpmNanos = "foo"; o.targetImpressions = "foo"; } @@ -5926,20 +6436,21 @@ unittest.expect(o.targetConversions, unittest.equals('foo')); unittest.expect(o.targetCpaNanos, unittest.equals('foo')); unittest.expect(o.targetCpcNanos, unittest.equals('foo')); + unittest.expect(o.targetCpmActiveViewNanos, unittest.equals('foo')); unittest.expect(o.targetCpmNanos, unittest.equals('foo')); unittest.expect(o.targetImpressions, unittest.equals('foo')); } buildCounterProject--; } -buildUnnamed2010() { +buildUnnamed2529() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2010(core.List<api.Project> o) { +checkUnnamed2529(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -5952,7 +6463,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed2010(); + o.projects = buildUnnamed2529(); } buildCounterProjectsListResponse--; return o; @@ -5963,71 +6474,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2010(o.projects); + checkUnnamed2529(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed2011() { +buildUnnamed2530() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2011(core.List<api.Dimension> o) { +checkUnnamed2530(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2012() { +buildUnnamed2531() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2012(core.List<api.Dimension> o) { +checkUnnamed2531(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2013() { +buildUnnamed2532() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2013(core.List<api.Metric> o) { +checkUnnamed2532(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2014() { +buildUnnamed2533() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2014(core.List<api.Metric> o) { +checkUnnamed2533(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2015() { +buildUnnamed2534() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2015(core.List<api.Metric> o) { +checkUnnamed2534(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6038,12 +6549,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2011(); - o.dimensions = buildUnnamed2012(); + o.dimensionFilters = buildUnnamed2530(); + o.dimensions = buildUnnamed2531(); o.kind = "foo"; - o.metrics = buildUnnamed2013(); - o.pivotedActivityMetrics = buildUnnamed2014(); - o.reachByFrequencyMetrics = buildUnnamed2015(); + o.metrics = buildUnnamed2532(); + o.pivotedActivityMetrics = buildUnnamed2533(); + o.reachByFrequencyMetrics = buildUnnamed2534(); } buildCounterReachReportCompatibleFields--; return o; @@ -6052,12 +6563,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed2011(o.dimensionFilters); - checkUnnamed2012(o.dimensions); + checkUnnamed2530(o.dimensionFilters); + checkUnnamed2531(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2013(o.metrics); - checkUnnamed2014(o.pivotedActivityMetrics); - checkUnnamed2015(o.reachByFrequencyMetrics); + checkUnnamed2532(o.metrics); + checkUnnamed2533(o.pivotedActivityMetrics); + checkUnnamed2534(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6114,14 +6625,14 @@ buildCounterRegion--; } -buildUnnamed2016() { +buildUnnamed2535() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2016(core.List<api.Region> o) { +checkUnnamed2535(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6133,7 +6644,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed2016(); + o.regions = buildUnnamed2535(); } buildCounterRegionsListResponse--; return o; @@ -6143,7 +6654,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2016(o.regions); + checkUnnamed2535(o.regions); } buildCounterRegionsListResponse--; } @@ -6191,27 +6702,27 @@ buildCounterRemarketingList--; } -buildUnnamed2017() { +buildUnnamed2536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2017(core.List<core.String> o) { +checkUnnamed2536(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2018() { +buildUnnamed2537() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2018(core.List<core.String> o) { +checkUnnamed2537(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6224,8 +6735,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed2017(); - o.sharedAdvertiserIds = buildUnnamed2018(); + o.sharedAccountIds = buildUnnamed2536(); + o.sharedAdvertiserIds = buildUnnamed2537(); } buildCounterRemarketingListShare--; return o; @@ -6236,20 +6747,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed2017(o.sharedAccountIds); - checkUnnamed2018(o.sharedAdvertiserIds); + checkUnnamed2536(o.sharedAccountIds); + checkUnnamed2537(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed2019() { +buildUnnamed2538() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed2019(core.List<api.RemarketingList> o) { +checkUnnamed2538(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6262,7 +6773,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed2019(); + o.remarketingLists = buildUnnamed2538(); } buildCounterRemarketingListsListResponse--; return o; @@ -6273,45 +6784,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2019(o.remarketingLists); + checkUnnamed2538(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed2020() { +buildUnnamed2539() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2020(core.List<api.DimensionValue> o) { +checkUnnamed2539(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2021() { +buildUnnamed2540() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2021(core.List<api.SortedDimension> o) { +checkUnnamed2540(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2022() { +buildUnnamed2541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2022(core.List<core.String> o) { +checkUnnamed2541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6325,9 +6836,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2020(); - o.dimensions = buildUnnamed2021(); - o.metricNames = buildUnnamed2022(); + o.dimensionFilters = buildUnnamed2539(); + o.dimensions = buildUnnamed2540(); + o.metricNames = buildUnnamed2541(); } buildCounterReportCriteria--; return o; @@ -6339,60 +6850,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2020(o.dimensionFilters); - checkUnnamed2021(o.dimensions); - checkUnnamed2022(o.metricNames); + checkUnnamed2539(o.dimensionFilters); + checkUnnamed2540(o.dimensions); + checkUnnamed2541(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed2023() { +buildUnnamed2542() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2023(core.List<api.SortedDimension> o) { +checkUnnamed2542(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2024() { +buildUnnamed2543() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2024(core.List<api.DimensionValue> o) { +checkUnnamed2543(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2025() { +buildUnnamed2544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2025(core.List<core.String> o) { +checkUnnamed2544(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2026() { +buildUnnamed2545() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2026(core.List<core.String> o) { +checkUnnamed2545(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6403,12 +6914,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed2023(); + o.breakdown = buildUnnamed2542(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed2024(); - o.metricNames = buildUnnamed2025(); - o.overlapMetricNames = buildUnnamed2026(); + o.dimensionFilters = buildUnnamed2543(); + o.metricNames = buildUnnamed2544(); + o.overlapMetricNames = buildUnnamed2545(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6418,25 +6929,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed2023(o.breakdown); + checkUnnamed2542(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed2024(o.dimensionFilters); - checkUnnamed2025(o.metricNames); - checkUnnamed2026(o.overlapMetricNames); + checkUnnamed2543(o.dimensionFilters); + checkUnnamed2544(o.metricNames); + checkUnnamed2545(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed2027() { +buildUnnamed2546() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed2027(core.List<api.Recipient> o) { +checkUnnamed2546(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6450,7 +6961,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed2027(); + o.recipients = buildUnnamed2546(); } buildCounterReportDelivery--; return o; @@ -6462,58 +6973,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed2027(o.recipients); + checkUnnamed2546(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed2028() { +buildUnnamed2547() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2028(core.List<api.DimensionValue> o) { +checkUnnamed2547(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2029() { +buildUnnamed2548() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2029(core.List<api.DimensionValue> o) { +checkUnnamed2548(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2030() { +buildUnnamed2549() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2030(core.List<api.SortedDimension> o) { +checkUnnamed2549(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2031() { +buildUnnamed2550() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2031(core.List<core.String> o) { +checkUnnamed2550(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6547,12 +7058,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed2028(); + o.customRichMediaEvents = buildUnnamed2547(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2029(); - o.dimensions = buildUnnamed2030(); + o.dimensionFilters = buildUnnamed2548(); + o.dimensions = buildUnnamed2549(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2031(); + o.metricNames = buildUnnamed2550(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6562,90 +7073,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed2028(o.customRichMediaEvents); + checkUnnamed2547(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2029(o.dimensionFilters); - checkUnnamed2030(o.dimensions); + checkUnnamed2548(o.dimensionFilters); + checkUnnamed2549(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2031(o.metricNames); + checkUnnamed2550(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed2032() { +buildUnnamed2551() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2032(core.List<api.DimensionValue> o) { +checkUnnamed2551(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2033() { +buildUnnamed2552() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2033(core.List<api.SortedDimension> o) { +checkUnnamed2552(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2034() { +buildUnnamed2553() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2034(core.List<api.SortedDimension> o) { +checkUnnamed2553(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2035() { +buildUnnamed2554() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2035(core.List<api.DimensionValue> o) { +checkUnnamed2554(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2036() { +buildUnnamed2555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2036(core.List<core.String> o) { +checkUnnamed2555(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2037() { +buildUnnamed2556() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2037(core.List<api.SortedDimension> o) { +checkUnnamed2556(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -6691,14 +7202,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed2032(); - o.conversionDimensions = buildUnnamed2033(); - o.customFloodlightVariables = buildUnnamed2034(); - o.customRichMediaEvents = buildUnnamed2035(); + o.activityFilters = buildUnnamed2551(); + o.conversionDimensions = buildUnnamed2552(); + o.customFloodlightVariables = buildUnnamed2553(); + o.customRichMediaEvents = buildUnnamed2554(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2036(); - o.perInteractionDimensions = buildUnnamed2037(); + o.metricNames = buildUnnamed2555(); + o.perInteractionDimensions = buildUnnamed2556(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -6708,66 +7219,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed2032(o.activityFilters); - checkUnnamed2033(o.conversionDimensions); - checkUnnamed2034(o.customFloodlightVariables); - checkUnnamed2035(o.customRichMediaEvents); + checkUnnamed2551(o.activityFilters); + checkUnnamed2552(o.conversionDimensions); + checkUnnamed2553(o.customFloodlightVariables); + checkUnnamed2554(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2036(o.metricNames); - checkUnnamed2037(o.perInteractionDimensions); + checkUnnamed2555(o.metricNames); + checkUnnamed2556(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed2038() { +buildUnnamed2557() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2038(core.List<api.DimensionValue> o) { +checkUnnamed2557(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2039() { +buildUnnamed2558() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2039(core.List<api.SortedDimension> o) { +checkUnnamed2558(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2040() { +buildUnnamed2559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2040(core.List<core.String> o) { +checkUnnamed2559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2041() { +buildUnnamed2560() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2041(core.List<core.String> o) { +checkUnnamed2560(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6781,11 +7292,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2038(); - o.dimensions = buildUnnamed2039(); + o.dimensionFilters = buildUnnamed2557(); + o.dimensions = buildUnnamed2558(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed2040(); - o.reachByFrequencyMetricNames = buildUnnamed2041(); + o.metricNames = buildUnnamed2559(); + o.reachByFrequencyMetricNames = buildUnnamed2560(); } buildCounterReportReachCriteria--; return o; @@ -6797,23 +7308,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2038(o.dimensionFilters); - checkUnnamed2039(o.dimensions); + checkUnnamed2557(o.dimensionFilters); + checkUnnamed2558(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed2040(o.metricNames); - checkUnnamed2041(o.reachByFrequencyMetricNames); + checkUnnamed2559(o.metricNames); + checkUnnamed2560(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed2042() { +buildUnnamed2561() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2042(core.List<core.String> o) { +checkUnnamed2561(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6828,7 +7339,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed2042(); + o.repeatsOnWeekDays = buildUnnamed2561(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -6843,7 +7354,7 @@ unittest.expect(o.every, unittest.equals(42)); unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed2042(o.repeatsOnWeekDays); + checkUnnamed2561(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -6903,53 +7414,53 @@ buildCounterReport--; } -buildUnnamed2043() { +buildUnnamed2562() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2043(core.List<api.Dimension> o) { +checkUnnamed2562(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2044() { +buildUnnamed2563() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2044(core.List<api.Dimension> o) { +checkUnnamed2563(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2045() { +buildUnnamed2564() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2045(core.List<api.Metric> o) { +checkUnnamed2564(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2046() { +buildUnnamed2565() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2046(core.List<api.Metric> o) { +checkUnnamed2565(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6960,11 +7471,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2043(); - o.dimensions = buildUnnamed2044(); + o.dimensionFilters = buildUnnamed2562(); + o.dimensions = buildUnnamed2563(); o.kind = "foo"; - o.metrics = buildUnnamed2045(); - o.pivotedActivityMetrics = buildUnnamed2046(); + o.metrics = buildUnnamed2564(); + o.pivotedActivityMetrics = buildUnnamed2565(); } buildCounterReportCompatibleFields--; return o; @@ -6973,23 +7484,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed2043(o.dimensionFilters); - checkUnnamed2044(o.dimensions); + checkUnnamed2562(o.dimensionFilters); + checkUnnamed2563(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2045(o.metrics); - checkUnnamed2046(o.pivotedActivityMetrics); + checkUnnamed2564(o.metrics); + checkUnnamed2565(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed2047() { +buildUnnamed2566() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2047(core.List<api.Report> o) { +checkUnnamed2566(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7001,7 +7512,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed2047(); + o.items = buildUnnamed2566(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7013,7 +7524,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2047(o.items); + checkUnnamed2566(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7048,9 +7559,9 @@ var o = new api.RichMediaExitOverride(); buildCounterRichMediaExitOverride++; if (buildCounterRichMediaExitOverride < 3) { - o.customExitUrl = "foo"; + o.clickThroughUrl = buildClickThroughUrl(); + o.enabled = true; o.exitId = "foo"; - o.useCustomExitUrl = true; } buildCounterRichMediaExitOverride--; return o; @@ -7059,21 +7570,44 @@ checkRichMediaExitOverride(api.RichMediaExitOverride o) { buildCounterRichMediaExitOverride++; if (buildCounterRichMediaExitOverride < 3) { - unittest.expect(o.customExitUrl, unittest.equals('foo')); + checkClickThroughUrl(o.clickThroughUrl); + unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.exitId, unittest.equals('foo')); - unittest.expect(o.useCustomExitUrl, unittest.isTrue); } buildCounterRichMediaExitOverride--; } -buildUnnamed2048() { +core.int buildCounterRule = 0; +buildRule() { + var o = new api.Rule(); + buildCounterRule++; + if (buildCounterRule < 3) { + o.assetId = "foo"; + o.name = "foo"; + o.targetingTemplateId = "foo"; + } + buildCounterRule--; + return o; +} + +checkRule(api.Rule o) { + buildCounterRule++; + if (buildCounterRule < 3) { + unittest.expect(o.assetId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.targetingTemplateId, unittest.equals('foo')); + } + buildCounterRule--; +} + +buildUnnamed2567() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed2048(core.List<api.SiteContact> o) { +checkUnnamed2567(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7093,7 +7627,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed2048(); + o.siteContacts = buildUnnamed2567(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7113,7 +7647,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2048(o.siteContacts); + checkUnnamed2567(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7164,7 +7698,8 @@ o.disableNewCookie = true; o.lookbackConfiguration = buildLookbackConfiguration(); o.tagSetting = buildTagSetting(); - o.videoActiveViewOptOut = true; + o.videoActiveViewOptOutTemplate = true; + o.vpaidAdapterChoiceTemplate = "foo"; } buildCounterSiteSettings--; return o; @@ -7179,19 +7714,20 @@ unittest.expect(o.disableNewCookie, unittest.isTrue); checkLookbackConfiguration(o.lookbackConfiguration); checkTagSetting(o.tagSetting); - unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); + unittest.expect(o.videoActiveViewOptOutTemplate, unittest.isTrue); + unittest.expect(o.vpaidAdapterChoiceTemplate, unittest.equals('foo')); } buildCounterSiteSettings--; } -buildUnnamed2049() { +buildUnnamed2568() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed2049(core.List<api.Site> o) { +checkUnnamed2568(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7204,7 +7740,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed2049(); + o.sites = buildUnnamed2568(); } buildCounterSitesListResponse--; return o; @@ -7215,7 +7751,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2049(o.sites); + checkUnnamed2568(o.sites); } buildCounterSitesListResponse--; } @@ -7247,14 +7783,14 @@ buildCounterSize--; } -buildUnnamed2050() { +buildUnnamed2569() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed2050(core.List<api.Size> o) { +checkUnnamed2569(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7266,7 +7802,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed2050(); + o.sizes = buildUnnamed2569(); } buildCounterSizesListResponse--; return o; @@ -7276,11 +7812,36 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2050(o.sizes); + checkUnnamed2569(o.sizes); } buildCounterSizesListResponse--; } +core.int buildCounterSkippableSetting = 0; +buildSkippableSetting() { + var o = new api.SkippableSetting(); + buildCounterSkippableSetting++; + if (buildCounterSkippableSetting < 3) { + o.kind = "foo"; + o.progressOffset = buildVideoOffset(); + o.skipOffset = buildVideoOffset(); + o.skippable = true; + } + buildCounterSkippableSetting--; + return o; +} + +checkSkippableSetting(api.SkippableSetting o) { + buildCounterSkippableSetting++; + if (buildCounterSkippableSetting < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + checkVideoOffset(o.progressOffset); + checkVideoOffset(o.skipOffset); + unittest.expect(o.skippable, unittest.isTrue); + } + buildCounterSkippableSetting--; +} + core.int buildCounterSortedDimension = 0; buildSortedDimension() { var o = new api.SortedDimension(); @@ -7304,14 +7865,14 @@ buildCounterSortedDimension--; } -buildUnnamed2051() { +buildUnnamed2570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2051(core.List<core.String> o) { +checkUnnamed2570(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7323,7 +7884,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed2051(); + o.availablePermissionIds = buildUnnamed2570(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7336,7 +7897,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2051(o.availablePermissionIds); + checkUnnamed2570(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7344,14 +7905,14 @@ buildCounterSubaccount--; } -buildUnnamed2052() { +buildUnnamed2571() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed2052(core.List<api.Subaccount> o) { +checkUnnamed2571(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7364,7 +7925,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed2052(); + o.subaccounts = buildUnnamed2571(); } buildCounterSubaccountsListResponse--; return o; @@ -7375,7 +7936,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2052(o.subaccounts); + checkUnnamed2571(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7515,14 +8076,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed2053() { +buildUnnamed2572() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed2053(core.List<api.TargetableRemarketingList> o) { +checkUnnamed2572(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -7535,7 +8096,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed2053(); + o.targetableRemarketingLists = buildUnnamed2572(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7546,84 +8107,163 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2053(o.targetableRemarketingLists); + checkUnnamed2572(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed2054() { +core.int buildCounterTargetingTemplate = 0; +buildTargetingTemplate() { + var o = new api.TargetingTemplate(); + buildCounterTargetingTemplate++; + if (buildCounterTargetingTemplate < 3) { + o.accountId = "foo"; + o.advertiserId = "foo"; + o.advertiserIdDimensionValue = buildDimensionValue(); + o.dayPartTargeting = buildDayPartTargeting(); + o.geoTargeting = buildGeoTargeting(); + o.id = "foo"; + o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); + o.kind = "foo"; + o.languageTargeting = buildLanguageTargeting(); + o.listTargetingExpression = buildListTargetingExpression(); + o.name = "foo"; + o.subaccountId = "foo"; + o.technologyTargeting = buildTechnologyTargeting(); + } + buildCounterTargetingTemplate--; + return o; +} + +checkTargetingTemplate(api.TargetingTemplate o) { + buildCounterTargetingTemplate++; + if (buildCounterTargetingTemplate < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + unittest.expect(o.advertiserId, unittest.equals('foo')); + checkDimensionValue(o.advertiserIdDimensionValue); + checkDayPartTargeting(o.dayPartTargeting); + checkGeoTargeting(o.geoTargeting); + unittest.expect(o.id, unittest.equals('foo')); + checkKeyValueTargetingExpression(o.keyValueTargetingExpression); + unittest.expect(o.kind, unittest.equals('foo')); + checkLanguageTargeting(o.languageTargeting); + checkListTargetingExpression(o.listTargetingExpression); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.subaccountId, unittest.equals('foo')); + checkTechnologyTargeting(o.technologyTargeting); + } + buildCounterTargetingTemplate--; +} + +buildUnnamed2573() { + var o = new core.List<api.TargetingTemplate>(); + o.add(buildTargetingTemplate()); + o.add(buildTargetingTemplate()); + return o; +} + +checkUnnamed2573(core.List<api.TargetingTemplate> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetingTemplate(o[0]); + checkTargetingTemplate(o[1]); +} + +core.int buildCounterTargetingTemplatesListResponse = 0; +buildTargetingTemplatesListResponse() { + var o = new api.TargetingTemplatesListResponse(); + buildCounterTargetingTemplatesListResponse++; + if (buildCounterTargetingTemplatesListResponse < 3) { + o.kind = "foo"; + o.nextPageToken = "foo"; + o.targetingTemplates = buildUnnamed2573(); + } + buildCounterTargetingTemplatesListResponse--; + return o; +} + +checkTargetingTemplatesListResponse(api.TargetingTemplatesListResponse o) { + buildCounterTargetingTemplatesListResponse++; + if (buildCounterTargetingTemplatesListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed2573(o.targetingTemplates); + } + buildCounterTargetingTemplatesListResponse--; +} + +buildUnnamed2574() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2054(core.List<api.Browser> o) { +checkUnnamed2574(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed2055() { +buildUnnamed2575() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2055(core.List<api.ConnectionType> o) { +checkUnnamed2575(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed2056() { +buildUnnamed2576() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2056(core.List<api.MobileCarrier> o) { +checkUnnamed2576(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed2057() { +buildUnnamed2577() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2057(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2577(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed2058() { +buildUnnamed2578() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2058(core.List<api.OperatingSystem> o) { +checkUnnamed2578(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed2059() { +buildUnnamed2579() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2059(core.List<api.PlatformType> o) { +checkUnnamed2579(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -7634,12 +8274,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed2054(); - o.connectionTypes = buildUnnamed2055(); - o.mobileCarriers = buildUnnamed2056(); - o.operatingSystemVersions = buildUnnamed2057(); - o.operatingSystems = buildUnnamed2058(); - o.platformTypes = buildUnnamed2059(); + o.browsers = buildUnnamed2574(); + o.connectionTypes = buildUnnamed2575(); + o.mobileCarriers = buildUnnamed2576(); + o.operatingSystemVersions = buildUnnamed2577(); + o.operatingSystems = buildUnnamed2578(); + o.platformTypes = buildUnnamed2579(); } buildCounterTechnologyTargeting--; return o; @@ -7648,12 +8288,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed2054(o.browsers); - checkUnnamed2055(o.connectionTypes); - checkUnnamed2056(o.mobileCarriers); - checkUnnamed2057(o.operatingSystemVersions); - checkUnnamed2058(o.operatingSystems); - checkUnnamed2059(o.platformTypes); + checkUnnamed2574(o.browsers); + checkUnnamed2575(o.connectionTypes); + checkUnnamed2576(o.mobileCarriers); + checkUnnamed2577(o.operatingSystemVersions); + checkUnnamed2578(o.operatingSystems); + checkUnnamed2579(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -7700,6 +8340,40 @@ buildCounterThirdPartyTrackingUrl--; } +buildUnnamed2580() { + var o = new core.List<core.int>(); + o.add(42); + o.add(42); + return o; +} + +checkUnnamed2580(core.List<core.int> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals(42)); + unittest.expect(o[1], unittest.equals(42)); +} + +core.int buildCounterTranscodeSetting = 0; +buildTranscodeSetting() { + var o = new api.TranscodeSetting(); + buildCounterTranscodeSetting++; + if (buildCounterTranscodeSetting < 3) { + o.enabledVideoFormats = buildUnnamed2580(); + o.kind = "foo"; + } + buildCounterTranscodeSetting--; + return o; +} + +checkTranscodeSetting(api.TranscodeSetting o) { + buildCounterTranscodeSetting++; + if (buildCounterTranscodeSetting < 3) { + checkUnnamed2580(o.enabledVideoFormats); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterTranscodeSetting--; +} + core.int buildCounterUserDefinedVariableConfiguration = 0; buildUserDefinedVariableConfiguration() { var o = new api.UserDefinedVariableConfiguration(); @@ -7756,14 +8430,14 @@ buildCounterUserProfile--; } -buildUnnamed2060() { +buildUnnamed2581() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed2060(core.List<api.UserProfile> o) { +checkUnnamed2581(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -7775,7 +8449,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2060(); + o.items = buildUnnamed2581(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -7786,20 +8460,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2060(o.items); + checkUnnamed2581(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed2061() { +buildUnnamed2582() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2061(core.List<api.UserRolePermission> o) { +checkUnnamed2582(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7816,7 +8490,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed2061(); + o.permissions = buildUnnamed2582(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -7832,7 +8506,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed2061(o.permissions); + checkUnnamed2582(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -7888,14 +8562,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed2062() { +buildUnnamed2583() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed2062(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed2583(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -7907,7 +8581,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed2062(); + o.userRolePermissionGroups = buildUnnamed2583(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -7917,19 +8591,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2062(o.userRolePermissionGroups); + checkUnnamed2583(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed2063() { +buildUnnamed2584() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2063(core.List<api.UserRolePermission> o) { +checkUnnamed2584(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7941,7 +8615,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed2063(); + o.userRolePermissions = buildUnnamed2584(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -7951,19 +8625,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2063(o.userRolePermissions); + checkUnnamed2584(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed2064() { +buildUnnamed2585() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed2064(core.List<api.UserRole> o) { +checkUnnamed2585(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -7976,7 +8650,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed2064(); + o.userRoles = buildUnnamed2585(); } buildCounterUserRolesListResponse--; return o; @@ -7987,1124 +8661,1257 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2064(o.userRoles); + checkUnnamed2585(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed2065() { +core.int buildCounterVideoFormat = 0; +buildVideoFormat() { + var o = new api.VideoFormat(); + buildCounterVideoFormat++; + if (buildCounterVideoFormat < 3) { + o.fileType = "foo"; + o.id = 42; + o.kind = "foo"; + o.resolution = buildSize(); + o.targetBitRate = 42; + } + buildCounterVideoFormat--; + return o; +} + +checkVideoFormat(api.VideoFormat o) { + buildCounterVideoFormat++; + if (buildCounterVideoFormat < 3) { + unittest.expect(o.fileType, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals(42)); + unittest.expect(o.kind, unittest.equals('foo')); + checkSize(o.resolution); + unittest.expect(o.targetBitRate, unittest.equals(42)); + } + buildCounterVideoFormat--; +} + +buildUnnamed2586() { + var o = new core.List<api.VideoFormat>(); + o.add(buildVideoFormat()); + o.add(buildVideoFormat()); + return o; +} + +checkUnnamed2586(core.List<api.VideoFormat> o) { + unittest.expect(o, unittest.hasLength(2)); + checkVideoFormat(o[0]); + checkVideoFormat(o[1]); +} + +core.int buildCounterVideoFormatsListResponse = 0; +buildVideoFormatsListResponse() { + var o = new api.VideoFormatsListResponse(); + buildCounterVideoFormatsListResponse++; + if (buildCounterVideoFormatsListResponse < 3) { + o.kind = "foo"; + o.videoFormats = buildUnnamed2586(); + } + buildCounterVideoFormatsListResponse--; + return o; +} + +checkVideoFormatsListResponse(api.VideoFormatsListResponse o) { + buildCounterVideoFormatsListResponse++; + if (buildCounterVideoFormatsListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2586(o.videoFormats); + } + buildCounterVideoFormatsListResponse--; +} + +core.int buildCounterVideoOffset = 0; +buildVideoOffset() { + var o = new api.VideoOffset(); + buildCounterVideoOffset++; + if (buildCounterVideoOffset < 3) { + o.offsetPercentage = 42; + o.offsetSeconds = 42; + } + buildCounterVideoOffset--; + return o; +} + +checkVideoOffset(api.VideoOffset o) { + buildCounterVideoOffset++; + if (buildCounterVideoOffset < 3) { + unittest.expect(o.offsetPercentage, unittest.equals(42)); + unittest.expect(o.offsetSeconds, unittest.equals(42)); + } + buildCounterVideoOffset--; +} + +core.int buildCounterVideoSettings = 0; +buildVideoSettings() { + var o = new api.VideoSettings(); + buildCounterVideoSettings++; + if (buildCounterVideoSettings < 3) { + o.companionSettings = buildCompanionSetting(); + o.kind = "foo"; + o.skippableSettings = buildSkippableSetting(); + o.transcodeSettings = buildTranscodeSetting(); + } + buildCounterVideoSettings--; + return o; +} + +checkVideoSettings(api.VideoSettings o) { + buildCounterVideoSettings++; + if (buildCounterVideoSettings < 3) { + checkCompanionSetting(o.companionSettings); + unittest.expect(o.kind, unittest.equals('foo')); + checkSkippableSetting(o.skippableSettings); + checkTranscodeSetting(o.transcodeSettings); + } + buildCounterVideoSettings--; +} + +buildUnnamed2587() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2065(core.List<core.String> o) { +checkUnnamed2587(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2066() { +buildUnnamed2588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2066(core.List<core.String> o) { +checkUnnamed2588(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2067() { +buildUnnamed2589() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2067(core.List<core.String> o) { +checkUnnamed2589(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2068() { +buildUnnamed2590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2068(core.List<core.String> o) { +checkUnnamed2590(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2069() { +buildUnnamed2591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2069(core.List<core.String> o) { +checkUnnamed2591(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2070() { +buildUnnamed2592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2070(core.List<core.String> o) { +checkUnnamed2592(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2071() { +buildUnnamed2593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2071(core.List<core.String> o) { +checkUnnamed2593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2072() { +buildUnnamed2594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2072(core.List<core.String> o) { +checkUnnamed2594(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2073() { +buildUnnamed2595() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2073(core.List<core.String> o) { +checkUnnamed2595(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2074() { +buildUnnamed2596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2074(core.List<core.String> o) { +checkUnnamed2596(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2075() { +buildUnnamed2597() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2075(core.List<core.String> o) { +checkUnnamed2597(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2076() { +buildUnnamed2598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2076(core.List<core.String> o) { +checkUnnamed2598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2077() { +buildUnnamed2599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2077(core.List<core.String> o) { +checkUnnamed2599(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2078() { +buildUnnamed2600() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2078(core.List<core.String> o) { +checkUnnamed2600(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2079() { +buildUnnamed2601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2079(core.List<core.String> o) { +checkUnnamed2601(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2080() { +buildUnnamed2602() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2080(core.List<core.String> o) { +checkUnnamed2602(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2081() { +buildUnnamed2603() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2081(core.List<core.String> o) { +checkUnnamed2603(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2082() { +buildUnnamed2604() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2082(core.List<core.String> o) { +checkUnnamed2604(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2083() { +buildUnnamed2605() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2083(core.List<core.String> o) { +checkUnnamed2605(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2084() { +buildUnnamed2606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2084(core.List<core.String> o) { +checkUnnamed2606(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2085() { +buildUnnamed2607() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2085(core.List<core.String> o) { +checkUnnamed2607(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2086() { +buildUnnamed2608() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2086(core.List<core.String> o) { +checkUnnamed2608(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2087() { +buildUnnamed2609() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2087(core.List<core.String> o) { +checkUnnamed2609(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2088() { +buildUnnamed2610() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2088(core.List<core.String> o) { +checkUnnamed2610(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2089() { +buildUnnamed2611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2089(core.List<core.String> o) { +checkUnnamed2611(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2090() { +buildUnnamed2612() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2090(core.List<core.String> o) { +checkUnnamed2612(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2091() { +buildUnnamed2613() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2091(core.List<core.String> o) { +checkUnnamed2613(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2614() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2614(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2615() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2615(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2092() { +buildUnnamed2616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2092(core.List<core.String> o) { +checkUnnamed2616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2093() { +buildUnnamed2617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2093(core.List<core.String> o) { +checkUnnamed2617(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2094() { +buildUnnamed2618() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2094(core.List<core.String> o) { +checkUnnamed2618(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2095() { +buildUnnamed2619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2095(core.List<core.String> o) { +checkUnnamed2619(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2096() { +buildUnnamed2620() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2096(core.List<core.String> o) { +checkUnnamed2620(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2097() { +buildUnnamed2621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2097(core.List<core.String> o) { +checkUnnamed2621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2098() { +buildUnnamed2622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2098(core.List<core.String> o) { +checkUnnamed2622(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2099() { +buildUnnamed2623() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2099(core.List<core.String> o) { +checkUnnamed2623(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2100() { +buildUnnamed2624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2100(core.List<core.String> o) { +checkUnnamed2624(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2101() { +buildUnnamed2625() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2101(core.List<core.String> o) { +checkUnnamed2625(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2102() { +buildUnnamed2626() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2102(core.List<core.String> o) { +checkUnnamed2626(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2103() { +buildUnnamed2627() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2103(core.List<core.String> o) { +checkUnnamed2627(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2104() { +buildUnnamed2628() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2104(core.List<core.String> o) { +checkUnnamed2628(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2105() { +buildUnnamed2629() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2105(core.List<core.String> o) { +checkUnnamed2629(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2106() { +buildUnnamed2630() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2106(core.List<core.String> o) { +checkUnnamed2630(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2107() { +buildUnnamed2631() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2107(core.List<core.String> o) { +checkUnnamed2631(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2108() { +buildUnnamed2632() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2108(core.List<core.String> o) { +checkUnnamed2632(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2109() { +buildUnnamed2633() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2109(core.List<core.String> o) { +checkUnnamed2633(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2110() { +buildUnnamed2634() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2110(core.List<core.String> o) { +checkUnnamed2634(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2111() { +buildUnnamed2635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2111(core.List<core.String> o) { +checkUnnamed2635(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2112() { +buildUnnamed2636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2112(core.List<core.String> o) { +checkUnnamed2636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2113() { +buildUnnamed2637() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2113(core.List<core.String> o) { +checkUnnamed2637(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2114() { +buildUnnamed2638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2114(core.List<core.String> o) { +checkUnnamed2638(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2115() { +buildUnnamed2639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2115(core.List<core.String> o) { +checkUnnamed2639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2116() { +buildUnnamed2640() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2116(core.List<core.String> o) { +checkUnnamed2640(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2117() { +buildUnnamed2641() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2117(core.List<core.String> o) { +checkUnnamed2641(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2118() { +buildUnnamed2642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2118(core.List<core.String> o) { +checkUnnamed2642(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2119() { +buildUnnamed2643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2119(core.List<core.String> o) { +checkUnnamed2643(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2120() { +buildUnnamed2644() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2120(core.List<core.String> o) { +checkUnnamed2644(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2121() { +buildUnnamed2645() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2121(core.List<core.String> o) { +checkUnnamed2645(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2122() { +buildUnnamed2646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2122(core.List<core.String> o) { +checkUnnamed2646(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2123() { +buildUnnamed2647() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2123(core.List<core.String> o) { +checkUnnamed2647(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2124() { +buildUnnamed2648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2124(core.List<core.String> o) { +checkUnnamed2648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2125() { +buildUnnamed2649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2125(core.List<core.String> o) { +checkUnnamed2649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2126() { +buildUnnamed2650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2126(core.List<core.String> o) { +checkUnnamed2650(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2127() { +buildUnnamed2651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2127(core.List<core.String> o) { +checkUnnamed2651(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2128() { +buildUnnamed2652() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2128(core.List<core.String> o) { +checkUnnamed2652(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2129() { +buildUnnamed2653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2129(core.List<core.String> o) { +checkUnnamed2653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2130() { +buildUnnamed2654() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2130(core.List<core.String> o) { +checkUnnamed2654(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2131() { +buildUnnamed2655() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2131(core.List<core.String> o) { +checkUnnamed2655(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2132() { +buildUnnamed2656() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2132(core.List<core.String> o) { +checkUnnamed2656(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2133() { +buildUnnamed2657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2133(core.List<core.String> o) { +checkUnnamed2657(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2134() { +buildUnnamed2658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2134(core.List<core.String> o) { +checkUnnamed2658(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2135() { +buildUnnamed2659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2135(core.List<core.String> o) { +checkUnnamed2659(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2136() { +buildUnnamed2660() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2136(core.List<core.String> o) { +checkUnnamed2660(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2137() { +buildUnnamed2661() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2137(core.List<core.String> o) { +checkUnnamed2661(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2138() { +buildUnnamed2662() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2138(core.List<core.String> o) { +checkUnnamed2662(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2139() { +buildUnnamed2663() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2139(core.List<core.String> o) { +checkUnnamed2663(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2140() { +buildUnnamed2664() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2140(core.List<core.String> o) { +checkUnnamed2664(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2141() { +buildUnnamed2665() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2141(core.List<core.String> o) { +checkUnnamed2665(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2142() { +buildUnnamed2666() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2142(core.List<core.String> o) { +checkUnnamed2666(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2143() { +buildUnnamed2667() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2143(core.List<core.String> o) { +checkUnnamed2667(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2144() { +buildUnnamed2668() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2144(core.List<core.String> o) { +checkUnnamed2668(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2145() { +buildUnnamed2669() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2145(core.List<core.String> o) { +checkUnnamed2669(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2146() { +buildUnnamed2670() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2146(core.List<core.String> o) { +checkUnnamed2670(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2147() { +buildUnnamed2671() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2147(core.List<core.String> o) { +checkUnnamed2671(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2148() { +buildUnnamed2672() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2148(core.List<core.String> o) { +checkUnnamed2672(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2149() { +buildUnnamed2673() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2149(core.List<core.String> o) { +checkUnnamed2673(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2150() { +buildUnnamed2674() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2150(core.List<core.String> o) { +checkUnnamed2674(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9409,6 +10216,15 @@ }); + unittest.group("obj-schema-CompanionSetting", () { + unittest.test("to-json--from-json", () { + var o = buildCompanionSetting(); + var od = new api.CompanionSetting.fromJson(o.toJson()); + checkCompanionSetting(od); + }); + }); + + unittest.group("obj-schema-CompatibleFields", () { unittest.test("to-json--from-json", () { var o = buildCompatibleFields(); @@ -9454,6 +10270,51 @@ }); + unittest.group("obj-schema-Conversion", () { + unittest.test("to-json--from-json", () { + var o = buildConversion(); + var od = new api.Conversion.fromJson(o.toJson()); + checkConversion(od); + }); + }); + + + unittest.group("obj-schema-ConversionError", () { + unittest.test("to-json--from-json", () { + var o = buildConversionError(); + var od = new api.ConversionError.fromJson(o.toJson()); + checkConversionError(od); + }); + }); + + + unittest.group("obj-schema-ConversionStatus", () { + unittest.test("to-json--from-json", () { + var o = buildConversionStatus(); + var od = new api.ConversionStatus.fromJson(o.toJson()); + checkConversionStatus(od); + }); + }); + + + unittest.group("obj-schema-ConversionsBatchInsertRequest", () { + unittest.test("to-json--from-json", () { + var o = buildConversionsBatchInsertRequest(); + var od = new api.ConversionsBatchInsertRequest.fromJson(o.toJson()); + checkConversionsBatchInsertRequest(od); + }); + }); + + + unittest.group("obj-schema-ConversionsBatchInsertResponse", () { + unittest.test("to-json--from-json", () { + var o = buildConversionsBatchInsertResponse(); + var od = new api.ConversionsBatchInsertResponse.fromJson(o.toJson()); + checkConversionsBatchInsertResponse(od); + }); + }); + + unittest.group("obj-schema-CountriesListResponse", () { unittest.test("to-json--from-json", () { var o = buildCountriesListResponse(); @@ -9508,6 +10369,15 @@ }); + unittest.group("obj-schema-CreativeAssetSelection", () { + unittest.test("to-json--from-json", () { + var o = buildCreativeAssetSelection(); + var od = new api.CreativeAssetSelection.fromJson(o.toJson()); + checkCreativeAssetSelection(od); + }); + }); + + unittest.group("obj-schema-CreativeAssignment", () { unittest.test("to-json--from-json", () { var o = buildCreativeAssignment(); @@ -9643,6 +10513,15 @@ }); + unittest.group("obj-schema-CustomFloodlightVariable", () { + unittest.test("to-json--from-json", () { + var o = buildCustomFloodlightVariable(); + var od = new api.CustomFloodlightVariable.fromJson(o.toJson()); + checkCustomFloodlightVariable(od); + }); + }); + + unittest.group("obj-schema-CustomRichMediaEvents", () { unittest.test("to-json--from-json", () { var o = buildCustomRichMediaEvents(); @@ -9796,6 +10675,33 @@ }); + unittest.group("obj-schema-DynamicTargetingKey", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicTargetingKey(); + var od = new api.DynamicTargetingKey.fromJson(o.toJson()); + checkDynamicTargetingKey(od); + }); + }); + + + unittest.group("obj-schema-DynamicTargetingKeysListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicTargetingKeysListResponse(); + var od = new api.DynamicTargetingKeysListResponse.fromJson(o.toJson()); + checkDynamicTargetingKeysListResponse(od); + }); + }); + + + unittest.group("obj-schema-EncryptionInfo", () { + unittest.test("to-json--from-json", () { + var o = buildEncryptionInfo(); + var od = new api.EncryptionInfo.fromJson(o.toJson()); + checkEncryptionInfo(od); + }); + }); + + unittest.group("obj-schema-EventTag", () { unittest.test("to-json--from-json", () { var o = buildEventTag(); @@ -10021,6 +10927,33 @@ }); + unittest.group("obj-schema-Language", () { + unittest.test("to-json--from-json", () { + var o = buildLanguage(); + var od = new api.Language.fromJson(o.toJson()); + checkLanguage(od); + }); + }); + + + unittest.group("obj-schema-LanguageTargeting", () { + unittest.test("to-json--from-json", () { + var o = buildLanguageTargeting(); + var od = new api.LanguageTargeting.fromJson(o.toJson()); + checkLanguageTargeting(od); + }); + }); + + + unittest.group("obj-schema-LanguagesListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLanguagesListResponse(); + var od = new api.LanguagesListResponse.fromJson(o.toJson()); + checkLanguagesListResponse(od); + }); + }); + + unittest.group("obj-schema-LastModifiedInfo", () { unittest.test("to-json--from-json", () { var o = buildLastModifiedInfo(); @@ -10606,6 +11539,15 @@ }); + unittest.group("obj-schema-Rule", () { + unittest.test("to-json--from-json", () { + var o = buildRule(); + var od = new api.Rule.fromJson(o.toJson()); + checkRule(od); + }); + }); + + unittest.group("obj-schema-Site", () { unittest.test("to-json--from-json", () { var o = buildSite(); @@ -10660,6 +11602,15 @@ }); + unittest.group("obj-schema-SkippableSetting", () { + unittest.test("to-json--from-json", () { + var o = buildSkippableSetting(); + var od = new api.SkippableSetting.fromJson(o.toJson()); + checkSkippableSetting(od); + }); + }); + + unittest.group("obj-schema-SortedDimension", () { unittest.test("to-json--from-json", () { var o = buildSortedDimension(); @@ -10741,6 +11692,24 @@ }); + unittest.group("obj-schema-TargetingTemplate", () { + unittest.test("to-json--from-json", () { + var o = buildTargetingTemplate(); + var od = new api.TargetingTemplate.fromJson(o.toJson()); + checkTargetingTemplate(od); + }); + }); + + + unittest.group("obj-schema-TargetingTemplatesListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildTargetingTemplatesListResponse(); + var od = new api.TargetingTemplatesListResponse.fromJson(o.toJson()); + checkTargetingTemplatesListResponse(od); + }); + }); + + unittest.group("obj-schema-TechnologyTargeting", () { unittest.test("to-json--from-json", () { var o = buildTechnologyTargeting(); @@ -10768,6 +11737,15 @@ }); + unittest.group("obj-schema-TranscodeSetting", () { + unittest.test("to-json--from-json", () { + var o = buildTranscodeSetting(); + var od = new api.TranscodeSetting.fromJson(o.toJson()); + checkTranscodeSetting(od); + }); + }); + + unittest.group("obj-schema-UserDefinedVariableConfiguration", () { unittest.test("to-json--from-json", () { var o = buildUserDefinedVariableConfiguration(); @@ -10849,6 +11827,42 @@ }); + unittest.group("obj-schema-VideoFormat", () { + unittest.test("to-json--from-json", () { + var o = buildVideoFormat(); + var od = new api.VideoFormat.fromJson(o.toJson()); + checkVideoFormat(od); + }); + }); + + + unittest.group("obj-schema-VideoFormatsListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildVideoFormatsListResponse(); + var od = new api.VideoFormatsListResponse.fromJson(o.toJson()); + checkVideoFormatsListResponse(od); + }); + }); + + + unittest.group("obj-schema-VideoOffset", () { + unittest.test("to-json--from-json", () { + var o = buildVideoOffset(); + var od = new api.VideoOffset.fromJson(o.toJson()); + checkVideoOffset(od); + }); + }); + + + unittest.group("obj-schema-VideoSettings", () { + unittest.test("to-json--from-json", () { + var o = buildVideoSettings(); + var od = new api.VideoSettings.fromJson(o.toJson()); + checkVideoSettings(od); + }); + }); + + unittest.group("resource-AccountActiveAdSummariesResourceApi", () { unittest.test("method--get", () { @@ -10863,7 +11877,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -10924,7 +11938,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -10980,7 +11994,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11038,7 +12052,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11094,7 +12108,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11152,7 +12166,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11212,7 +12226,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11259,7 +12273,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2065(); + var arg_ids = buildUnnamed2587(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11274,7 +12288,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11341,7 +12355,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11399,7 +12413,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11457,7 +12471,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11507,7 +12521,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2066(); + var arg_ids = buildUnnamed2588(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11520,7 +12534,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11585,7 +12599,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11643,7 +12657,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11701,7 +12715,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11761,7 +12775,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11810,27 +12824,26 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed2067(); - var arg_campaignIds = buildUnnamed2068(); + var arg_audienceSegmentIds = buildUnnamed2589(); + var arg_campaignIds = buildUnnamed2590(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed2069(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed2070(); - var arg_creativeType = "foo"; + var arg_creativeIds = buildUnnamed2591(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed2592(); var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed2071(); - var arg_landingPageIds = buildUnnamed2072(); + var arg_ids = buildUnnamed2593(); + var arg_landingPageIds = buildUnnamed2594(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed2073(); - var arg_remarketingListIds = buildUnnamed2074(); + var arg_placementIds = buildUnnamed2595(); + var arg_remarketingListIds = buildUnnamed2596(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2075(); + var arg_sizeIds = buildUnnamed2597(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed2076(); + var arg_type = buildUnnamed2598(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -11838,7 +12851,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11874,7 +12887,6 @@ unittest.expect(queryMap["compatibility"].first, unittest.equals(arg_compatibility)); unittest.expect(queryMap["creativeIds"], unittest.equals(arg_creativeIds)); unittest.expect(queryMap["creativeOptimizationConfigurationIds"], unittest.equals(arg_creativeOptimizationConfigurationIds)); - unittest.expect(queryMap["creativeType"].first, unittest.equals(arg_creativeType)); unittest.expect(queryMap["dynamicClickTracker"].first, unittest.equals("$arg_dynamicClickTracker")); unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["landingPageIds"], unittest.equals(arg_landingPageIds)); @@ -11898,7 +12910,7 @@ var resp = convert.JSON.encode(buildAdsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId, archived: arg_archived, audienceSegmentIds: arg_audienceSegmentIds, campaignIds: arg_campaignIds, compatibility: arg_compatibility, creativeIds: arg_creativeIds, creativeOptimizationConfigurationIds: arg_creativeOptimizationConfigurationIds, creativeType: arg_creativeType, dynamicClickTracker: arg_dynamicClickTracker, ids: arg_ids, landingPageIds: arg_landingPageIds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, placementIds: arg_placementIds, remarketingListIds: arg_remarketingListIds, searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, sslCompliant: arg_sslCompliant, sslRequired: arg_sslRequired, type: arg_type).then(unittest.expectAsync(((api.AdsListResponse response) { + res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId, archived: arg_archived, audienceSegmentIds: arg_audienceSegmentIds, campaignIds: arg_campaignIds, compatibility: arg_compatibility, creativeIds: arg_creativeIds, creativeOptimizationConfigurationIds: arg_creativeOptimizationConfigurationIds, dynamicClickTracker: arg_dynamicClickTracker, ids: arg_ids, landingPageIds: arg_landingPageIds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, placementIds: arg_placementIds, remarketingListIds: arg_remarketingListIds, searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, sslCompliant: arg_sslCompliant, sslRequired: arg_sslRequired, type: arg_type).then(unittest.expectAsync(((api.AdsListResponse response) { checkAdsListResponse(response); }))); }); @@ -11920,7 +12932,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11978,7 +12990,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12036,7 +13048,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12091,7 +13103,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12151,7 +13163,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12197,7 +13209,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2077(); + var arg_ids = buildUnnamed2599(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12210,7 +13222,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12274,7 +13286,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12332,7 +13344,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12390,7 +13402,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12450,7 +13462,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12496,9 +13508,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2078(); - var arg_floodlightConfigurationIds = buildUnnamed2079(); - var arg_ids = buildUnnamed2080(); + var arg_advertiserGroupIds = buildUnnamed2600(); + var arg_floodlightConfigurationIds = buildUnnamed2601(); + var arg_ids = buildUnnamed2602(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -12515,7 +13527,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12585,7 +13597,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12643,7 +13655,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12700,7 +13712,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12762,7 +13774,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12826,7 +13838,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12894,7 +13906,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12956,7 +13968,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13004,12 +14016,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2081(); - var arg_advertiserIds = buildUnnamed2082(); + var arg_advertiserGroupIds = buildUnnamed2603(); + var arg_advertiserIds = buildUnnamed2604(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed2083(); - var arg_ids = buildUnnamed2084(); + var arg_excludedIds = buildUnnamed2605(); + var arg_ids = buildUnnamed2606(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13024,7 +14036,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13095,7 +14107,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13153,7 +14165,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13211,7 +14223,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13261,15 +14273,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed2085(); + var arg_ids = buildUnnamed2607(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed2086(); + var arg_objectIds = buildUnnamed2608(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed2087(); + var arg_userProfileIds = buildUnnamed2609(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13277,7 +14289,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13337,10 +14349,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed2088(); - var arg_dartIds = buildUnnamed2089(); + var arg_countryDartIds = buildUnnamed2610(); + var arg_dartIds = buildUnnamed2611(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed2090(); + var arg_regionDartIds = buildUnnamed2612(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13348,7 +14360,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13410,7 +14422,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13466,7 +14478,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13524,7 +14536,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13579,7 +14591,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13639,7 +14651,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13685,7 +14697,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2091(); + var arg_ids = buildUnnamed2613(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13698,7 +14710,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13762,7 +14774,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13820,7 +14832,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13864,6 +14876,67 @@ }); + unittest.group("resource-ConversionsResourceApi", () { + unittest.test("method--batchinsert", () { + + var mock = new HttpServerMock(); + api.ConversionsResourceApi res = new api.DfareportingApi(mock).conversions; + var arg_request = buildConversionsBatchInsertRequest(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ConversionsBatchInsertRequest.fromJson(json); + checkConversionsBatchInsertRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/conversions/batchinsert", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/conversions/batchinsert")); + pathOffset += 24; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildConversionsBatchInsertResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.batchinsert(arg_request, arg_profileId).then(unittest.expectAsync(((api.ConversionsBatchInsertResponse response) { + checkConversionsBatchInsertResponse(response); + }))); + }); + + }); + + unittest.group("resource-CountriesResourceApi", () { unittest.test("method--get", () { @@ -13878,7 +14951,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13934,7 +15007,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13998,7 +15071,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14064,7 +15137,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14127,7 +15200,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14195,7 +15268,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14249,7 +15322,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed2092(); + var arg_ids = buildUnnamed2614(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14262,7 +15335,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14334,7 +15407,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14400,7 +15473,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14465,7 +15538,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14520,7 +15593,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14580,7 +15653,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14626,8 +15699,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2093(); - var arg_ids = buildUnnamed2094(); + var arg_advertiserIds = buildUnnamed2615(); + var arg_ids = buildUnnamed2616(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14640,7 +15713,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14705,7 +15778,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14763,7 +15836,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14821,7 +15894,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14881,7 +15954,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14927,9 +16000,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2095(); + var arg_advertiserIds = buildUnnamed2617(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed2096(); + var arg_ids = buildUnnamed2618(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14942,7 +16015,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15008,7 +16081,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15066,7 +16139,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15124,7 +16197,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15184,7 +16257,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15234,18 +16307,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed2097(); - var arg_creativeFieldIds = buildUnnamed2098(); - var arg_ids = buildUnnamed2099(); + var arg_companionCreativeIds = buildUnnamed2619(); + var arg_creativeFieldIds = buildUnnamed2620(); + var arg_ids = buildUnnamed2621(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed2100(); + var arg_renderingIds = buildUnnamed2622(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2101(); + var arg_sizeIds = buildUnnamed2623(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed2102(); + var arg_types = buildUnnamed2624(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -15253,7 +16326,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15327,7 +16400,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15385,7 +16458,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15448,7 +16521,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15508,7 +16581,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15557,8 +16630,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed2103(); - var arg_ids = buildUnnamed2104(); + var arg_directorySiteIds = buildUnnamed2625(); + var arg_ids = buildUnnamed2626(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15571,7 +16644,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15636,7 +16709,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15696,7 +16769,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15748,7 +16821,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed2105(); + var arg_ids = buildUnnamed2627(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -15762,7 +16835,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15819,6 +16892,187 @@ }); + unittest.group("resource-DynamicTargetingKeysResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; + var arg_profileId = "foo"; + var arg_objectId = "foo"; + var arg_name = "foo"; + var arg_objectType = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/dynamicTargetingKeys/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/dynamicTargetingKeys/")); + pathOffset += 22; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_objectId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); + unittest.expect(queryMap["objectType"].first, unittest.equals(arg_objectType)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_profileId, arg_objectId, arg_name, arg_objectType).then(unittest.expectAsync((_) {})); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; + var arg_request = buildDynamicTargetingKey(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.DynamicTargetingKey.fromJson(json); + checkDynamicTargetingKey(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/dynamicTargetingKeys", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/dynamicTargetingKeys")); + pathOffset += 21; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildDynamicTargetingKey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.DynamicTargetingKey response) { + checkDynamicTargetingKey(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; + var arg_profileId = "foo"; + var arg_advertiserId = "foo"; + var arg_names = buildUnnamed2628(); + var arg_objectId = "foo"; + var arg_objectType = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/dynamicTargetingKeys", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/dynamicTargetingKeys")); + pathOffset += 21; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect(queryMap["names"], unittest.equals(arg_names)); + unittest.expect(queryMap["objectId"].first, unittest.equals(arg_objectId)); + unittest.expect(queryMap["objectType"].first, unittest.equals(arg_objectType)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildDynamicTargetingKeysListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId, advertiserId: arg_advertiserId, names: arg_names, objectId: arg_objectId, objectType: arg_objectType).then(unittest.expectAsync(((api.DynamicTargetingKeysListResponse response) { + checkDynamicTargetingKeysListResponse(response); + }))); + }); + + }); + + unittest.group("resource-EventTagsResourceApi", () { unittest.test("method--delete", () { @@ -15833,7 +17087,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15888,7 +17142,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15948,7 +17202,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15999,8 +17253,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed2106(); - var arg_ids = buildUnnamed2107(); + var arg_eventTagTypes = buildUnnamed2629(); + var arg_ids = buildUnnamed2630(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -16011,7 +17265,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16079,7 +17333,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16137,7 +17391,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16197,7 +17451,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("reports/")); pathOffset += 8; @@ -16258,7 +17512,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16321,7 +17575,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16376,7 +17630,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16431,7 +17685,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16491,7 +17745,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16538,12 +17792,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed2108(); + var arg_floodlightActivityGroupIds = buildUnnamed2631(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2109(); + var arg_ids = buildUnnamed2632(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16557,7 +17811,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16628,7 +17882,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16686,7 +17940,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16744,7 +17998,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16804,7 +18058,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16852,7 +18106,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2110(); + var arg_ids = buildUnnamed2633(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16866,7 +18120,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16933,7 +18187,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16991,7 +18245,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17049,7 +18303,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17098,7 +18352,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2111(); + var arg_ids = buildUnnamed2634(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -17106,7 +18360,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17165,7 +18419,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17223,7 +18477,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17282,7 +18536,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17339,14 +18593,15 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2112(); + var arg_ids = buildUnnamed2635(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed2113(); + var arg_orderId = buildUnnamed2636(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed2114(); + var arg_siteId = buildUnnamed2637(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; + var arg_type = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -17354,7 +18609,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17397,6 +18652,7 @@ unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); var h = { @@ -17405,7 +18661,7 @@ var resp = convert.JSON.encode(buildInventoryItemsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_profileId, arg_projectId, ids: arg_ids, inPlan: arg_inPlan, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.InventoryItemsListResponse response) { + res.list(arg_profileId, arg_projectId, ids: arg_ids, inPlan: arg_inPlan, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder, type: arg_type).then(unittest.expectAsync(((api.InventoryItemsListResponse response) { checkInventoryItemsListResponse(response); }))); }); @@ -17428,7 +18684,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17491,7 +18747,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17559,7 +18815,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17620,7 +18876,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17686,7 +18942,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17752,7 +19008,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17803,6 +19059,63 @@ }); + unittest.group("resource-LanguagesResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.LanguagesResourceApi res = new api.DfareportingApi(mock).languages; + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/languages", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/languages")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLanguagesListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId).then(unittest.expectAsync(((api.LanguagesListResponse response) { + checkLanguagesListResponse(response); + }))); + }); + + }); + + unittest.group("resource-MetrosResourceApi", () { unittest.test("method--list", () { @@ -17816,7 +19129,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17874,7 +19187,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17930,7 +19243,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17988,7 +19301,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18044,7 +19357,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18102,7 +19415,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18158,7 +19471,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18217,7 +19530,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18275,12 +19588,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed2115(); + var arg_ids = buildUnnamed2638(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed2116(); + var arg_orderId = buildUnnamed2639(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2117(); + var arg_siteId = buildUnnamed2640(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18290,7 +19603,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18365,7 +19678,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18422,11 +19735,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2118(); + var arg_ids = buildUnnamed2641(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2119(); + var arg_siteId = buildUnnamed2642(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18436,7 +19749,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18508,7 +19821,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18568,7 +19881,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18614,12 +19927,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2120(); + var arg_advertiserIds = buildUnnamed2643(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2121(); - var arg_contentCategoryIds = buildUnnamed2122(); - var arg_directorySiteIds = buildUnnamed2123(); - var arg_ids = buildUnnamed2124(); + var arg_campaignIds = buildUnnamed2644(); + var arg_contentCategoryIds = buildUnnamed2645(); + var arg_directorySiteIds = buildUnnamed2646(); + var arg_ids = buildUnnamed2647(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -18627,10 +19940,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed2125(); - var arg_pricingTypes = buildUnnamed2126(); + var arg_placementStrategyIds = buildUnnamed2648(); + var arg_pricingTypes = buildUnnamed2649(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2127(); + var arg_siteIds = buildUnnamed2650(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18640,7 +19953,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18717,7 +20030,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18775,7 +20088,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18833,7 +20146,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18888,7 +20201,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18948,7 +20261,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18994,7 +20307,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2128(); + var arg_ids = buildUnnamed2651(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19007,7 +20320,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19071,7 +20384,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19129,7 +20442,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19180,8 +20493,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed2129(); - var arg_tagFormats = buildUnnamed2130(); + var arg_placementIds = buildUnnamed2652(); + var arg_tagFormats = buildUnnamed2653(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -19189,7 +20502,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19246,7 +20559,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19306,7 +20619,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19352,14 +20665,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2131(); + var arg_advertiserIds = buildUnnamed2654(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2132(); - var arg_compatibilities = buildUnnamed2133(); - var arg_contentCategoryIds = buildUnnamed2134(); - var arg_directorySiteIds = buildUnnamed2135(); - var arg_groupIds = buildUnnamed2136(); - var arg_ids = buildUnnamed2137(); + var arg_campaignIds = buildUnnamed2655(); + var arg_compatibilities = buildUnnamed2656(); + var arg_contentCategoryIds = buildUnnamed2657(); + var arg_directorySiteIds = buildUnnamed2658(); + var arg_groupIds = buildUnnamed2659(); + var arg_ids = buildUnnamed2660(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19367,11 +20680,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed2138(); - var arg_pricingTypes = buildUnnamed2139(); + var arg_placementStrategyIds = buildUnnamed2661(); + var arg_pricingTypes = buildUnnamed2662(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2140(); - var arg_sizeIds = buildUnnamed2141(); + var arg_siteIds = buildUnnamed2663(); + var arg_sizeIds = buildUnnamed2664(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19381,7 +20694,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19461,7 +20774,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19519,7 +20832,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19577,7 +20890,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19633,7 +20946,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19691,7 +21004,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19747,7 +21060,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19805,7 +21118,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19854,8 +21167,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2142(); - var arg_ids = buildUnnamed2143(); + var arg_advertiserIds = buildUnnamed2665(); + var arg_ids = buildUnnamed2666(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19868,7 +21181,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19932,7 +21245,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19990,7 +21303,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20051,7 +21364,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20109,7 +21422,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20167,7 +21480,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20227,7 +21540,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20288,7 +21601,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20354,7 +21667,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20412,7 +21725,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20470,7 +21783,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20525,7 +21838,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20585,7 +21898,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20643,7 +21956,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20706,7 +22019,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20764,7 +22077,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20830,7 +22143,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20894,7 +22207,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20955,7 +22268,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21023,7 +22336,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21092,7 +22405,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21152,7 +22465,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21203,9 +22516,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed2144(); - var arg_directorySiteIds = buildUnnamed2145(); - var arg_ids = buildUnnamed2146(); + var arg_campaignIds = buildUnnamed2667(); + var arg_directorySiteIds = buildUnnamed2668(); + var arg_ids = buildUnnamed2669(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21220,7 +22533,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21293,7 +22606,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21351,7 +22664,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21409,7 +22722,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21469,7 +22782,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21517,7 +22830,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed2147(); + var arg_ids = buildUnnamed2670(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -21526,7 +22839,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21588,7 +22901,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21648,7 +22961,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21694,7 +23007,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2148(); + var arg_ids = buildUnnamed2671(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21707,7 +23020,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21771,7 +23084,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21829,7 +23142,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21887,7 +23200,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21950,7 +23263,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22001,6 +23314,307 @@ }); + unittest.group("resource-TargetingTemplatesResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_profileId = "foo"; + var arg_id = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/targetingTemplates/")); + pathOffset += 20; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_id")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_request = buildTargetingTemplate(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetingTemplate.fromJson(json); + checkTargetingTemplate(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/targetingTemplates")); + pathOffset += 19; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_profileId = "foo"; + var arg_advertiserId = "foo"; + var arg_ids = buildUnnamed2672(); + var arg_maxResults = 42; + var arg_pageToken = "foo"; + var arg_searchString = "foo"; + var arg_sortField = "foo"; + var arg_sortOrder = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/targetingTemplates")); + pathOffset += 19; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetingTemplatesListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId, advertiserId: arg_advertiserId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.TargetingTemplatesListResponse response) { + checkTargetingTemplatesListResponse(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_request = buildTargetingTemplate(); + var arg_profileId = "foo"; + var arg_id = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetingTemplate.fromJson(json); + checkTargetingTemplate(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/targetingTemplates")); + pathOffset += 19; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_request = buildTargetingTemplate(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetingTemplate.fromJson(json); + checkTargetingTemplate(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/targetingTemplates")); + pathOffset += 19; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + }); + + unittest.group("resource-UserProfilesResourceApi", () { unittest.test("method--get", () { @@ -22014,7 +23628,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22062,7 +23676,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("userprofiles")); pathOffset += 12; @@ -22113,7 +23727,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22169,7 +23783,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22227,7 +23841,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22276,7 +23890,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2149(); + var arg_ids = buildUnnamed2673(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -22284,7 +23898,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22343,7 +23957,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22398,7 +24012,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22458,7 +24072,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22505,7 +24119,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed2150(); + var arg_ids = buildUnnamed2674(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22519,7 +24133,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22585,7 +24199,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22643,7 +24257,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22687,5 +24301,119 @@ }); + unittest.group("resource-VideoFormatsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.VideoFormatsResourceApi res = new api.DfareportingApi(mock).videoFormats; + var arg_profileId = "foo"; + var arg_id = 42; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/videoFormats/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/videoFormats/")); + pathOffset += 14; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_id")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildVideoFormat()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.VideoFormat response) { + checkVideoFormat(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.VideoFormatsResourceApi res = new api.DfareportingApi(mock).videoFormats; + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/videoFormats", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_profileId")); + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/videoFormats")); + pathOffset += 13; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildVideoFormatsListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId).then(unittest.expectAsync(((api.VideoFormatsListResponse response) { + checkVideoFormatsListResponse(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis/test/discovery/v1_test.dart b/generated/googleapis/test/discovery/v1_test.dart index 6a1789b..619555e 100644 --- a/generated/googleapis/test/discovery/v1_test.dart +++ b/generated/googleapis/test/discovery/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterDirectoryListItemsIcons--; } -buildUnnamed478() { +buildUnnamed493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed478(core.List<core.String> o) { +checkUnnamed493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,7 +97,7 @@ o.icons = buildDirectoryListItemsIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed478(); + o.labels = buildUnnamed493(); o.name = "foo"; o.preferred = true; o.title = "foo"; @@ -117,7 +117,7 @@ checkDirectoryListItemsIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed478(o.labels); + checkUnnamed493(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.preferred, unittest.isTrue); unittest.expect(o.title, unittest.equals('foo')); @@ -126,14 +126,14 @@ buildCounterDirectoryListItems--; } -buildUnnamed479() { +buildUnnamed494() { var o = new core.List<api.DirectoryListItems>(); o.add(buildDirectoryListItems()); o.add(buildDirectoryListItems()); return o; } -checkUnnamed479(core.List<api.DirectoryListItems> o) { +checkUnnamed494(core.List<api.DirectoryListItems> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectoryListItems(o[0]); checkDirectoryListItems(o[1]); @@ -145,7 +145,7 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { o.discoveryVersion = "foo"; - o.items = buildUnnamed479(); + o.items = buildUnnamed494(); o.kind = "foo"; } buildCounterDirectoryList--; @@ -156,20 +156,20 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { unittest.expect(o.discoveryVersion, unittest.equals('foo')); - checkUnnamed479(o.items); + checkUnnamed494(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectoryList--; } -buildUnnamed480() { +buildUnnamed495() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed480(core.List<core.String> o) { +checkUnnamed495(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,7 +180,7 @@ var o = new api.JsonSchemaAnnotations(); buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - o.required = buildUnnamed480(); + o.required = buildUnnamed495(); } buildCounterJsonSchemaAnnotations--; return o; @@ -189,45 +189,45 @@ checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - checkUnnamed480(o.required); + checkUnnamed495(o.required); } buildCounterJsonSchemaAnnotations--; } -buildUnnamed481() { +buildUnnamed496() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed481(core.List<core.String> o) { +checkUnnamed496(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed482() { +buildUnnamed497() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed482(core.List<core.String> o) { +checkUnnamed497(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed483() { +buildUnnamed498() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed483(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed498(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -254,14 +254,14 @@ buildCounterJsonSchemaVariantMap--; } -buildUnnamed484() { +buildUnnamed499() { var o = new core.List<api.JsonSchemaVariantMap>(); o.add(buildJsonSchemaVariantMap()); o.add(buildJsonSchemaVariantMap()); return o; } -checkUnnamed484(core.List<api.JsonSchemaVariantMap> o) { +checkUnnamed499(core.List<api.JsonSchemaVariantMap> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchemaVariantMap(o[0]); checkJsonSchemaVariantMap(o[1]); @@ -273,7 +273,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { o.discriminant = "foo"; - o.map = buildUnnamed484(); + o.map = buildUnnamed499(); } buildCounterJsonSchemaVariant--; return o; @@ -283,7 +283,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { unittest.expect(o.discriminant, unittest.equals('foo')); - checkUnnamed484(o.map); + checkUnnamed499(o.map); } buildCounterJsonSchemaVariant--; } @@ -298,8 +298,8 @@ o.annotations = buildJsonSchemaAnnotations(); o.default_ = "foo"; o.description = "foo"; - o.enum_ = buildUnnamed481(); - o.enumDescriptions = buildUnnamed482(); + o.enum_ = buildUnnamed496(); + o.enumDescriptions = buildUnnamed497(); o.format = "foo"; o.id = "foo"; o.items = buildJsonSchema(); @@ -307,7 +307,7 @@ o.maximum = "foo"; o.minimum = "foo"; o.pattern = "foo"; - o.properties = buildUnnamed483(); + o.properties = buildUnnamed498(); o.readOnly = true; o.repeated = true; o.required = true; @@ -326,8 +326,8 @@ checkJsonSchemaAnnotations(o.annotations); unittest.expect(o.default_, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed481(o.enum_); - checkUnnamed482(o.enumDescriptions); + checkUnnamed496(o.enum_); + checkUnnamed497(o.enumDescriptions); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkJsonSchema(o.items); @@ -335,7 +335,7 @@ unittest.expect(o.maximum, unittest.equals('foo')); unittest.expect(o.minimum, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed483(o.properties); + checkUnnamed498(o.properties); unittest.expect(o.readOnly, unittest.isTrue); unittest.expect(o.repeated, unittest.isTrue); unittest.expect(o.required, unittest.isTrue); @@ -364,14 +364,14 @@ buildCounterRestDescriptionAuthOauth2ScopesValue--; } -buildUnnamed485() { +buildUnnamed500() { var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); return o; } -checkUnnamed485(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { +checkUnnamed500(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { unittest.expect(o, unittest.hasLength(2)); checkRestDescriptionAuthOauth2ScopesValue(o["x"]); checkRestDescriptionAuthOauth2ScopesValue(o["y"]); @@ -382,7 +382,7 @@ var o = new api.RestDescriptionAuthOauth2(); buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - o.scopes = buildUnnamed485(); + o.scopes = buildUnnamed500(); } buildCounterRestDescriptionAuthOauth2--; return o; @@ -391,7 +391,7 @@ checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - checkUnnamed485(o.scopes); + checkUnnamed500(o.scopes); } buildCounterRestDescriptionAuthOauth2--; } @@ -415,14 +415,14 @@ buildCounterRestDescriptionAuth--; } -buildUnnamed486() { +buildUnnamed501() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed486(core.List<core.String> o) { +checkUnnamed501(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -449,66 +449,66 @@ buildCounterRestDescriptionIcons--; } -buildUnnamed487() { +buildUnnamed502() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed487(core.List<core.String> o) { +checkUnnamed502(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed488() { +buildUnnamed503() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed488(core.Map<core.String, api.RestMethod> o) { +checkUnnamed503(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed489() { +buildUnnamed504() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed489(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed504(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); } -buildUnnamed490() { +buildUnnamed505() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed490(core.Map<core.String, api.RestResource> o) { +checkUnnamed505(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); } -buildUnnamed491() { +buildUnnamed506() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed491(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed506(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -529,22 +529,22 @@ o.documentationLink = "foo"; o.etag = "foo"; o.exponentialBackoffDefault = true; - o.features = buildUnnamed486(); + o.features = buildUnnamed501(); o.icons = buildRestDescriptionIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed487(); - o.methods = buildUnnamed488(); + o.labels = buildUnnamed502(); + o.methods = buildUnnamed503(); o.name = "foo"; o.ownerDomain = "foo"; o.ownerName = "foo"; o.packagePath = "foo"; - o.parameters = buildUnnamed489(); + o.parameters = buildUnnamed504(); o.protocol = "foo"; - o.resources = buildUnnamed490(); + o.resources = buildUnnamed505(); o.revision = "foo"; o.rootUrl = "foo"; - o.schemas = buildUnnamed491(); + o.schemas = buildUnnamed506(); o.servicePath = "foo"; o.title = "foo"; o.version = "foo"; @@ -567,22 +567,22 @@ unittest.expect(o.documentationLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); - checkUnnamed486(o.features); + checkUnnamed501(o.features); checkRestDescriptionIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed487(o.labels); - checkUnnamed488(o.methods); + checkUnnamed502(o.labels); + checkUnnamed503(o.methods); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ownerDomain, unittest.equals('foo')); unittest.expect(o.ownerName, unittest.equals('foo')); unittest.expect(o.packagePath, unittest.equals('foo')); - checkUnnamed489(o.parameters); + checkUnnamed504(o.parameters); unittest.expect(o.protocol, unittest.equals('foo')); - checkUnnamed490(o.resources); + checkUnnamed505(o.resources); unittest.expect(o.revision, unittest.equals('foo')); unittest.expect(o.rootUrl, unittest.equals('foo')); - checkUnnamed491(o.schemas); + checkUnnamed506(o.schemas); unittest.expect(o.servicePath, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -591,14 +591,14 @@ buildCounterRestDescription--; } -buildUnnamed492() { +buildUnnamed507() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed492(core.List<core.String> o) { +checkUnnamed507(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ var o = new api.RestMethodMediaUpload(); buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - o.accept = buildUnnamed492(); + o.accept = buildUnnamed507(); o.maxSize = "foo"; o.protocols = buildRestMethodMediaUploadProtocols(); } @@ -683,34 +683,34 @@ checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - checkUnnamed492(o.accept); + checkUnnamed507(o.accept); unittest.expect(o.maxSize, unittest.equals('foo')); checkRestMethodMediaUploadProtocols(o.protocols); } buildCounterRestMethodMediaUpload--; } -buildUnnamed493() { +buildUnnamed508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed493(core.List<core.String> o) { +checkUnnamed508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed494() { +buildUnnamed509() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed494(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed509(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -756,14 +756,14 @@ buildCounterRestMethodResponse--; } -buildUnnamed495() { +buildUnnamed510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed495(core.List<core.String> o) { +checkUnnamed510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -779,12 +779,12 @@ o.httpMethod = "foo"; o.id = "foo"; o.mediaUpload = buildRestMethodMediaUpload(); - o.parameterOrder = buildUnnamed493(); - o.parameters = buildUnnamed494(); + o.parameterOrder = buildUnnamed508(); + o.parameters = buildUnnamed509(); o.path = "foo"; o.request = buildRestMethodRequest(); o.response = buildRestMethodResponse(); - o.scopes = buildUnnamed495(); + o.scopes = buildUnnamed510(); o.supportsMediaDownload = true; o.supportsMediaUpload = true; o.supportsSubscription = true; @@ -802,12 +802,12 @@ unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRestMethodMediaUpload(o.mediaUpload); - checkUnnamed493(o.parameterOrder); - checkUnnamed494(o.parameters); + checkUnnamed508(o.parameterOrder); + checkUnnamed509(o.parameters); unittest.expect(o.path, unittest.equals('foo')); checkRestMethodRequest(o.request); checkRestMethodResponse(o.response); - checkUnnamed495(o.scopes); + checkUnnamed510(o.scopes); unittest.expect(o.supportsMediaDownload, unittest.isTrue); unittest.expect(o.supportsMediaUpload, unittest.isTrue); unittest.expect(o.supportsSubscription, unittest.isTrue); @@ -816,27 +816,27 @@ buildCounterRestMethod--; } -buildUnnamed496() { +buildUnnamed511() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed496(core.Map<core.String, api.RestMethod> o) { +checkUnnamed511(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed497() { +buildUnnamed512() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed497(core.Map<core.String, api.RestResource> o) { +checkUnnamed512(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); @@ -847,8 +847,8 @@ var o = new api.RestResource(); buildCounterRestResource++; if (buildCounterRestResource < 3) { - o.methods = buildUnnamed496(); - o.resources = buildUnnamed497(); + o.methods = buildUnnamed511(); + o.resources = buildUnnamed512(); } buildCounterRestResource--; return o; @@ -857,8 +857,8 @@ checkRestResource(api.RestResource o) { buildCounterRestResource++; if (buildCounterRestResource < 3) { - checkUnnamed496(o.methods); - checkUnnamed497(o.resources); + checkUnnamed511(o.methods); + checkUnnamed512(o.resources); } buildCounterRestResource--; }
diff --git a/generated/googleapis/test/dns/v1_test.dart b/generated/googleapis/test/dns/v1_test.dart index 60c9f59..f4badd7 100644 --- a/generated/googleapis/test/dns/v1_test.dart +++ b/generated/googleapis/test/dns/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed903() { +buildUnnamed928() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed903(core.List<api.ResourceRecordSet> o) { +checkUnnamed928(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed904() { +buildUnnamed929() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed904(core.List<api.ResourceRecordSet> o) { +checkUnnamed929(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -82,8 +82,8 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed903(); - o.deletions = buildUnnamed904(); + o.additions = buildUnnamed928(); + o.deletions = buildUnnamed929(); o.id = "foo"; o.kind = "foo"; o.startTime = "foo"; @@ -96,8 +96,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed903(o.additions); - checkUnnamed904(o.deletions); + checkUnnamed928(o.additions); + checkUnnamed929(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -106,14 +106,14 @@ buildCounterChange--; } -buildUnnamed905() { +buildUnnamed930() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed905(core.List<api.Change> o) { +checkUnnamed930(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -124,7 +124,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed905(); + o.changes = buildUnnamed930(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -135,21 +135,21 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed905(o.changes); + checkUnnamed930(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangesListResponse--; } -buildUnnamed906() { +buildUnnamed931() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed906(core.List<core.String> o) { +checkUnnamed931(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -167,7 +167,7 @@ o.kind = "foo"; o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed906(); + o.nameServers = buildUnnamed931(); } buildCounterManagedZone--; return o; @@ -183,19 +183,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed906(o.nameServers); + checkUnnamed931(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed907() { +buildUnnamed932() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed907(core.List<api.ManagedZone> o) { +checkUnnamed932(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -207,7 +207,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { o.kind = "foo"; - o.managedZones = buildUnnamed907(); + o.managedZones = buildUnnamed932(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -218,7 +218,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed907(o.managedZones); + checkUnnamed932(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -280,14 +280,14 @@ buildCounterQuota--; } -buildUnnamed908() { +buildUnnamed933() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed908(core.List<core.String> o) { +checkUnnamed933(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -300,7 +300,7 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed908(); + o.rrdatas = buildUnnamed933(); o.ttl = 42; o.type = "foo"; } @@ -313,21 +313,21 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed908(o.rrdatas); + checkUnnamed933(o.rrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed909() { +buildUnnamed934() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed909(core.List<api.ResourceRecordSet> o) { +checkUnnamed934(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -340,7 +340,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed909(); + o.rrsets = buildUnnamed934(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -351,7 +351,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed909(o.rrsets); + checkUnnamed934(o.rrsets); } buildCounterResourceRecordSetsListResponse--; }
diff --git a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart index b150c71..6a1e0a0 100644 --- a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart +++ b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1329() { +buildUnnamed1350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1329(core.List<core.String> o) { +checkUnnamed1350(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { o.fileSpec = "foo"; - o.filterIds = buildUnnamed1329(); + o.filterIds = buildUnnamed1350(); o.filterType = "foo"; o.format = "foo"; } @@ -82,7 +82,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { unittest.expect(o.fileSpec, unittest.equals('foo')); - checkUnnamed1329(o.filterIds); + checkUnnamed1350(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -108,6 +108,82 @@ buildCounterDownloadLineItemsResponse--; } +buildUnnamed1351() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1351(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1352() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1352(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterDownloadRequest = 0; +buildDownloadRequest() { + var o = new api.DownloadRequest(); + buildCounterDownloadRequest++; + if (buildCounterDownloadRequest < 3) { + o.fileTypes = buildUnnamed1351(); + o.filterIds = buildUnnamed1352(); + o.filterType = "foo"; + o.version = "foo"; + } + buildCounterDownloadRequest--; + return o; +} + +checkDownloadRequest(api.DownloadRequest o) { + buildCounterDownloadRequest++; + if (buildCounterDownloadRequest < 3) { + checkUnnamed1351(o.fileTypes); + checkUnnamed1352(o.filterIds); + unittest.expect(o.filterType, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterDownloadRequest--; +} + +core.int buildCounterDownloadResponse = 0; +buildDownloadResponse() { + var o = new api.DownloadResponse(); + buildCounterDownloadResponse++; + if (buildCounterDownloadResponse < 3) { + o.adGroups = "foo"; + o.ads = "foo"; + o.insertionOrders = "foo"; + o.lineItems = "foo"; + } + buildCounterDownloadResponse--; + return o; +} + +checkDownloadResponse(api.DownloadResponse o) { + buildCounterDownloadResponse++; + if (buildCounterDownloadResponse < 3) { + unittest.expect(o.adGroups, unittest.equals('foo')); + unittest.expect(o.ads, unittest.equals('foo')); + unittest.expect(o.insertionOrders, unittest.equals('foo')); + unittest.expect(o.lineItems, unittest.equals('foo')); + } + buildCounterDownloadResponse--; +} + core.int buildCounterFilterPair = 0; buildFilterPair() { var o = new api.FilterPair(); @@ -129,14 +205,14 @@ buildCounterFilterPair--; } -buildUnnamed1330() { +buildUnnamed1353() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed1330(core.List<api.Query> o) { +checkUnnamed1353(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); @@ -148,7 +224,7 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { o.kind = "foo"; - o.queries = buildUnnamed1330(); + o.queries = buildUnnamed1353(); } buildCounterListQueriesResponse--; return o; @@ -158,19 +234,19 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1330(o.queries); + checkUnnamed1353(o.queries); } buildCounterListQueriesResponse--; } -buildUnnamed1331() { +buildUnnamed1354() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1331(core.List<api.Report> o) { +checkUnnamed1354(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -182,7 +258,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.kind = "foo"; - o.reports = buildUnnamed1331(); + o.reports = buildUnnamed1354(); } buildCounterListReportsResponse--; return o; @@ -192,112 +268,45 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1331(o.reports); + checkUnnamed1354(o.reports); } buildCounterListReportsResponse--; } -core.int buildCounterNote = 0; -buildNote() { - var o = new api.Note(); - buildCounterNote++; - if (buildCounterNote < 3) { - o.id = "foo"; - o.message = "foo"; - o.source = "foo"; - o.timestamp = "foo"; - o.username = "foo"; - } - buildCounterNote--; - return o; -} - -checkNote(api.Note o) { - buildCounterNote++; - if (buildCounterNote < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.message, unittest.equals('foo')); - unittest.expect(o.source, unittest.equals('foo')); - unittest.expect(o.timestamp, unittest.equals('foo')); - unittest.expect(o.username, unittest.equals('foo')); - } - buildCounterNote--; -} - -buildUnnamed1332() { - var o = new core.List<api.Note>(); - o.add(buildNote()); - o.add(buildNote()); - return o; -} - -checkUnnamed1332(core.List<api.Note> o) { - unittest.expect(o, unittest.hasLength(2)); - checkNote(o[0]); - checkNote(o[1]); -} - -core.int buildCounterNotifyProposalChangeRequest = 0; -buildNotifyProposalChangeRequest() { - var o = new api.NotifyProposalChangeRequest(); - buildCounterNotifyProposalChangeRequest++; - if (buildCounterNotifyProposalChangeRequest < 3) { - o.action = "foo"; - o.href = "foo"; - o.id = "foo"; - o.notes = buildUnnamed1332(); - o.token = "foo"; - } - buildCounterNotifyProposalChangeRequest--; - return o; -} - -checkNotifyProposalChangeRequest(api.NotifyProposalChangeRequest o) { - buildCounterNotifyProposalChangeRequest++; - if (buildCounterNotifyProposalChangeRequest < 3) { - unittest.expect(o.action, unittest.equals('foo')); - unittest.expect(o.href, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1332(o.notes); - unittest.expect(o.token, unittest.equals('foo')); - } - buildCounterNotifyProposalChangeRequest--; -} - -buildUnnamed1333() { +buildUnnamed1355() { var o = new core.List<api.FilterPair>(); o.add(buildFilterPair()); o.add(buildFilterPair()); return o; } -checkUnnamed1333(core.List<api.FilterPair> o) { +checkUnnamed1355(core.List<api.FilterPair> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterPair(o[0]); checkFilterPair(o[1]); } -buildUnnamed1334() { +buildUnnamed1356() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1334(core.List<core.String> o) { +checkUnnamed1356(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1335() { +buildUnnamed1357() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1335(core.List<core.String> o) { +checkUnnamed1357(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -308,10 +317,10 @@ var o = new api.Parameters(); buildCounterParameters++; if (buildCounterParameters < 3) { - o.filters = buildUnnamed1333(); - o.groupBys = buildUnnamed1334(); + o.filters = buildUnnamed1355(); + o.groupBys = buildUnnamed1356(); o.includeInviteData = true; - o.metrics = buildUnnamed1335(); + o.metrics = buildUnnamed1357(); o.type = "foo"; } buildCounterParameters--; @@ -321,10 +330,10 @@ checkParameters(api.Parameters o) { buildCounterParameters++; if (buildCounterParameters < 3) { - checkUnnamed1333(o.filters); - checkUnnamed1334(o.groupBys); + checkUnnamed1355(o.filters); + checkUnnamed1356(o.groupBys); unittest.expect(o.includeInviteData, unittest.isTrue); - checkUnnamed1335(o.metrics); + checkUnnamed1357(o.metrics); unittest.expect(o.type, unittest.equals('foo')); } buildCounterParameters--; @@ -363,14 +372,14 @@ buildCounterQuery--; } -buildUnnamed1336() { +buildUnnamed1358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1336(core.List<core.String> o) { +checkUnnamed1358(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -390,7 +399,7 @@ o.reportCount = 42; o.running = true; o.sendNotification = true; - o.shareEmailAddress = buildUnnamed1336(); + o.shareEmailAddress = buildUnnamed1358(); o.title = "foo"; } buildCounterQueryMetadata--; @@ -409,7 +418,7 @@ unittest.expect(o.reportCount, unittest.equals(42)); unittest.expect(o.running, unittest.isTrue); unittest.expect(o.sendNotification, unittest.isTrue); - checkUnnamed1336(o.shareEmailAddress); + checkUnnamed1358(o.shareEmailAddress); unittest.expect(o.title, unittest.equals('foo')); } buildCounterQueryMetadata--; @@ -553,14 +562,14 @@ buildCounterReportStatus--; } -buildUnnamed1337() { +buildUnnamed1359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1337(core.List<core.String> o) { +checkUnnamed1359(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -574,7 +583,7 @@ o.changed = true; o.entityId = "foo"; o.entityName = "foo"; - o.errors = buildUnnamed1337(); + o.errors = buildUnnamed1359(); o.persisted = true; o.rowNumber = 42; } @@ -588,7 +597,7 @@ unittest.expect(o.changed, unittest.isTrue); unittest.expect(o.entityId, unittest.equals('foo')); unittest.expect(o.entityName, unittest.equals('foo')); - checkUnnamed1337(o.errors); + checkUnnamed1359(o.errors); unittest.expect(o.persisted, unittest.isTrue); unittest.expect(o.rowNumber, unittest.equals(42)); } @@ -662,27 +671,27 @@ buildCounterUploadLineItemsResponse--; } -buildUnnamed1338() { +buildUnnamed1360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1338(core.List<core.String> o) { +checkUnnamed1360(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1339() { +buildUnnamed1361() { var o = new core.List<api.RowStatus>(); o.add(buildRowStatus()); o.add(buildRowStatus()); return o; } -checkUnnamed1339(core.List<api.RowStatus> o) { +checkUnnamed1361(core.List<api.RowStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRowStatus(o[0]); checkRowStatus(o[1]); @@ -693,8 +702,8 @@ var o = new api.UploadStatus(); buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - o.errors = buildUnnamed1338(); - o.rowStatus = buildUnnamed1339(); + o.errors = buildUnnamed1360(); + o.rowStatus = buildUnnamed1361(); } buildCounterUploadStatus--; return o; @@ -703,8 +712,8 @@ checkUploadStatus(api.UploadStatus o) { buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - checkUnnamed1338(o.errors); - checkUnnamed1339(o.rowStatus); + checkUnnamed1360(o.errors); + checkUnnamed1361(o.rowStatus); } buildCounterUploadStatus--; } @@ -729,6 +738,24 @@ }); + unittest.group("obj-schema-DownloadRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDownloadRequest(); + var od = new api.DownloadRequest.fromJson(o.toJson()); + checkDownloadRequest(od); + }); + }); + + + unittest.group("obj-schema-DownloadResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDownloadResponse(); + var od = new api.DownloadResponse.fromJson(o.toJson()); + checkDownloadResponse(od); + }); + }); + + unittest.group("obj-schema-FilterPair", () { unittest.test("to-json--from-json", () { var o = buildFilterPair(); @@ -756,24 +783,6 @@ }); - unittest.group("obj-schema-Note", () { - unittest.test("to-json--from-json", () { - var o = buildNote(); - var od = new api.Note.fromJson(o.toJson()); - checkNote(od); - }); - }); - - - unittest.group("obj-schema-NotifyProposalChangeRequest", () { - unittest.test("to-json--from-json", () { - var o = buildNotifyProposalChangeRequest(); - var od = new api.NotifyProposalChangeRequest.fromJson(o.toJson()); - checkNotifyProposalChangeRequest(od); - }); - }); - - unittest.group("obj-schema-Parameters", () { unittest.test("to-json--from-json", () { var o = buildParameters(); @@ -1304,15 +1313,15 @@ }); - unittest.group("resource-RubiconResourceApi", () { - unittest.test("method--notifyproposalchange", () { + unittest.group("resource-SdfResourceApi", () { + unittest.test("method--download", () { var mock = new HttpServerMock(); - api.RubiconResourceApi res = new api.DoubleclickbidmanagerApi(mock).rubicon; - var arg_request = buildNotifyProposalChangeRequest(); + api.SdfResourceApi res = new api.DoubleclickbidmanagerApi(mock).sdf; + var arg_request = buildDownloadRequest(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.NotifyProposalChangeRequest.fromJson(json); - checkNotifyProposalChangeRequest(obj); + var obj = new api.DownloadRequest.fromJson(json); + checkDownloadRequest(obj); var path = (req.url).path; var pathOffset = 0; @@ -1322,8 +1331,8 @@ pathOffset += 1; unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("doubleclickbidmanager/v1/")); pathOffset += 25; - unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.equals("rubicon/notifyproposalchange")); - pathOffset += 28; + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("sdf/download")); + pathOffset += 12; var query = (req.url).query; var queryOffset = 0; @@ -1346,10 +1355,12 @@ var h = { "content-type" : "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.JSON.encode(buildDownloadResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.notifyproposalchange(arg_request).then(unittest.expectAsync((_) {})); + res.download(arg_request).then(unittest.expectAsync(((api.DownloadResponse response) { + checkDownloadResponse(response); + }))); }); });
diff --git a/generated/googleapis/test/doubleclicksearch/v2_test.dart b/generated/googleapis/test/doubleclicksearch/v2_test.dart index f669f5d..1c0693c 100644 --- a/generated/googleapis/test/doubleclicksearch/v2_test.dart +++ b/generated/googleapis/test/doubleclicksearch/v2_test.dart
@@ -80,27 +80,27 @@ buildCounterAvailability--; } -buildUnnamed1429() { +buildUnnamed1439() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1429(core.List<api.CustomDimension> o) { +checkUnnamed1439(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); } -buildUnnamed1430() { +buildUnnamed1440() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1430(core.List<api.CustomMetric> o) { +checkUnnamed1440(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -125,8 +125,8 @@ o.countMillis = "foo"; o.criterionId = "foo"; o.currencyCode = "foo"; - o.customDimension = buildUnnamed1429(); - o.customMetric = buildUnnamed1430(); + o.customDimension = buildUnnamed1439(); + o.customMetric = buildUnnamed1440(); o.deviceType = "foo"; o.dsConversionId = "foo"; o.engineAccountId = "foo"; @@ -166,8 +166,8 @@ unittest.expect(o.countMillis, unittest.equals('foo')); unittest.expect(o.criterionId, unittest.equals('foo')); unittest.expect(o.currencyCode, unittest.equals('foo')); - checkUnnamed1429(o.customDimension); - checkUnnamed1430(o.customMetric); + checkUnnamed1439(o.customDimension); + checkUnnamed1440(o.customMetric); unittest.expect(o.deviceType, unittest.equals('foo')); unittest.expect(o.dsConversionId, unittest.equals('foo')); unittest.expect(o.engineAccountId, unittest.equals('foo')); @@ -189,14 +189,14 @@ buildCounterConversion--; } -buildUnnamed1431() { +buildUnnamed1441() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1431(core.List<api.Conversion> o) { +checkUnnamed1441(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -207,7 +207,7 @@ var o = new api.ConversionList(); buildCounterConversionList++; if (buildCounterConversionList < 3) { - o.conversion = buildUnnamed1431(); + o.conversion = buildUnnamed1441(); o.kind = "foo"; } buildCounterConversionList--; @@ -217,7 +217,7 @@ checkConversionList(api.ConversionList o) { buildCounterConversionList++; if (buildCounterConversionList < 3) { - checkUnnamed1431(o.conversion); + checkUnnamed1441(o.conversion); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionList--; @@ -286,27 +286,27 @@ buildCounterReportFiles--; } -buildUnnamed1432() { +buildUnnamed1442() { var o = new core.List<api.ReportFiles>(); o.add(buildReportFiles()); o.add(buildReportFiles()); return o; } -checkUnnamed1432(core.List<api.ReportFiles> o) { +checkUnnamed1442(core.List<api.ReportFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkReportFiles(o[0]); checkReportFiles(o[1]); } -buildUnnamed1433() { +buildUnnamed1443() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed1433(core.List<api.ReportRow> o) { +checkUnnamed1443(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); @@ -317,13 +317,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.files = buildUnnamed1432(); + o.files = buildUnnamed1442(); o.id = "foo"; o.isReportReady = true; o.kind = "foo"; o.request = buildReportRequest(); o.rowCount = 42; - o.rows = buildUnnamed1433(); + o.rows = buildUnnamed1443(); o.statisticsCurrencyCode = "foo"; o.statisticsTimeZone = "foo"; } @@ -334,13 +334,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1432(o.files); + checkUnnamed1442(o.files); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isReportReady, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkReportRequest(o.request); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed1433(o.rows); + checkUnnamed1443(o.rows); unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); } @@ -384,27 +384,27 @@ buildCounterReportApiColumnSpec--; } -buildUnnamed1434() { +buildUnnamed1444() { var o = new core.List<api.ReportApiColumnSpec>(); o.add(buildReportApiColumnSpec()); o.add(buildReportApiColumnSpec()); return o; } -checkUnnamed1434(core.List<api.ReportApiColumnSpec> o) { +checkUnnamed1444(core.List<api.ReportApiColumnSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkReportApiColumnSpec(o[0]); checkReportApiColumnSpec(o[1]); } -buildUnnamed1435() { +buildUnnamed1445() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1435(core.List<core.Object> o) { +checkUnnamed1445(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -417,7 +417,7 @@ if (buildCounterReportRequestFilters < 3) { o.column = buildReportApiColumnSpec(); o.operator = "foo"; - o.values = buildUnnamed1435(); + o.values = buildUnnamed1445(); } buildCounterReportRequestFilters--; return o; @@ -428,19 +428,19 @@ if (buildCounterReportRequestFilters < 3) { checkReportApiColumnSpec(o.column); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed1435(o.values); + checkUnnamed1445(o.values); } buildCounterReportRequestFilters--; } -buildUnnamed1436() { +buildUnnamed1446() { var o = new core.List<api.ReportRequestFilters>(); o.add(buildReportRequestFilters()); o.add(buildReportRequestFilters()); return o; } -checkUnnamed1436(core.List<api.ReportRequestFilters> o) { +checkUnnamed1446(core.List<api.ReportRequestFilters> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestFilters(o[0]); checkReportRequestFilters(o[1]); @@ -467,14 +467,14 @@ buildCounterReportRequestOrderBy--; } -buildUnnamed1437() { +buildUnnamed1447() { var o = new core.List<api.ReportRequestOrderBy>(); o.add(buildReportRequestOrderBy()); o.add(buildReportRequestOrderBy()); return o; } -checkUnnamed1437(core.List<api.ReportRequestOrderBy> o) { +checkUnnamed1447(core.List<api.ReportRequestOrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestOrderBy(o[0]); checkReportRequestOrderBy(o[1]); @@ -541,13 +541,13 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.columns = buildUnnamed1434(); + o.columns = buildUnnamed1444(); o.downloadFormat = "foo"; - o.filters = buildUnnamed1436(); + o.filters = buildUnnamed1446(); o.includeDeletedEntities = true; o.includeRemovedEntities = true; o.maxRowsPerFile = 42; - o.orderBy = buildUnnamed1437(); + o.orderBy = buildUnnamed1447(); o.reportScope = buildReportRequestReportScope(); o.reportType = "foo"; o.rowCount = 42; @@ -563,13 +563,13 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1434(o.columns); + checkUnnamed1444(o.columns); unittest.expect(o.downloadFormat, unittest.equals('foo')); - checkUnnamed1436(o.filters); + checkUnnamed1446(o.filters); unittest.expect(o.includeDeletedEntities, unittest.isTrue); unittest.expect(o.includeRemovedEntities, unittest.isTrue); unittest.expect(o.maxRowsPerFile, unittest.equals(42)); - checkUnnamed1437(o.orderBy); + checkUnnamed1447(o.orderBy); checkReportRequestReportScope(o.reportScope); unittest.expect(o.reportType, unittest.equals('foo')); unittest.expect(o.rowCount, unittest.equals(42)); @@ -617,14 +617,14 @@ buildCounterSavedColumn--; } -buildUnnamed1438() { +buildUnnamed1448() { var o = new core.List<api.SavedColumn>(); o.add(buildSavedColumn()); o.add(buildSavedColumn()); return o; } -checkUnnamed1438(core.List<api.SavedColumn> o) { +checkUnnamed1448(core.List<api.SavedColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedColumn(o[0]); checkSavedColumn(o[1]); @@ -635,7 +635,7 @@ var o = new api.SavedColumnList(); buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - o.items = buildUnnamed1438(); + o.items = buildUnnamed1448(); o.kind = "foo"; } buildCounterSavedColumnList--; @@ -645,20 +645,20 @@ checkSavedColumnList(api.SavedColumnList o) { buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - checkUnnamed1438(o.items); + checkUnnamed1448(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSavedColumnList--; } -buildUnnamed1439() { +buildUnnamed1449() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1439(core.List<api.Availability> o) { +checkUnnamed1449(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -669,7 +669,7 @@ var o = new api.UpdateAvailabilityRequest(); buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - o.availabilities = buildUnnamed1439(); + o.availabilities = buildUnnamed1449(); } buildCounterUpdateAvailabilityRequest--; return o; @@ -678,19 +678,19 @@ checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - checkUnnamed1439(o.availabilities); + checkUnnamed1449(o.availabilities); } buildCounterUpdateAvailabilityRequest--; } -buildUnnamed1440() { +buildUnnamed1450() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1440(core.List<api.Availability> o) { +checkUnnamed1450(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -701,7 +701,7 @@ var o = new api.UpdateAvailabilityResponse(); buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - o.availabilities = buildUnnamed1440(); + o.availabilities = buildUnnamed1450(); } buildCounterUpdateAvailabilityResponse--; return o; @@ -710,7 +710,7 @@ checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - checkUnnamed1440(o.availabilities); + checkUnnamed1450(o.availabilities); } buildCounterUpdateAvailabilityResponse--; }
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart index d71513d..1367755 100644 --- a/generated/googleapis/test/drive/v2_test.dart +++ b/generated/googleapis/test/drive/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed822() { +buildUnnamed846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed822(core.List<core.String> o) { +checkUnnamed846(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AboutAdditionalRoleInfoRoleSets(); buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - o.additionalRoles = buildUnnamed822(); + o.additionalRoles = buildUnnamed846(); o.primaryRole = "foo"; } buildCounterAboutAdditionalRoleInfoRoleSets--; @@ -79,20 +79,20 @@ checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - checkUnnamed822(o.additionalRoles); + checkUnnamed846(o.additionalRoles); unittest.expect(o.primaryRole, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfoRoleSets--; } -buildUnnamed823() { +buildUnnamed847() { var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); o.add(buildAboutAdditionalRoleInfoRoleSets()); o.add(buildAboutAdditionalRoleInfoRoleSets()); return o; } -checkUnnamed823(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { +checkUnnamed847(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfoRoleSets(o[0]); checkAboutAdditionalRoleInfoRoleSets(o[1]); @@ -103,7 +103,7 @@ var o = new api.AboutAdditionalRoleInfo(); buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - o.roleSets = buildUnnamed823(); + o.roleSets = buildUnnamed847(); o.type = "foo"; } buildCounterAboutAdditionalRoleInfo--; @@ -113,33 +113,33 @@ checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - checkUnnamed823(o.roleSets); + checkUnnamed847(o.roleSets); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfo--; } -buildUnnamed824() { +buildUnnamed848() { var o = new core.List<api.AboutAdditionalRoleInfo>(); o.add(buildAboutAdditionalRoleInfo()); o.add(buildAboutAdditionalRoleInfo()); return o; } -checkUnnamed824(core.List<api.AboutAdditionalRoleInfo> o) { +checkUnnamed848(core.List<api.AboutAdditionalRoleInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfo(o[0]); checkAboutAdditionalRoleInfo(o[1]); } -buildUnnamed825() { +buildUnnamed849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed825(core.List<core.String> o) { +checkUnnamed849(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed825(); + o.targets = buildUnnamed849(); } buildCounterAboutExportFormats--; return o; @@ -161,19 +161,19 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed825(o.targets); + checkUnnamed849(o.targets); } buildCounterAboutExportFormats--; } -buildUnnamed826() { +buildUnnamed850() { var o = new core.List<api.AboutExportFormats>(); o.add(buildAboutExportFormats()); o.add(buildAboutExportFormats()); return o; } -checkUnnamed826(core.List<api.AboutExportFormats> o) { +checkUnnamed850(core.List<api.AboutExportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutExportFormats(o[0]); checkAboutExportFormats(o[1]); @@ -200,40 +200,40 @@ buildCounterAboutFeatures--; } -buildUnnamed827() { +buildUnnamed851() { var o = new core.List<api.AboutFeatures>(); o.add(buildAboutFeatures()); o.add(buildAboutFeatures()); return o; } -checkUnnamed827(core.List<api.AboutFeatures> o) { +checkUnnamed851(core.List<api.AboutFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutFeatures(o[0]); checkAboutFeatures(o[1]); } -buildUnnamed828() { +buildUnnamed852() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed828(core.List<core.String> o) { +checkUnnamed852(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed829() { +buildUnnamed853() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed829(core.List<core.String> o) { +checkUnnamed853(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -245,7 +245,7 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed829(); + o.targets = buildUnnamed853(); } buildCounterAboutImportFormats--; return o; @@ -255,19 +255,19 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed829(o.targets); + checkUnnamed853(o.targets); } buildCounterAboutImportFormats--; } -buildUnnamed830() { +buildUnnamed854() { var o = new core.List<api.AboutImportFormats>(); o.add(buildAboutImportFormats()); o.add(buildAboutImportFormats()); return o; } -checkUnnamed830(core.List<api.AboutImportFormats> o) { +checkUnnamed854(core.List<api.AboutImportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutImportFormats(o[0]); checkAboutImportFormats(o[1]); @@ -294,14 +294,14 @@ buildCounterAboutMaxUploadSizes--; } -buildUnnamed831() { +buildUnnamed855() { var o = new core.List<api.AboutMaxUploadSizes>(); o.add(buildAboutMaxUploadSizes()); o.add(buildAboutMaxUploadSizes()); return o; } -checkUnnamed831(core.List<api.AboutMaxUploadSizes> o) { +checkUnnamed855(core.List<api.AboutMaxUploadSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutMaxUploadSizes(o[0]); checkAboutMaxUploadSizes(o[1]); @@ -328,14 +328,14 @@ buildCounterAboutQuotaBytesByService--; } -buildUnnamed832() { +buildUnnamed856() { var o = new core.List<api.AboutQuotaBytesByService>(); o.add(buildAboutQuotaBytesByService()); o.add(buildAboutQuotaBytesByService()); return o; } -checkUnnamed832(core.List<api.AboutQuotaBytesByService> o) { +checkUnnamed856(core.List<api.AboutQuotaBytesByService> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutQuotaBytesByService(o[0]); checkAboutQuotaBytesByService(o[1]); @@ -346,21 +346,21 @@ var o = new api.About(); buildCounterAbout++; if (buildCounterAbout < 3) { - o.additionalRoleInfo = buildUnnamed824(); + o.additionalRoleInfo = buildUnnamed848(); o.domainSharingPolicy = "foo"; o.etag = "foo"; - o.exportFormats = buildUnnamed826(); - o.features = buildUnnamed827(); - o.folderColorPalette = buildUnnamed828(); - o.importFormats = buildUnnamed830(); + o.exportFormats = buildUnnamed850(); + o.features = buildUnnamed851(); + o.folderColorPalette = buildUnnamed852(); + o.importFormats = buildUnnamed854(); o.isCurrentAppInstalled = true; o.kind = "foo"; o.languageCode = "foo"; o.largestChangeId = "foo"; - o.maxUploadSizes = buildUnnamed831(); + o.maxUploadSizes = buildUnnamed855(); o.name = "foo"; o.permissionId = "foo"; - o.quotaBytesByService = buildUnnamed832(); + o.quotaBytesByService = buildUnnamed856(); o.quotaBytesTotal = "foo"; o.quotaBytesUsed = "foo"; o.quotaBytesUsedAggregate = "foo"; @@ -378,21 +378,21 @@ checkAbout(api.About o) { buildCounterAbout++; if (buildCounterAbout < 3) { - checkUnnamed824(o.additionalRoleInfo); + checkUnnamed848(o.additionalRoleInfo); unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed826(o.exportFormats); - checkUnnamed827(o.features); - checkUnnamed828(o.folderColorPalette); - checkUnnamed830(o.importFormats); + checkUnnamed850(o.exportFormats); + checkUnnamed851(o.features); + checkUnnamed852(o.folderColorPalette); + checkUnnamed854(o.importFormats); unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); - checkUnnamed831(o.maxUploadSizes); + checkUnnamed855(o.maxUploadSizes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); - checkUnnamed832(o.quotaBytesByService); + checkUnnamed856(o.quotaBytesByService); unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); @@ -429,66 +429,66 @@ buildCounterAppIcons--; } -buildUnnamed833() { +buildUnnamed857() { var o = new core.List<api.AppIcons>(); o.add(buildAppIcons()); o.add(buildAppIcons()); return o; } -checkUnnamed833(core.List<api.AppIcons> o) { +checkUnnamed857(core.List<api.AppIcons> o) { unittest.expect(o, unittest.hasLength(2)); checkAppIcons(o[0]); checkAppIcons(o[1]); } -buildUnnamed834() { +buildUnnamed858() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed834(core.List<core.String> o) { +checkUnnamed858(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed835() { +buildUnnamed859() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed835(core.List<core.String> o) { +checkUnnamed859(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed836() { +buildUnnamed860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed836(core.List<core.String> o) { +checkUnnamed860(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed837() { +buildUnnamed861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed837(core.List<core.String> o) { +checkUnnamed861(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -503,7 +503,7 @@ o.createInFolderTemplate = "foo"; o.createUrl = "foo"; o.hasDriveWideScope = true; - o.icons = buildUnnamed833(); + o.icons = buildUnnamed857(); o.id = "foo"; o.installed = true; o.kind = "foo"; @@ -511,12 +511,12 @@ o.name = "foo"; o.objectType = "foo"; o.openUrlTemplate = "foo"; - o.primaryFileExtensions = buildUnnamed834(); - o.primaryMimeTypes = buildUnnamed835(); + o.primaryFileExtensions = buildUnnamed858(); + o.primaryMimeTypes = buildUnnamed859(); o.productId = "foo"; o.productUrl = "foo"; - o.secondaryFileExtensions = buildUnnamed836(); - o.secondaryMimeTypes = buildUnnamed837(); + o.secondaryFileExtensions = buildUnnamed860(); + o.secondaryMimeTypes = buildUnnamed861(); o.shortDescription = "foo"; o.supportsCreate = true; o.supportsImport = true; @@ -535,7 +535,7 @@ unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); unittest.expect(o.createUrl, unittest.equals('foo')); unittest.expect(o.hasDriveWideScope, unittest.isTrue); - checkUnnamed833(o.icons); + checkUnnamed857(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.installed, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -543,12 +543,12 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.openUrlTemplate, unittest.equals('foo')); - checkUnnamed834(o.primaryFileExtensions); - checkUnnamed835(o.primaryMimeTypes); + checkUnnamed858(o.primaryFileExtensions); + checkUnnamed859(o.primaryMimeTypes); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productUrl, unittest.equals('foo')); - checkUnnamed836(o.secondaryFileExtensions); - checkUnnamed837(o.secondaryMimeTypes); + checkUnnamed860(o.secondaryFileExtensions); + checkUnnamed861(o.secondaryMimeTypes); unittest.expect(o.shortDescription, unittest.equals('foo')); unittest.expect(o.supportsCreate, unittest.isTrue); unittest.expect(o.supportsImport, unittest.isTrue); @@ -559,27 +559,27 @@ buildCounterApp--; } -buildUnnamed838() { +buildUnnamed862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed838(core.List<core.String> o) { +checkUnnamed862(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed839() { +buildUnnamed863() { var o = new core.List<api.App>(); o.add(buildApp()); o.add(buildApp()); return o; } -checkUnnamed839(core.List<api.App> o) { +checkUnnamed863(core.List<api.App> o) { unittest.expect(o, unittest.hasLength(2)); checkApp(o[0]); checkApp(o[1]); @@ -590,9 +590,9 @@ var o = new api.AppList(); buildCounterAppList++; if (buildCounterAppList < 3) { - o.defaultAppIds = buildUnnamed838(); + o.defaultAppIds = buildUnnamed862(); o.etag = "foo"; - o.items = buildUnnamed839(); + o.items = buildUnnamed863(); o.kind = "foo"; o.selfLink = "foo"; } @@ -603,9 +603,9 @@ checkAppList(api.AppList o) { buildCounterAppList++; if (buildCounterAppList < 3) { - checkUnnamed838(o.defaultAppIds); + checkUnnamed862(o.defaultAppIds); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed839(o.items); + checkUnnamed863(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -643,14 +643,14 @@ buildCounterChange--; } -buildUnnamed840() { +buildUnnamed864() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed840(core.List<api.Change> o) { +checkUnnamed864(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -662,7 +662,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { o.etag = "foo"; - o.items = buildUnnamed840(); + o.items = buildUnnamed864(); o.kind = "foo"; o.largestChangeId = "foo"; o.nextLink = "foo"; @@ -677,7 +677,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed840(o.items); + checkUnnamed864(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -687,14 +687,14 @@ buildCounterChangeList--; } -buildUnnamed841() { +buildUnnamed865() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed841(core.Map<core.String, core.String> o) { +checkUnnamed865(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -709,7 +709,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed841(); + o.params = buildUnnamed865(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -727,7 +727,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed841(o.params); + checkUnnamed865(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -737,14 +737,14 @@ buildCounterChannel--; } -buildUnnamed842() { +buildUnnamed866() { var o = new core.List<api.ChildReference>(); o.add(buildChildReference()); o.add(buildChildReference()); return o; } -checkUnnamed842(core.List<api.ChildReference> o) { +checkUnnamed866(core.List<api.ChildReference> o) { unittest.expect(o, unittest.hasLength(2)); checkChildReference(o[0]); checkChildReference(o[1]); @@ -756,7 +756,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { o.etag = "foo"; - o.items = buildUnnamed842(); + o.items = buildUnnamed866(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -770,7 +770,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed842(o.items); + checkUnnamed866(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -825,14 +825,14 @@ buildCounterCommentContext--; } -buildUnnamed843() { +buildUnnamed867() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed843(core.List<api.CommentReply> o) { +checkUnnamed867(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -855,7 +855,7 @@ o.htmlContent = "foo"; o.kind = "foo"; o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.replies = buildUnnamed843(); + o.replies = buildUnnamed867(); o.selfLink = "foo"; o.status = "foo"; } @@ -878,21 +878,21 @@ unittest.expect(o.htmlContent, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed843(o.replies); + checkUnnamed867(o.replies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterComment--; } -buildUnnamed844() { +buildUnnamed868() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed844(core.List<api.Comment> o) { +checkUnnamed868(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -903,7 +903,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.items = buildUnnamed844(); + o.items = buildUnnamed868(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -916,7 +916,7 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed844(o.items); + checkUnnamed868(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -960,14 +960,14 @@ buildCounterCommentReply--; } -buildUnnamed845() { +buildUnnamed869() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed845(core.List<api.CommentReply> o) { +checkUnnamed869(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -978,7 +978,7 @@ var o = new api.CommentReplyList(); buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - o.items = buildUnnamed845(); + o.items = buildUnnamed869(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -991,7 +991,7 @@ checkCommentReplyList(api.CommentReplyList o) { buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - checkUnnamed845(o.items); + checkUnnamed869(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1000,14 +1000,14 @@ buildCounterCommentReplyList--; } -buildUnnamed846() { +buildUnnamed870() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed846(core.Map<core.String, core.String> o) { +checkUnnamed870(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1120,6 +1120,7 @@ buildCounterFileLabels++; if (buildCounterFileLabels < 3) { o.hidden = true; + o.modified = true; o.restricted = true; o.starred = true; o.trashed = true; @@ -1133,6 +1134,7 @@ buildCounterFileLabels++; if (buildCounterFileLabels < 3) { unittest.expect(o.hidden, unittest.isTrue); + unittest.expect(o.modified, unittest.isTrue); unittest.expect(o.restricted, unittest.isTrue); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.trashed, unittest.isTrue); @@ -1141,92 +1143,92 @@ buildCounterFileLabels--; } -buildUnnamed847() { +buildUnnamed871() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed847(core.Map<core.String, core.String> o) { +checkUnnamed871(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed848() { +buildUnnamed872() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed848(core.List<core.String> o) { +checkUnnamed872(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed849() { +buildUnnamed873() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed849(core.List<api.User> o) { +checkUnnamed873(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed850() { +buildUnnamed874() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed850(core.List<api.ParentReference> o) { +checkUnnamed874(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); } -buildUnnamed851() { +buildUnnamed875() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed851(core.List<api.Permission> o) { +checkUnnamed875(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed852() { +buildUnnamed876() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed852(core.List<api.Property> o) { +checkUnnamed876(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); } -buildUnnamed853() { +buildUnnamed877() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed853(core.List<core.String> o) { +checkUnnamed877(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1294,7 +1296,7 @@ o.embedLink = "foo"; o.etag = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed846(); + o.exportLinks = buildUnnamed870(); o.fileExtension = "foo"; o.fileSize = "foo"; o.folderColorRgb = "foo"; @@ -1315,21 +1317,21 @@ o.mimeType = "foo"; o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.openWithLinks = buildUnnamed847(); + o.openWithLinks = buildUnnamed871(); o.originalFilename = "foo"; o.ownedByMe = true; - o.ownerNames = buildUnnamed848(); - o.owners = buildUnnamed849(); - o.parents = buildUnnamed850(); - o.permissions = buildUnnamed851(); - o.properties = buildUnnamed852(); + o.ownerNames = buildUnnamed872(); + o.owners = buildUnnamed873(); + o.parents = buildUnnamed874(); + o.permissions = buildUnnamed875(); + o.properties = buildUnnamed876(); o.quotaBytesUsed = "foo"; o.selfLink = "foo"; o.shareable = true; o.shared = true; o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); - o.spaces = buildUnnamed853(); + o.spaces = buildUnnamed877(); o.thumbnail = buildFileThumbnail(); o.thumbnailLink = "foo"; o.title = "foo"; @@ -1360,7 +1362,7 @@ unittest.expect(o.embedLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed846(o.exportLinks); + checkUnnamed870(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); @@ -1381,21 +1383,21 @@ unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed847(o.openWithLinks); + checkUnnamed871(o.openWithLinks); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed848(o.ownerNames); - checkUnnamed849(o.owners); - checkUnnamed850(o.parents); - checkUnnamed851(o.permissions); - checkUnnamed852(o.properties); + checkUnnamed872(o.ownerNames); + checkUnnamed873(o.owners); + checkUnnamed874(o.parents); + checkUnnamed875(o.permissions); + checkUnnamed876(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.shareable, unittest.isTrue); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); - checkUnnamed853(o.spaces); + checkUnnamed877(o.spaces); checkFileThumbnail(o.thumbnail); unittest.expect(o.thumbnailLink, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -1409,14 +1411,14 @@ buildCounterFile--; } -buildUnnamed854() { +buildUnnamed878() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed854(core.List<api.File> o) { +checkUnnamed878(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1428,7 +1430,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed854(); + o.items = buildUnnamed878(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1442,7 +1444,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed854(o.items); + checkUnnamed878(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1451,14 +1453,14 @@ buildCounterFileList--; } -buildUnnamed855() { +buildUnnamed879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed855(core.List<core.String> o) { +checkUnnamed879(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1469,7 +1471,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed855(); + o.ids = buildUnnamed879(); o.kind = "foo"; o.space = "foo"; } @@ -1480,21 +1482,21 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed855(o.ids); + checkUnnamed879(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } buildCounterGeneratedIds--; } -buildUnnamed856() { +buildUnnamed880() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed856(core.List<api.ParentReference> o) { +checkUnnamed880(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); @@ -1506,7 +1508,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { o.etag = "foo"; - o.items = buildUnnamed856(); + o.items = buildUnnamed880(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1518,7 +1520,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed856(o.items); + checkUnnamed880(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1552,14 +1554,14 @@ buildCounterParentReference--; } -buildUnnamed857() { +buildUnnamed881() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed857(core.List<core.String> o) { +checkUnnamed881(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1570,7 +1572,7 @@ var o = new api.Permission(); buildCounterPermission++; if (buildCounterPermission < 3) { - o.additionalRoles = buildUnnamed857(); + o.additionalRoles = buildUnnamed881(); o.authKey = "foo"; o.domain = "foo"; o.emailAddress = "foo"; @@ -1593,7 +1595,7 @@ checkPermission(api.Permission o) { buildCounterPermission++; if (buildCounterPermission < 3) { - checkUnnamed857(o.additionalRoles); + checkUnnamed881(o.additionalRoles); unittest.expect(o.authKey, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); unittest.expect(o.emailAddress, unittest.equals('foo')); @@ -1633,14 +1635,14 @@ buildCounterPermissionId--; } -buildUnnamed858() { +buildUnnamed882() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed858(core.List<api.Permission> o) { +checkUnnamed882(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1652,7 +1654,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.etag = "foo"; - o.items = buildUnnamed858(); + o.items = buildUnnamed882(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1664,7 +1666,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed858(o.items); + checkUnnamed882(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1700,14 +1702,14 @@ buildCounterProperty--; } -buildUnnamed859() { +buildUnnamed883() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed859(core.List<api.Property> o) { +checkUnnamed883(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1719,7 +1721,7 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { o.etag = "foo"; - o.items = buildUnnamed859(); + o.items = buildUnnamed883(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1731,21 +1733,21 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed859(o.items); + checkUnnamed883(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterPropertyList--; } -buildUnnamed860() { +buildUnnamed884() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed860(core.Map<core.String, core.String> o) { +checkUnnamed884(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1758,7 +1760,7 @@ if (buildCounterRevision < 3) { o.downloadUrl = "foo"; o.etag = "foo"; - o.exportLinks = buildUnnamed860(); + o.exportLinks = buildUnnamed884(); o.fileSize = "foo"; o.id = "foo"; o.kind = "foo"; @@ -1784,7 +1786,7 @@ if (buildCounterRevision < 3) { unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed860(o.exportLinks); + checkUnnamed884(o.exportLinks); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1804,14 +1806,14 @@ buildCounterRevision--; } -buildUnnamed861() { +buildUnnamed885() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed861(core.List<api.Revision> o) { +checkUnnamed885(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1823,8 +1825,9 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.etag = "foo"; - o.items = buildUnnamed861(); + o.items = buildUnnamed885(); o.kind = "foo"; + o.nextPageToken = "foo"; o.selfLink = "foo"; } buildCounterRevisionList--; @@ -1835,8 +1838,9 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed861(o.items); + checkUnnamed885(o.items); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterRevisionList--; @@ -5701,6 +5705,8 @@ var mock = new HttpServerMock(); api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; var arg_fileId = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5736,6 +5742,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -5744,7 +5752,7 @@ var resp = convert.JSON.encode(buildRevisionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId).then(unittest.expectAsync(((api.RevisionList response) { + res.list(arg_fileId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RevisionList response) { checkRevisionList(response); }))); });
diff --git a/generated/googleapis/test/drive/v3_test.dart b/generated/googleapis/test/drive/v3_test.dart index 5dd673f..9a1a6db 100644 --- a/generated/googleapis/test/drive/v3_test.dart +++ b/generated/googleapis/test/drive/v3_test.dart
@@ -51,79 +51,79 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1801() { +buildUnnamed1816() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1801(core.List<core.String> o) { +checkUnnamed1816(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1802() { +buildUnnamed1817() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1801(); - o["y"] = buildUnnamed1801(); + o["x"] = buildUnnamed1816(); + o["y"] = buildUnnamed1816(); return o; } -checkUnnamed1802(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1817(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1801(o["x"]); - checkUnnamed1801(o["y"]); + checkUnnamed1816(o["x"]); + checkUnnamed1816(o["y"]); } -buildUnnamed1803() { +buildUnnamed1818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1803(core.List<core.String> o) { +checkUnnamed1818(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1804() { +buildUnnamed1819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1804(core.List<core.String> o) { +checkUnnamed1819(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1805() { +buildUnnamed1820() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1804(); - o["y"] = buildUnnamed1804(); + o["x"] = buildUnnamed1819(); + o["y"] = buildUnnamed1819(); return o; } -checkUnnamed1805(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1820(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1804(o["x"]); - checkUnnamed1804(o["y"]); + checkUnnamed1819(o["x"]); + checkUnnamed1819(o["y"]); } -buildUnnamed1806() { +buildUnnamed1821() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1806(core.Map<core.String, core.String> o) { +checkUnnamed1821(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -160,11 +160,11 @@ buildCounterAbout++; if (buildCounterAbout < 3) { o.appInstalled = true; - o.exportFormats = buildUnnamed1802(); - o.folderColorPalette = buildUnnamed1803(); - o.importFormats = buildUnnamed1805(); + o.exportFormats = buildUnnamed1817(); + o.folderColorPalette = buildUnnamed1818(); + o.importFormats = buildUnnamed1820(); o.kind = "foo"; - o.maxImportSizes = buildUnnamed1806(); + o.maxImportSizes = buildUnnamed1821(); o.maxUploadSize = "foo"; o.storageQuota = buildAboutStorageQuota(); o.user = buildUser(); @@ -177,11 +177,11 @@ buildCounterAbout++; if (buildCounterAbout < 3) { unittest.expect(o.appInstalled, unittest.isTrue); - checkUnnamed1802(o.exportFormats); - checkUnnamed1803(o.folderColorPalette); - checkUnnamed1805(o.importFormats); + checkUnnamed1817(o.exportFormats); + checkUnnamed1818(o.folderColorPalette); + checkUnnamed1820(o.importFormats); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1806(o.maxImportSizes); + checkUnnamed1821(o.maxImportSizes); unittest.expect(o.maxUploadSize, unittest.equals('foo')); checkAboutStorageQuota(o.storageQuota); checkUser(o.user); @@ -216,14 +216,14 @@ buildCounterChange--; } -buildUnnamed1807() { +buildUnnamed1822() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed1807(core.List<api.Change> o) { +checkUnnamed1822(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -234,7 +234,7 @@ var o = new api.ChangeList(); buildCounterChangeList++; if (buildCounterChangeList < 3) { - o.changes = buildUnnamed1807(); + o.changes = buildUnnamed1822(); o.kind = "foo"; o.newStartPageToken = "foo"; o.nextPageToken = "foo"; @@ -246,7 +246,7 @@ checkChangeList(api.ChangeList o) { buildCounterChangeList++; if (buildCounterChangeList < 3) { - checkUnnamed1807(o.changes); + checkUnnamed1822(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -254,14 +254,14 @@ buildCounterChangeList--; } -buildUnnamed1808() { +buildUnnamed1823() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1808(core.Map<core.String, core.String> o) { +checkUnnamed1823(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -276,7 +276,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1808(); + o.params = buildUnnamed1823(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -294,7 +294,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1808(o.params); + checkUnnamed1823(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -325,14 +325,14 @@ buildCounterCommentQuotedFileContent--; } -buildUnnamed1809() { +buildUnnamed1824() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1809(core.List<api.Reply> o) { +checkUnnamed1824(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -353,7 +353,7 @@ o.kind = "foo"; o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.quotedFileContent = buildCommentQuotedFileContent(); - o.replies = buildUnnamed1809(); + o.replies = buildUnnamed1824(); o.resolved = true; } buildCounterComment--; @@ -373,20 +373,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkCommentQuotedFileContent(o.quotedFileContent); - checkUnnamed1809(o.replies); + checkUnnamed1824(o.replies); unittest.expect(o.resolved, unittest.isTrue); } buildCounterComment--; } -buildUnnamed1810() { +buildUnnamed1825() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1810(core.List<api.Comment> o) { +checkUnnamed1825(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -397,7 +397,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.comments = buildUnnamed1810(); + o.comments = buildUnnamed1825(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -408,21 +408,21 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed1810(o.comments); + checkUnnamed1825(o.comments); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCommentList--; } -buildUnnamed1811() { +buildUnnamed1826() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1811(core.Map<core.String, core.String> o) { +checkUnnamed1826(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -579,66 +579,66 @@ buildCounterFileImageMediaMetadata--; } -buildUnnamed1812() { +buildUnnamed1827() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1812(core.List<api.User> o) { +checkUnnamed1827(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed1813() { +buildUnnamed1828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1813(core.List<core.String> o) { +checkUnnamed1828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1814() { +buildUnnamed1829() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1814(core.List<api.Permission> o) { +checkUnnamed1829(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1815() { +buildUnnamed1830() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1815(core.Map<core.String, core.String> o) { +checkUnnamed1830(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1816() { +buildUnnamed1831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1816(core.List<core.String> o) { +checkUnnamed1831(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ var o = new api.File(); buildCounterFile++; if (buildCounterFile < 3) { - o.appProperties = buildUnnamed1811(); + o.appProperties = buildUnnamed1826(); o.capabilities = buildFileCapabilities(); o.contentHints = buildFileContentHints(); o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -690,21 +690,22 @@ o.lastModifyingUser = buildUser(); o.md5Checksum = "foo"; o.mimeType = "foo"; + o.modifiedByMe = true; o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.name = "foo"; o.originalFilename = "foo"; o.ownedByMe = true; - o.owners = buildUnnamed1812(); - o.parents = buildUnnamed1813(); - o.permissions = buildUnnamed1814(); - o.properties = buildUnnamed1815(); + o.owners = buildUnnamed1827(); + o.parents = buildUnnamed1828(); + o.permissions = buildUnnamed1829(); + o.properties = buildUnnamed1830(); o.quotaBytesUsed = "foo"; o.shared = true; o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.size = "foo"; - o.spaces = buildUnnamed1816(); + o.spaces = buildUnnamed1831(); o.starred = true; o.thumbnailLink = "foo"; o.trashed = true; @@ -724,7 +725,7 @@ checkFile(api.File o) { buildCounterFile++; if (buildCounterFile < 3) { - checkUnnamed1811(o.appProperties); + checkUnnamed1826(o.appProperties); checkFileCapabilities(o.capabilities); checkFileContentHints(o.contentHints); unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -742,21 +743,22 @@ checkUser(o.lastModifyingUser); unittest.expect(o.md5Checksum, unittest.equals('foo')); unittest.expect(o.mimeType, unittest.equals('foo')); + unittest.expect(o.modifiedByMe, unittest.isTrue); unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed1812(o.owners); - checkUnnamed1813(o.parents); - checkUnnamed1814(o.permissions); - checkUnnamed1815(o.properties); + checkUnnamed1827(o.owners); + checkUnnamed1828(o.parents); + checkUnnamed1829(o.permissions); + checkUnnamed1830(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); unittest.expect(o.size, unittest.equals('foo')); - checkUnnamed1816(o.spaces); + checkUnnamed1831(o.spaces); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.thumbnailLink, unittest.equals('foo')); unittest.expect(o.trashed, unittest.isTrue); @@ -772,14 +774,14 @@ buildCounterFile--; } -buildUnnamed1817() { +buildUnnamed1832() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1817(core.List<api.File> o) { +checkUnnamed1832(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -790,7 +792,7 @@ var o = new api.FileList(); buildCounterFileList++; if (buildCounterFileList < 3) { - o.files = buildUnnamed1817(); + o.files = buildUnnamed1832(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -801,21 +803,21 @@ checkFileList(api.FileList o) { buildCounterFileList++; if (buildCounterFileList < 3) { - checkUnnamed1817(o.files); + checkUnnamed1832(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFileList--; } -buildUnnamed1818() { +buildUnnamed1833() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1818(core.List<core.String> o) { +checkUnnamed1833(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -826,7 +828,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed1818(); + o.ids = buildUnnamed1833(); o.kind = "foo"; o.space = "foo"; } @@ -837,7 +839,7 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed1818(o.ids); + checkUnnamed1833(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } @@ -881,14 +883,14 @@ buildCounterPermission--; } -buildUnnamed1819() { +buildUnnamed1834() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1819(core.List<api.Permission> o) { +checkUnnamed1834(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -900,7 +902,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.kind = "foo"; - o.permissions = buildUnnamed1819(); + o.permissions = buildUnnamed1834(); } buildCounterPermissionList--; return o; @@ -910,7 +912,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1819(o.permissions); + checkUnnamed1834(o.permissions); } buildCounterPermissionList--; } @@ -950,14 +952,14 @@ buildCounterReply--; } -buildUnnamed1820() { +buildUnnamed1835() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1820(core.List<api.Reply> o) { +checkUnnamed1835(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -970,7 +972,7 @@ if (buildCounterReplyList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.replies = buildUnnamed1820(); + o.replies = buildUnnamed1835(); } buildCounterReplyList--; return o; @@ -981,7 +983,7 @@ if (buildCounterReplyList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1820(o.replies); + checkUnnamed1835(o.replies); } buildCounterReplyList--; } @@ -1027,14 +1029,14 @@ buildCounterRevision--; } -buildUnnamed1821() { +buildUnnamed1836() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed1821(core.List<api.Revision> o) { +checkUnnamed1836(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1046,7 +1048,8 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.kind = "foo"; - o.revisions = buildUnnamed1821(); + o.nextPageToken = "foo"; + o.revisions = buildUnnamed1836(); } buildCounterRevisionList--; return o; @@ -1056,7 +1059,8 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1821(o.revisions); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1836(o.revisions); } buildCounterRevisionList--; } @@ -3208,6 +3212,8 @@ var mock = new HttpServerMock(); api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; var arg_fileId = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3243,6 +3249,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -3251,7 +3259,7 @@ var resp = convert.JSON.encode(buildRevisionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId).then(unittest.expectAsync(((api.RevisionList response) { + res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RevisionList response) { checkRevisionList(response); }))); });
diff --git a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart new file mode 100644 index 0000000..f0023db --- /dev/null +++ b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart
@@ -0,0 +1,489 @@ +library googleapis.firebasedynamiclinks.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:unittest/unittest.dart' as unittest; + +import 'package:googleapis/firebasedynamiclinks/v1.dart' as api; + +class HttpServerMock extends http.BaseClient { + core.Function _callback; + core.bool _expectJson; + + void register(core.Function callback, core.bool expectJson) { + _callback = callback; + _expectJson = expectJson; + } + + async.Future<http.StreamedResponse> send(http.BaseRequest request) { + if (_expectJson) { + return request.finalize() + .transform(convert.UTF8.decoder) + .join('') + .then((core.String jsonString) { + if (jsonString.isEmpty) { + return _callback(request, null); + } else { + return _callback(request, convert.JSON.decode(jsonString)); + } + }); + } else { + var stream = request.finalize(); + if (stream == null) { + return _callback(request, []); + } else { + return stream.toBytes().then((data) { + return _callback(request, data); + }); + } + } + } +} + +http.StreamedResponse stringResponse( + core.int status, core.Map headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +core.int buildCounterAnalyticsInfo = 0; +buildAnalyticsInfo() { + var o = new api.AnalyticsInfo(); + buildCounterAnalyticsInfo++; + if (buildCounterAnalyticsInfo < 3) { + o.googlePlayAnalytics = buildGooglePlayAnalytics(); + o.itunesConnectAnalytics = buildITunesConnectAnalytics(); + } + buildCounterAnalyticsInfo--; + return o; +} + +checkAnalyticsInfo(api.AnalyticsInfo o) { + buildCounterAnalyticsInfo++; + if (buildCounterAnalyticsInfo < 3) { + checkGooglePlayAnalytics(o.googlePlayAnalytics); + checkITunesConnectAnalytics(o.itunesConnectAnalytics); + } + buildCounterAnalyticsInfo--; +} + +core.int buildCounterAndroidInfo = 0; +buildAndroidInfo() { + var o = new api.AndroidInfo(); + buildCounterAndroidInfo++; + if (buildCounterAndroidInfo < 3) { + o.androidFallbackLink = "foo"; + o.androidLink = "foo"; + o.androidMinPackageVersionCode = "foo"; + o.androidPackageName = "foo"; + } + buildCounterAndroidInfo--; + return o; +} + +checkAndroidInfo(api.AndroidInfo o) { + buildCounterAndroidInfo++; + if (buildCounterAndroidInfo < 3) { + unittest.expect(o.androidFallbackLink, unittest.equals('foo')); + unittest.expect(o.androidLink, unittest.equals('foo')); + unittest.expect(o.androidMinPackageVersionCode, unittest.equals('foo')); + unittest.expect(o.androidPackageName, unittest.equals('foo')); + } + buildCounterAndroidInfo--; +} + +core.int buildCounterCreateShortDynamicLinkRequest = 0; +buildCreateShortDynamicLinkRequest() { + var o = new api.CreateShortDynamicLinkRequest(); + buildCounterCreateShortDynamicLinkRequest++; + if (buildCounterCreateShortDynamicLinkRequest < 3) { + o.dynamicLinkInfo = buildDynamicLinkInfo(); + o.longDynamicLink = "foo"; + o.suffix = buildSuffix(); + } + buildCounterCreateShortDynamicLinkRequest--; + return o; +} + +checkCreateShortDynamicLinkRequest(api.CreateShortDynamicLinkRequest o) { + buildCounterCreateShortDynamicLinkRequest++; + if (buildCounterCreateShortDynamicLinkRequest < 3) { + checkDynamicLinkInfo(o.dynamicLinkInfo); + unittest.expect(o.longDynamicLink, unittest.equals('foo')); + checkSuffix(o.suffix); + } + buildCounterCreateShortDynamicLinkRequest--; +} + +buildUnnamed2171() { + var o = new core.List<api.DynamicLinkWarning>(); + o.add(buildDynamicLinkWarning()); + o.add(buildDynamicLinkWarning()); + return o; +} + +checkUnnamed2171(core.List<api.DynamicLinkWarning> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDynamicLinkWarning(o[0]); + checkDynamicLinkWarning(o[1]); +} + +core.int buildCounterCreateShortDynamicLinkResponse = 0; +buildCreateShortDynamicLinkResponse() { + var o = new api.CreateShortDynamicLinkResponse(); + buildCounterCreateShortDynamicLinkResponse++; + if (buildCounterCreateShortDynamicLinkResponse < 3) { + o.previewLink = "foo"; + o.shortLink = "foo"; + o.warning = buildUnnamed2171(); + } + buildCounterCreateShortDynamicLinkResponse--; + return o; +} + +checkCreateShortDynamicLinkResponse(api.CreateShortDynamicLinkResponse o) { + buildCounterCreateShortDynamicLinkResponse++; + if (buildCounterCreateShortDynamicLinkResponse < 3) { + unittest.expect(o.previewLink, unittest.equals('foo')); + unittest.expect(o.shortLink, unittest.equals('foo')); + checkUnnamed2171(o.warning); + } + buildCounterCreateShortDynamicLinkResponse--; +} + +core.int buildCounterDynamicLinkInfo = 0; +buildDynamicLinkInfo() { + var o = new api.DynamicLinkInfo(); + buildCounterDynamicLinkInfo++; + if (buildCounterDynamicLinkInfo < 3) { + o.analyticsInfo = buildAnalyticsInfo(); + o.androidInfo = buildAndroidInfo(); + o.dynamicLinkDomain = "foo"; + o.iosInfo = buildIosInfo(); + o.isAd = true; + o.link = "foo"; + o.socialMetaTagInfo = buildSocialMetaTagInfo(); + } + buildCounterDynamicLinkInfo--; + return o; +} + +checkDynamicLinkInfo(api.DynamicLinkInfo o) { + buildCounterDynamicLinkInfo++; + if (buildCounterDynamicLinkInfo < 3) { + checkAnalyticsInfo(o.analyticsInfo); + checkAndroidInfo(o.androidInfo); + unittest.expect(o.dynamicLinkDomain, unittest.equals('foo')); + checkIosInfo(o.iosInfo); + unittest.expect(o.isAd, unittest.isTrue); + unittest.expect(o.link, unittest.equals('foo')); + checkSocialMetaTagInfo(o.socialMetaTagInfo); + } + buildCounterDynamicLinkInfo--; +} + +core.int buildCounterDynamicLinkWarning = 0; +buildDynamicLinkWarning() { + var o = new api.DynamicLinkWarning(); + buildCounterDynamicLinkWarning++; + if (buildCounterDynamicLinkWarning < 3) { + o.warningCode = "foo"; + o.warningMessage = "foo"; + } + buildCounterDynamicLinkWarning--; + return o; +} + +checkDynamicLinkWarning(api.DynamicLinkWarning o) { + buildCounterDynamicLinkWarning++; + if (buildCounterDynamicLinkWarning < 3) { + unittest.expect(o.warningCode, unittest.equals('foo')); + unittest.expect(o.warningMessage, unittest.equals('foo')); + } + buildCounterDynamicLinkWarning--; +} + +core.int buildCounterGooglePlayAnalytics = 0; +buildGooglePlayAnalytics() { + var o = new api.GooglePlayAnalytics(); + buildCounterGooglePlayAnalytics++; + if (buildCounterGooglePlayAnalytics < 3) { + o.gclid = "foo"; + o.utmCampaign = "foo"; + o.utmContent = "foo"; + o.utmMedium = "foo"; + o.utmSource = "foo"; + o.utmTerm = "foo"; + } + buildCounterGooglePlayAnalytics--; + return o; +} + +checkGooglePlayAnalytics(api.GooglePlayAnalytics o) { + buildCounterGooglePlayAnalytics++; + if (buildCounterGooglePlayAnalytics < 3) { + unittest.expect(o.gclid, unittest.equals('foo')); + unittest.expect(o.utmCampaign, unittest.equals('foo')); + unittest.expect(o.utmContent, unittest.equals('foo')); + unittest.expect(o.utmMedium, unittest.equals('foo')); + unittest.expect(o.utmSource, unittest.equals('foo')); + unittest.expect(o.utmTerm, unittest.equals('foo')); + } + buildCounterGooglePlayAnalytics--; +} + +core.int buildCounterITunesConnectAnalytics = 0; +buildITunesConnectAnalytics() { + var o = new api.ITunesConnectAnalytics(); + buildCounterITunesConnectAnalytics++; + if (buildCounterITunesConnectAnalytics < 3) { + o.at = "foo"; + o.ct = "foo"; + o.mt = "foo"; + o.pt = "foo"; + } + buildCounterITunesConnectAnalytics--; + return o; +} + +checkITunesConnectAnalytics(api.ITunesConnectAnalytics o) { + buildCounterITunesConnectAnalytics++; + if (buildCounterITunesConnectAnalytics < 3) { + unittest.expect(o.at, unittest.equals('foo')); + unittest.expect(o.ct, unittest.equals('foo')); + unittest.expect(o.mt, unittest.equals('foo')); + unittest.expect(o.pt, unittest.equals('foo')); + } + buildCounterITunesConnectAnalytics--; +} + +core.int buildCounterIosInfo = 0; +buildIosInfo() { + var o = new api.IosInfo(); + buildCounterIosInfo++; + if (buildCounterIosInfo < 3) { + o.iosAppStoreId = "foo"; + o.iosBundleId = "foo"; + o.iosCustomScheme = "foo"; + o.iosFallbackLink = "foo"; + o.iosIpadBundleId = "foo"; + o.iosIpadFallbackLink = "foo"; + } + buildCounterIosInfo--; + return o; +} + +checkIosInfo(api.IosInfo o) { + buildCounterIosInfo++; + if (buildCounterIosInfo < 3) { + unittest.expect(o.iosAppStoreId, unittest.equals('foo')); + unittest.expect(o.iosBundleId, unittest.equals('foo')); + unittest.expect(o.iosCustomScheme, unittest.equals('foo')); + unittest.expect(o.iosFallbackLink, unittest.equals('foo')); + unittest.expect(o.iosIpadBundleId, unittest.equals('foo')); + unittest.expect(o.iosIpadFallbackLink, unittest.equals('foo')); + } + buildCounterIosInfo--; +} + +core.int buildCounterSocialMetaTagInfo = 0; +buildSocialMetaTagInfo() { + var o = new api.SocialMetaTagInfo(); + buildCounterSocialMetaTagInfo++; + if (buildCounterSocialMetaTagInfo < 3) { + o.socialDescription = "foo"; + o.socialImageLink = "foo"; + o.socialTitle = "foo"; + } + buildCounterSocialMetaTagInfo--; + return o; +} + +checkSocialMetaTagInfo(api.SocialMetaTagInfo o) { + buildCounterSocialMetaTagInfo++; + if (buildCounterSocialMetaTagInfo < 3) { + unittest.expect(o.socialDescription, unittest.equals('foo')); + unittest.expect(o.socialImageLink, unittest.equals('foo')); + unittest.expect(o.socialTitle, unittest.equals('foo')); + } + buildCounterSocialMetaTagInfo--; +} + +core.int buildCounterSuffix = 0; +buildSuffix() { + var o = new api.Suffix(); + buildCounterSuffix++; + if (buildCounterSuffix < 3) { + o.option = "foo"; + } + buildCounterSuffix--; + return o; +} + +checkSuffix(api.Suffix o) { + buildCounterSuffix++; + if (buildCounterSuffix < 3) { + unittest.expect(o.option, unittest.equals('foo')); + } + buildCounterSuffix--; +} + + +main() { + unittest.group("obj-schema-AnalyticsInfo", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyticsInfo(); + var od = new api.AnalyticsInfo.fromJson(o.toJson()); + checkAnalyticsInfo(od); + }); + }); + + + unittest.group("obj-schema-AndroidInfo", () { + unittest.test("to-json--from-json", () { + var o = buildAndroidInfo(); + var od = new api.AndroidInfo.fromJson(o.toJson()); + checkAndroidInfo(od); + }); + }); + + + unittest.group("obj-schema-CreateShortDynamicLinkRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateShortDynamicLinkRequest(); + var od = new api.CreateShortDynamicLinkRequest.fromJson(o.toJson()); + checkCreateShortDynamicLinkRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateShortDynamicLinkResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateShortDynamicLinkResponse(); + var od = new api.CreateShortDynamicLinkResponse.fromJson(o.toJson()); + checkCreateShortDynamicLinkResponse(od); + }); + }); + + + unittest.group("obj-schema-DynamicLinkInfo", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicLinkInfo(); + var od = new api.DynamicLinkInfo.fromJson(o.toJson()); + checkDynamicLinkInfo(od); + }); + }); + + + unittest.group("obj-schema-DynamicLinkWarning", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicLinkWarning(); + var od = new api.DynamicLinkWarning.fromJson(o.toJson()); + checkDynamicLinkWarning(od); + }); + }); + + + unittest.group("obj-schema-GooglePlayAnalytics", () { + unittest.test("to-json--from-json", () { + var o = buildGooglePlayAnalytics(); + var od = new api.GooglePlayAnalytics.fromJson(o.toJson()); + checkGooglePlayAnalytics(od); + }); + }); + + + unittest.group("obj-schema-ITunesConnectAnalytics", () { + unittest.test("to-json--from-json", () { + var o = buildITunesConnectAnalytics(); + var od = new api.ITunesConnectAnalytics.fromJson(o.toJson()); + checkITunesConnectAnalytics(od); + }); + }); + + + unittest.group("obj-schema-IosInfo", () { + unittest.test("to-json--from-json", () { + var o = buildIosInfo(); + var od = new api.IosInfo.fromJson(o.toJson()); + checkIosInfo(od); + }); + }); + + + unittest.group("obj-schema-SocialMetaTagInfo", () { + unittest.test("to-json--from-json", () { + var o = buildSocialMetaTagInfo(); + var od = new api.SocialMetaTagInfo.fromJson(o.toJson()); + checkSocialMetaTagInfo(od); + }); + }); + + + unittest.group("obj-schema-Suffix", () { + unittest.test("to-json--from-json", () { + var o = buildSuffix(); + var od = new api.Suffix.fromJson(o.toJson()); + checkSuffix(od); + }); + }); + + + unittest.group("resource-ShortLinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ShortLinksResourceApi res = new api.FirebasedynamiclinksApi(mock).shortLinks; + var arg_request = buildCreateShortDynamicLinkRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.CreateShortDynamicLinkRequest.fromJson(json); + checkCreateShortDynamicLinkRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1/shortLinks")); + pathOffset += 13; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildCreateShortDynamicLinkResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync(((api.CreateShortDynamicLinkResponse response) { + checkCreateShortDynamicLinkResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/firebaserules/v1_test.dart b/generated/googleapis/test/firebaserules/v1_test.dart index c56dad2..7f1e583 100644 --- a/generated/googleapis/test/firebaserules/v1_test.dart +++ b/generated/googleapis/test/firebaserules/v1_test.dart
@@ -114,14 +114,14 @@ buildCounterIssue--; } -buildUnnamed3454() { +buildUnnamed3268() { var o = new core.List<api.Release>(); o.add(buildRelease()); o.add(buildRelease()); return o; } -checkUnnamed3454(core.List<api.Release> o) { +checkUnnamed3268(core.List<api.Release> o) { unittest.expect(o, unittest.hasLength(2)); checkRelease(o[0]); checkRelease(o[1]); @@ -133,7 +133,7 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { o.nextPageToken = "foo"; - o.releases = buildUnnamed3454(); + o.releases = buildUnnamed3268(); } buildCounterListReleasesResponse--; return o; @@ -143,19 +143,19 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3454(o.releases); + checkUnnamed3268(o.releases); } buildCounterListReleasesResponse--; } -buildUnnamed3455() { +buildUnnamed3269() { var o = new core.List<api.Ruleset>(); o.add(buildRuleset()); o.add(buildRuleset()); return o; } -checkUnnamed3455(core.List<api.Ruleset> o) { +checkUnnamed3269(core.List<api.Ruleset> o) { unittest.expect(o, unittest.hasLength(2)); checkRuleset(o[0]); checkRuleset(o[1]); @@ -167,7 +167,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { o.nextPageToken = "foo"; - o.rulesets = buildUnnamed3455(); + o.rulesets = buildUnnamed3269(); } buildCounterListRulesetsResponse--; return o; @@ -177,7 +177,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3455(o.rulesets); + checkUnnamed3269(o.rulesets); } buildCounterListRulesetsResponse--; } @@ -230,14 +230,14 @@ buildCounterRuleset--; } -buildUnnamed3456() { +buildUnnamed3270() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3456(core.List<api.File> o) { +checkUnnamed3270(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -248,7 +248,7 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.files = buildUnnamed3456(); + o.files = buildUnnamed3270(); } buildCounterSource--; return o; @@ -257,7 +257,7 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3456(o.files); + checkUnnamed3270(o.files); } buildCounterSource--; } @@ -304,14 +304,14 @@ buildCounterTestRulesetRequest--; } -buildUnnamed3457() { +buildUnnamed3271() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed3457(core.List<api.Issue> o) { +checkUnnamed3271(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); @@ -322,7 +322,7 @@ var o = new api.TestRulesetResponse(); buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - o.issues = buildUnnamed3457(); + o.issues = buildUnnamed3271(); } buildCounterTestRulesetResponse--; return o; @@ -331,7 +331,7 @@ checkTestRulesetResponse(api.TestRulesetResponse o) { buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - checkUnnamed3457(o.issues); + checkUnnamed3271(o.issues); } buildCounterTestRulesetResponse--; }
diff --git a/generated/googleapis/test/fitness/v1_test.dart b/generated/googleapis/test/fitness/v1_test.dart index 985c468..bc1c0d4 100644 --- a/generated/googleapis/test/fitness/v1_test.dart +++ b/generated/googleapis/test/fitness/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2244() { +buildUnnamed1998() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed2244(core.List<api.Dataset> o) { +checkUnnamed1998(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -70,7 +70,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { o.activity = 42; - o.dataset = buildUnnamed2244(); + o.dataset = buildUnnamed1998(); o.endTimeMillis = "foo"; o.session = buildSession(); o.startTimeMillis = "foo"; @@ -84,7 +84,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { unittest.expect(o.activity, unittest.equals(42)); - checkUnnamed2244(o.dataset); + checkUnnamed1998(o.dataset); unittest.expect(o.endTimeMillis, unittest.equals('foo')); checkSession(o.session); unittest.expect(o.startTimeMillis, unittest.equals('foo')); @@ -114,27 +114,27 @@ buildCounterAggregateBy--; } -buildUnnamed2245() { +buildUnnamed1999() { var o = new core.List<api.AggregateBy>(); o.add(buildAggregateBy()); o.add(buildAggregateBy()); return o; } -checkUnnamed2245(core.List<api.AggregateBy> o) { +checkUnnamed1999(core.List<api.AggregateBy> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBy(o[0]); checkAggregateBy(o[1]); } -buildUnnamed2246() { +buildUnnamed2000() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2246(core.List<core.String> o) { +checkUnnamed2000(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -145,13 +145,13 @@ var o = new api.AggregateRequest(); buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - o.aggregateBy = buildUnnamed2245(); + o.aggregateBy = buildUnnamed1999(); o.bucketByActivitySegment = buildBucketByActivity(); o.bucketByActivityType = buildBucketByActivity(); o.bucketBySession = buildBucketBySession(); o.bucketByTime = buildBucketByTime(); o.endTimeMillis = "foo"; - o.filteredDataQualityStandard = buildUnnamed2246(); + o.filteredDataQualityStandard = buildUnnamed2000(); o.startTimeMillis = "foo"; } buildCounterAggregateRequest--; @@ -161,26 +161,26 @@ checkAggregateRequest(api.AggregateRequest o) { buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - checkUnnamed2245(o.aggregateBy); + checkUnnamed1999(o.aggregateBy); checkBucketByActivity(o.bucketByActivitySegment); checkBucketByActivity(o.bucketByActivityType); checkBucketBySession(o.bucketBySession); checkBucketByTime(o.bucketByTime); unittest.expect(o.endTimeMillis, unittest.equals('foo')); - checkUnnamed2246(o.filteredDataQualityStandard); + checkUnnamed2000(o.filteredDataQualityStandard); unittest.expect(o.startTimeMillis, unittest.equals('foo')); } buildCounterAggregateRequest--; } -buildUnnamed2247() { +buildUnnamed2001() { var o = new core.List<api.AggregateBucket>(); o.add(buildAggregateBucket()); o.add(buildAggregateBucket()); return o; } -checkUnnamed2247(core.List<api.AggregateBucket> o) { +checkUnnamed2001(core.List<api.AggregateBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBucket(o[0]); checkAggregateBucket(o[1]); @@ -191,7 +191,7 @@ var o = new api.AggregateResponse(); buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - o.bucket = buildUnnamed2247(); + o.bucket = buildUnnamed2001(); } buildCounterAggregateResponse--; return o; @@ -200,7 +200,7 @@ checkAggregateResponse(api.AggregateResponse o) { buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - checkUnnamed2247(o.bucket); + checkUnnamed2001(o.bucket); } buildCounterAggregateResponse--; } @@ -314,14 +314,14 @@ buildCounterBucketByTimePeriod--; } -buildUnnamed2248() { +buildUnnamed2002() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed2248(core.List<api.Value> o) { +checkUnnamed2002(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -339,7 +339,7 @@ o.originDataSourceId = "foo"; o.rawTimestampNanos = "foo"; o.startTimeNanos = "foo"; - o.value = buildUnnamed2248(); + o.value = buildUnnamed2002(); } buildCounterDataPoint--; return o; @@ -355,19 +355,19 @@ unittest.expect(o.originDataSourceId, unittest.equals('foo')); unittest.expect(o.rawTimestampNanos, unittest.equals('foo')); unittest.expect(o.startTimeNanos, unittest.equals('foo')); - checkUnnamed2248(o.value); + checkUnnamed2002(o.value); } buildCounterDataPoint--; } -buildUnnamed2249() { +buildUnnamed2003() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2249(core.List<core.String> o) { +checkUnnamed2003(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -379,7 +379,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { o.application = buildApplication(); - o.dataQualityStandard = buildUnnamed2249(); + o.dataQualityStandard = buildUnnamed2003(); o.dataStreamId = "foo"; o.dataStreamName = "foo"; o.dataType = buildDataType(); @@ -395,7 +395,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { checkApplication(o.application); - checkUnnamed2249(o.dataQualityStandard); + checkUnnamed2003(o.dataQualityStandard); unittest.expect(o.dataStreamId, unittest.equals('foo')); unittest.expect(o.dataStreamName, unittest.equals('foo')); checkDataType(o.dataType); @@ -406,14 +406,14 @@ buildCounterDataSource--; } -buildUnnamed2250() { +buildUnnamed2004() { var o = new core.List<api.DataTypeField>(); o.add(buildDataTypeField()); o.add(buildDataTypeField()); return o; } -checkUnnamed2250(core.List<api.DataTypeField> o) { +checkUnnamed2004(core.List<api.DataTypeField> o) { unittest.expect(o, unittest.hasLength(2)); checkDataTypeField(o[0]); checkDataTypeField(o[1]); @@ -424,7 +424,7 @@ var o = new api.DataType(); buildCounterDataType++; if (buildCounterDataType < 3) { - o.field = buildUnnamed2250(); + o.field = buildUnnamed2004(); o.name = "foo"; } buildCounterDataType--; @@ -434,7 +434,7 @@ checkDataType(api.DataType o) { buildCounterDataType++; if (buildCounterDataType < 3) { - checkUnnamed2250(o.field); + checkUnnamed2004(o.field); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDataType--; @@ -463,14 +463,14 @@ buildCounterDataTypeField--; } -buildUnnamed2251() { +buildUnnamed2005() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed2251(core.List<api.DataPoint> o) { +checkUnnamed2005(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); @@ -485,7 +485,7 @@ o.maxEndTimeNs = "foo"; o.minStartTimeNs = "foo"; o.nextPageToken = "foo"; - o.point = buildUnnamed2251(); + o.point = buildUnnamed2005(); } buildCounterDataset--; return o; @@ -498,7 +498,7 @@ unittest.expect(o.maxEndTimeNs, unittest.equals('foo')); unittest.expect(o.minStartTimeNs, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2251(o.point); + checkUnnamed2005(o.point); } buildCounterDataset--; } @@ -530,14 +530,14 @@ buildCounterDevice--; } -buildUnnamed2252() { +buildUnnamed2006() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed2252(core.List<api.DataSource> o) { +checkUnnamed2006(core.List<api.DataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); @@ -548,7 +548,7 @@ var o = new api.ListDataSourcesResponse(); buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - o.dataSource = buildUnnamed2252(); + o.dataSource = buildUnnamed2006(); } buildCounterListDataSourcesResponse--; return o; @@ -557,32 +557,32 @@ checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed2252(o.dataSource); + checkUnnamed2006(o.dataSource); } buildCounterListDataSourcesResponse--; } -buildUnnamed2253() { +buildUnnamed2007() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed2253(core.List<api.Session> o) { +checkUnnamed2007(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); } -buildUnnamed2254() { +buildUnnamed2008() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed2254(core.List<api.Session> o) { +checkUnnamed2008(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -593,9 +593,10 @@ var o = new api.ListSessionsResponse(); buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - o.deletedSession = buildUnnamed2253(); + o.deletedSession = buildUnnamed2007(); + o.hasMoreData = true; o.nextPageToken = "foo"; - o.session = buildUnnamed2254(); + o.session = buildUnnamed2008(); } buildCounterListSessionsResponse--; return o; @@ -604,9 +605,10 @@ checkListSessionsResponse(api.ListSessionsResponse o) { buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - checkUnnamed2253(o.deletedSession); + checkUnnamed2007(o.deletedSession); + unittest.expect(o.hasMoreData, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2254(o.session); + checkUnnamed2008(o.session); } buildCounterListSessionsResponse--; } @@ -665,14 +667,14 @@ buildCounterSession--; } -buildUnnamed2255() { +buildUnnamed2009() { var o = new core.List<api.ValueMapValEntry>(); o.add(buildValueMapValEntry()); o.add(buildValueMapValEntry()); return o; } -checkUnnamed2255(core.List<api.ValueMapValEntry> o) { +checkUnnamed2009(core.List<api.ValueMapValEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkValueMapValEntry(o[0]); checkValueMapValEntry(o[1]); @@ -685,7 +687,7 @@ if (buildCounterValue < 3) { o.fpVal = 42.0; o.intVal = 42; - o.mapVal = buildUnnamed2255(); + o.mapVal = buildUnnamed2009(); o.stringVal = "foo"; } buildCounterValue--; @@ -697,7 +699,7 @@ if (buildCounterValue < 3) { unittest.expect(o.fpVal, unittest.equals(42.0)); unittest.expect(o.intVal, unittest.equals(42)); - checkUnnamed2255(o.mapVal); + checkUnnamed2009(o.mapVal); unittest.expect(o.stringVal, unittest.equals('foo')); } buildCounterValue--; @@ -724,14 +726,14 @@ buildCounterValueMapValEntry--; } -buildUnnamed2256() { +buildUnnamed2010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2256(core.List<core.String> o) { +checkUnnamed2010(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1066,7 +1068,7 @@ var mock = new HttpServerMock(); api.UsersDataSourcesResourceApi res = new api.FitnessApi(mock).users.dataSources; var arg_userId = "foo"; - var arg_dataTypeName = buildUnnamed2256(); + var arg_dataTypeName = buildUnnamed2010(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/freebase/v1_test.dart b/generated/googleapis/test/freebase/v1_test.dart deleted file mode 100644 index 20c8fef..0000000 --- a/generated/googleapis/test/freebase/v1_test.dart +++ /dev/null
@@ -1,527 +0,0 @@ -library googleapis.freebase.v1.test; - -import "dart:core" as core; -import "dart:collection" as collection; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; - -import 'package:googleapis/freebase/v1.dart' as api; - -class HttpServerMock extends http.BaseClient { - core.Function _callback; - core.bool _expectJson; - - void register(core.Function callback, core.bool expectJson) { - _callback = callback; - _expectJson = expectJson; - } - - async.Future<http.StreamedResponse> send(http.BaseRequest request) { - if (_expectJson) { - return request.finalize() - .transform(convert.UTF8.decoder) - .join('') - .then((core.String jsonString) { - if (jsonString.isEmpty) { - return _callback(request, null); - } else { - return _callback(request, convert.JSON.decode(jsonString)); - } - }); - } else { - var stream = request.finalize(); - if (stream == null) { - return _callback(request, []); - } else { - return stream.toBytes().then((data) { - return _callback(request, data); - }); - } - } - } -} - -http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -core.int buildCounterReconcileCandidateNotable = 0; -buildReconcileCandidateNotable() { - var o = new api.ReconcileCandidateNotable(); - buildCounterReconcileCandidateNotable++; - if (buildCounterReconcileCandidateNotable < 3) { - o.id = "foo"; - o.name = "foo"; - } - buildCounterReconcileCandidateNotable--; - return o; -} - -checkReconcileCandidateNotable(api.ReconcileCandidateNotable o) { - buildCounterReconcileCandidateNotable++; - if (buildCounterReconcileCandidateNotable < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterReconcileCandidateNotable--; -} - -core.int buildCounterReconcileCandidate = 0; -buildReconcileCandidate() { - var o = new api.ReconcileCandidate(); - buildCounterReconcileCandidate++; - if (buildCounterReconcileCandidate < 3) { - o.confidence = 42.0; - o.lang = "foo"; - o.mid = "foo"; - o.name = "foo"; - o.notable = buildReconcileCandidateNotable(); - } - buildCounterReconcileCandidate--; - return o; -} - -checkReconcileCandidate(api.ReconcileCandidate o) { - buildCounterReconcileCandidate++; - if (buildCounterReconcileCandidate < 3) { - unittest.expect(o.confidence, unittest.equals(42.0)); - unittest.expect(o.lang, unittest.equals('foo')); - unittest.expect(o.mid, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkReconcileCandidateNotable(o.notable); - } - buildCounterReconcileCandidate--; -} - -buildUnnamed1389() { - var o = new core.List<api.ReconcileCandidate>(); - o.add(buildReconcileCandidate()); - o.add(buildReconcileCandidate()); - return o; -} - -checkUnnamed1389(core.List<api.ReconcileCandidate> o) { - unittest.expect(o, unittest.hasLength(2)); - checkReconcileCandidate(o[0]); - checkReconcileCandidate(o[1]); -} - -core.int buildCounterReconcileGetCosts = 0; -buildReconcileGetCosts() { - var o = new api.ReconcileGetCosts(); - buildCounterReconcileGetCosts++; - if (buildCounterReconcileGetCosts < 3) { - o.hits = 42; - o.ms = 42; - } - buildCounterReconcileGetCosts--; - return o; -} - -checkReconcileGetCosts(api.ReconcileGetCosts o) { - buildCounterReconcileGetCosts++; - if (buildCounterReconcileGetCosts < 3) { - unittest.expect(o.hits, unittest.equals(42)); - unittest.expect(o.ms, unittest.equals(42)); - } - buildCounterReconcileGetCosts--; -} - -core.int buildCounterReconcileGetWarning = 0; -buildReconcileGetWarning() { - var o = new api.ReconcileGetWarning(); - buildCounterReconcileGetWarning++; - if (buildCounterReconcileGetWarning < 3) { - o.location = "foo"; - o.message = "foo"; - o.reason = "foo"; - } - buildCounterReconcileGetWarning--; - return o; -} - -checkReconcileGetWarning(api.ReconcileGetWarning o) { - buildCounterReconcileGetWarning++; - if (buildCounterReconcileGetWarning < 3) { - unittest.expect(o.location, unittest.equals('foo')); - unittest.expect(o.message, unittest.equals('foo')); - unittest.expect(o.reason, unittest.equals('foo')); - } - buildCounterReconcileGetWarning--; -} - -buildUnnamed1390() { - var o = new core.List<api.ReconcileGetWarning>(); - o.add(buildReconcileGetWarning()); - o.add(buildReconcileGetWarning()); - return o; -} - -checkUnnamed1390(core.List<api.ReconcileGetWarning> o) { - unittest.expect(o, unittest.hasLength(2)); - checkReconcileGetWarning(o[0]); - checkReconcileGetWarning(o[1]); -} - -core.int buildCounterReconcileGet = 0; -buildReconcileGet() { - var o = new api.ReconcileGet(); - buildCounterReconcileGet++; - if (buildCounterReconcileGet < 3) { - o.candidate = buildUnnamed1389(); - o.costs = buildReconcileGetCosts(); - o.match = buildReconcileCandidate(); - o.warning = buildUnnamed1390(); - } - buildCounterReconcileGet--; - return o; -} - -checkReconcileGet(api.ReconcileGet o) { - buildCounterReconcileGet++; - if (buildCounterReconcileGet < 3) { - checkUnnamed1389(o.candidate); - checkReconcileGetCosts(o.costs); - checkReconcileCandidate(o.match); - checkUnnamed1390(o.warning); - } - buildCounterReconcileGet--; -} - -buildUnnamed1391() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1391(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1392() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1392(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1393() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1393(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1394() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1394(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1395() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1395(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1396() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1396(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1397() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1397(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1398() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1398(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1399() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1399(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1400() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1400(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - - -main() { - unittest.group("obj-schema-ReconcileCandidateNotable", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileCandidateNotable(); - var od = new api.ReconcileCandidateNotable.fromJson(o.toJson()); - checkReconcileCandidateNotable(od); - }); - }); - - - unittest.group("obj-schema-ReconcileCandidate", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileCandidate(); - var od = new api.ReconcileCandidate.fromJson(o.toJson()); - checkReconcileCandidate(od); - }); - }); - - - unittest.group("obj-schema-ReconcileGetCosts", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileGetCosts(); - var od = new api.ReconcileGetCosts.fromJson(o.toJson()); - checkReconcileGetCosts(od); - }); - }); - - - unittest.group("obj-schema-ReconcileGetWarning", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileGetWarning(); - var od = new api.ReconcileGetWarning.fromJson(o.toJson()); - checkReconcileGetWarning(od); - }); - }); - - - unittest.group("obj-schema-ReconcileGet", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileGet(); - var od = new api.ReconcileGet.fromJson(o.toJson()); - checkReconcileGet(od); - }); - }); - - - unittest.group("resource-FreebaseApi", () { - unittest.test("method--reconcile", () { - - var mock = new HttpServerMock(); - api.FreebaseApi res = new api.FreebaseApi(mock); - var arg_confidence = 42.0; - var arg_kind = buildUnnamed1391(); - var arg_lang = buildUnnamed1392(); - var arg_limit = 42; - var arg_name = "foo"; - var arg_prop = buildUnnamed1393(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("freebase/v1/")); - pathOffset += 12; - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("reconcile")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.num.parse(queryMap["confidence"].first), unittest.equals(arg_confidence)); - unittest.expect(queryMap["kind"], unittest.equals(arg_kind)); - unittest.expect(queryMap["lang"], unittest.equals(arg_lang)); - unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect(queryMap["prop"], unittest.equals(arg_prop)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReconcileGet()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.reconcile(confidence: arg_confidence, kind: arg_kind, lang: arg_lang, limit: arg_limit, name: arg_name, prop: arg_prop).then(unittest.expectAsync(((api.ReconcileGet response) { - checkReconcileGet(response); - }))); - }); - - unittest.test("method--search", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.FreebaseApi res = new api.FreebaseApi(mock); - var arg_asOfTime = "foo"; - var arg_callback = "foo"; - var arg_cursor = 42; - var arg_domain = buildUnnamed1394(); - var arg_encode = "foo"; - var arg_exact = true; - var arg_filter = buildUnnamed1395(); - var arg_format = "foo"; - var arg_help = "foo"; - var arg_indent = true; - var arg_lang = buildUnnamed1396(); - var arg_limit = 42; - var arg_mid = buildUnnamed1397(); - var arg_mqlOutput = "foo"; - var arg_output = "foo"; - var arg_prefixed = true; - var arg_query = "foo"; - var arg_scoring = "foo"; - var arg_spell = "foo"; - var arg_stemmed = true; - var arg_type = buildUnnamed1398(); - var arg_with_ = buildUnnamed1399(); - var arg_without = buildUnnamed1400(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("freebase/v1/")); - pathOffset += 12; - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("search")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["as_of_time"].first, unittest.equals(arg_asOfTime)); - unittest.expect(queryMap["callback"].first, unittest.equals(arg_callback)); - unittest.expect(core.int.parse(queryMap["cursor"].first), unittest.equals(arg_cursor)); - unittest.expect(queryMap["domain"], unittest.equals(arg_domain)); - unittest.expect(queryMap["encode"].first, unittest.equals(arg_encode)); - unittest.expect(queryMap["exact"].first, unittest.equals("$arg_exact")); - unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); - unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); - unittest.expect(queryMap["help"].first, unittest.equals(arg_help)); - unittest.expect(queryMap["indent"].first, unittest.equals("$arg_indent")); - unittest.expect(queryMap["lang"], unittest.equals(arg_lang)); - unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["mid"], unittest.equals(arg_mid)); - unittest.expect(queryMap["mql_output"].first, unittest.equals(arg_mqlOutput)); - unittest.expect(queryMap["output"].first, unittest.equals(arg_output)); - unittest.expect(queryMap["prefixed"].first, unittest.equals("$arg_prefixed")); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); - unittest.expect(queryMap["scoring"].first, unittest.equals(arg_scoring)); - unittest.expect(queryMap["spell"].first, unittest.equals(arg_spell)); - unittest.expect(queryMap["stemmed"].first, unittest.equals("$arg_stemmed")); - unittest.expect(queryMap["type"], unittest.equals(arg_type)); - unittest.expect(queryMap["with"], unittest.equals(arg_with_)); - unittest.expect(queryMap["without"], unittest.equals(arg_without)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.search(asOfTime: arg_asOfTime, callback: arg_callback, cursor: arg_cursor, domain: arg_domain, encode: arg_encode, exact: arg_exact, filter: arg_filter, format: arg_format, help: arg_help, indent: arg_indent, lang: arg_lang, limit: arg_limit, mid: arg_mid, mqlOutput: arg_mqlOutput, output: arg_output, prefixed: arg_prefixed, query: arg_query, scoring: arg_scoring, spell: arg_spell, stemmed: arg_stemmed, type: arg_type, with_: arg_with_, without: arg_without).then(unittest.expectAsync((_) {})); - }); - - }); - - -} -
diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v1_test.dart index 10c86c3..fb27315 100644 --- a/generated/googleapis/test/fusiontables/v1_test.dart +++ b/generated/googleapis/test/fusiontables/v1_test.dart
@@ -132,14 +132,14 @@ buildCounterColumn--; } -buildUnnamed3327() { +buildUnnamed3140() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3327(core.List<api.Column> o) { +checkUnnamed3140(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -150,7 +150,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed3327(); + o.items = buildUnnamed3140(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -162,7 +162,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed3327(o.items); + checkUnnamed3140(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -170,14 +170,14 @@ buildCounterColumnList--; } -buildUnnamed3328() { +buildUnnamed3141() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3328(core.List<core.Object> o) { +checkUnnamed3141(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -188,7 +188,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed3328(); + o.geometries = buildUnnamed3141(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -199,7 +199,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed3328(o.geometries); + checkUnnamed3141(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -227,30 +227,30 @@ buildCounterImport--; } -buildUnnamed3329() { +buildUnnamed3142() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3329(core.List<core.double> o) { +checkUnnamed3142(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3330() { +buildUnnamed3143() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3329()); - o.add(buildUnnamed3329()); + o.add(buildUnnamed3142()); + o.add(buildUnnamed3142()); return o; } -checkUnnamed3330(core.List<core.List<core.double>> o) { +checkUnnamed3143(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3329(o[0]); - checkUnnamed3329(o[1]); + checkUnnamed3142(o[0]); + checkUnnamed3142(o[1]); } core.int buildCounterLine = 0; @@ -258,7 +258,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed3330(); + o.coordinates = buildUnnamed3143(); o.type = "foo"; } buildCounterLine--; @@ -268,7 +268,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed3330(o.coordinates); + checkUnnamed3143(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -301,14 +301,14 @@ buildCounterLineStyle--; } -buildUnnamed3331() { +buildUnnamed3144() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3331(core.List<core.double> o) { +checkUnnamed3144(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -319,7 +319,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed3331(); + o.coordinates = buildUnnamed3144(); o.type = "foo"; } buildCounterPoint--; @@ -329,7 +329,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed3331(o.coordinates); + checkUnnamed3144(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -356,43 +356,43 @@ buildCounterPointStyle--; } -buildUnnamed3332() { +buildUnnamed3145() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3332(core.List<core.double> o) { +checkUnnamed3145(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3333() { +buildUnnamed3146() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3332()); - o.add(buildUnnamed3332()); + o.add(buildUnnamed3145()); + o.add(buildUnnamed3145()); return o; } -checkUnnamed3333(core.List<core.List<core.double>> o) { +checkUnnamed3146(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3332(o[0]); - checkUnnamed3332(o[1]); + checkUnnamed3145(o[0]); + checkUnnamed3145(o[1]); } -buildUnnamed3334() { +buildUnnamed3147() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed3333()); - o.add(buildUnnamed3333()); + o.add(buildUnnamed3146()); + o.add(buildUnnamed3146()); return o; } -checkUnnamed3334(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed3147(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3333(o[0]); - checkUnnamed3333(o[1]); + checkUnnamed3146(o[0]); + checkUnnamed3146(o[1]); } core.int buildCounterPolygon = 0; @@ -400,7 +400,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed3334(); + o.coordinates = buildUnnamed3147(); o.type = "foo"; } buildCounterPolygon--; @@ -410,7 +410,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed3334(o.coordinates); + checkUnnamed3147(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -449,43 +449,43 @@ buildCounterPolygonStyle--; } -buildUnnamed3335() { +buildUnnamed3148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3335(core.List<core.String> o) { +checkUnnamed3148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3336() { +buildUnnamed3149() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3336(core.List<core.Object> o) { +checkUnnamed3149(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed3337() { +buildUnnamed3150() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3336()); - o.add(buildUnnamed3336()); + o.add(buildUnnamed3149()); + o.add(buildUnnamed3149()); return o; } -checkUnnamed3337(core.List<core.List<core.Object>> o) { +checkUnnamed3150(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3336(o[0]); - checkUnnamed3336(o[1]); + checkUnnamed3149(o[0]); + checkUnnamed3149(o[1]); } core.int buildCounterSqlresponse = 0; @@ -493,9 +493,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed3335(); + o.columns = buildUnnamed3148(); o.kind = "foo"; - o.rows = buildUnnamed3337(); + o.rows = buildUnnamed3150(); } buildCounterSqlresponse--; return o; @@ -504,21 +504,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed3335(o.columns); + checkUnnamed3148(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3337(o.rows); + checkUnnamed3150(o.rows); } buildCounterSqlresponse--; } -buildUnnamed3338() { +buildUnnamed3151() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed3338(core.List<api.Bucket> o) { +checkUnnamed3151(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -545,14 +545,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed3339() { +buildUnnamed3152() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed3339(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed3152(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -563,7 +563,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed3339(); + o.colors = buildUnnamed3152(); o.max = 42.0; o.min = 42.0; } @@ -574,7 +574,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed3339(o.colors); + checkUnnamed3152(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -586,7 +586,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed3338(); + o.buckets = buildUnnamed3151(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -598,7 +598,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed3338(o.buckets); + checkUnnamed3151(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -637,14 +637,14 @@ buildCounterStyleSetting--; } -buildUnnamed3340() { +buildUnnamed3153() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed3340(core.List<api.StyleSetting> o) { +checkUnnamed3153(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -655,7 +655,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed3340(); + o.items = buildUnnamed3153(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -667,7 +667,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed3340(o.items); + checkUnnamed3153(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -675,27 +675,27 @@ buildCounterStyleSettingList--; } -buildUnnamed3341() { +buildUnnamed3154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3341(core.List<core.String> o) { +checkUnnamed3154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3342() { +buildUnnamed3155() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3342(core.List<api.Column> o) { +checkUnnamed3155(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -708,8 +708,8 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed3341(); - o.columns = buildUnnamed3342(); + o.baseTableIds = buildUnnamed3154(); + o.columns = buildUnnamed3155(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -726,8 +726,8 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed3341(o.baseTableIds); - checkUnnamed3342(o.columns); + checkUnnamed3154(o.baseTableIds); + checkUnnamed3155(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -738,14 +738,14 @@ buildCounterTable--; } -buildUnnamed3343() { +buildUnnamed3156() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed3343(core.List<api.Table> o) { +checkUnnamed3156(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -756,7 +756,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed3343(); + o.items = buildUnnamed3156(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -767,7 +767,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed3343(o.items); + checkUnnamed3156(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -801,14 +801,14 @@ buildCounterTask--; } -buildUnnamed3344() { +buildUnnamed3157() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3344(core.List<api.Task> o) { +checkUnnamed3157(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -819,7 +819,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed3344(); + o.items = buildUnnamed3157(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -831,7 +831,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed3344(o.items); + checkUnnamed3157(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -839,14 +839,14 @@ buildCounterTaskList--; } -buildUnnamed3345() { +buildUnnamed3158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3345(core.List<core.String> o) { +checkUnnamed3158(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -857,7 +857,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed3345(); + o.automaticColumnNames = buildUnnamed3158(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -871,7 +871,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed3345(o.automaticColumnNames); + checkUnnamed3158(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -881,14 +881,14 @@ buildCounterTemplate--; } -buildUnnamed3346() { +buildUnnamed3159() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed3346(core.List<api.Template> o) { +checkUnnamed3159(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -899,7 +899,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed3346(); + o.items = buildUnnamed3159(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -911,7 +911,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed3346(o.items); + checkUnnamed3159(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42));
diff --git a/generated/googleapis/test/fusiontables/v2_test.dart b/generated/googleapis/test/fusiontables/v2_test.dart index 3af3e47..45c03ae 100644 --- a/generated/googleapis/test/fusiontables/v2_test.dart +++ b/generated/googleapis/test/fusiontables/v2_test.dart
@@ -101,14 +101,14 @@ buildCounterColumnBaseColumn--; } -buildUnnamed648() { +buildUnnamed666() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed648(core.List<core.String> o) { +checkUnnamed666(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -129,7 +129,7 @@ o.kind = "foo"; o.name = "foo"; o.type = "foo"; - o.validValues = buildUnnamed648(); + o.validValues = buildUnnamed666(); o.validateData = true; } buildCounterColumn--; @@ -149,20 +149,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed648(o.validValues); + checkUnnamed666(o.validValues); unittest.expect(o.validateData, unittest.isTrue); } buildCounterColumn--; } -buildUnnamed649() { +buildUnnamed667() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed649(core.List<api.Column> o) { +checkUnnamed667(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -173,7 +173,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed649(); + o.items = buildUnnamed667(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -185,7 +185,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed649(o.items); + checkUnnamed667(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -193,14 +193,14 @@ buildCounterColumnList--; } -buildUnnamed650() { +buildUnnamed668() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed650(core.List<core.Object> o) { +checkUnnamed668(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -211,7 +211,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed650(); + o.geometries = buildUnnamed668(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -222,7 +222,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed650(o.geometries); + checkUnnamed668(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -250,30 +250,30 @@ buildCounterImport--; } -buildUnnamed651() { +buildUnnamed669() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed651(core.List<core.double> o) { +checkUnnamed669(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed652() { +buildUnnamed670() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed651()); - o.add(buildUnnamed651()); + o.add(buildUnnamed669()); + o.add(buildUnnamed669()); return o; } -checkUnnamed652(core.List<core.List<core.double>> o) { +checkUnnamed670(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed651(o[0]); - checkUnnamed651(o[1]); + checkUnnamed669(o[0]); + checkUnnamed669(o[1]); } core.int buildCounterLine = 0; @@ -281,7 +281,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed652(); + o.coordinates = buildUnnamed670(); o.type = "foo"; } buildCounterLine--; @@ -291,7 +291,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed652(o.coordinates); + checkUnnamed670(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -324,14 +324,14 @@ buildCounterLineStyle--; } -buildUnnamed653() { +buildUnnamed671() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed653(core.List<core.double> o) { +checkUnnamed671(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -342,7 +342,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed653(); + o.coordinates = buildUnnamed671(); o.type = "foo"; } buildCounterPoint--; @@ -352,7 +352,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed653(o.coordinates); + checkUnnamed671(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -379,43 +379,43 @@ buildCounterPointStyle--; } -buildUnnamed654() { +buildUnnamed672() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed654(core.List<core.double> o) { +checkUnnamed672(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed655() { +buildUnnamed673() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed654()); - o.add(buildUnnamed654()); + o.add(buildUnnamed672()); + o.add(buildUnnamed672()); return o; } -checkUnnamed655(core.List<core.List<core.double>> o) { +checkUnnamed673(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed654(o[0]); - checkUnnamed654(o[1]); + checkUnnamed672(o[0]); + checkUnnamed672(o[1]); } -buildUnnamed656() { +buildUnnamed674() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed655()); - o.add(buildUnnamed655()); + o.add(buildUnnamed673()); + o.add(buildUnnamed673()); return o; } -checkUnnamed656(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed674(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed655(o[0]); - checkUnnamed655(o[1]); + checkUnnamed673(o[0]); + checkUnnamed673(o[1]); } core.int buildCounterPolygon = 0; @@ -423,7 +423,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed656(); + o.coordinates = buildUnnamed674(); o.type = "foo"; } buildCounterPolygon--; @@ -433,7 +433,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed656(o.coordinates); + checkUnnamed674(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -472,43 +472,43 @@ buildCounterPolygonStyle--; } -buildUnnamed657() { +buildUnnamed675() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed657(core.List<core.String> o) { +checkUnnamed675(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed658() { +buildUnnamed676() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed658(core.List<core.Object> o) { +checkUnnamed676(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed659() { +buildUnnamed677() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed658()); - o.add(buildUnnamed658()); + o.add(buildUnnamed676()); + o.add(buildUnnamed676()); return o; } -checkUnnamed659(core.List<core.List<core.Object>> o) { +checkUnnamed677(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed658(o[0]); - checkUnnamed658(o[1]); + checkUnnamed676(o[0]); + checkUnnamed676(o[1]); } core.int buildCounterSqlresponse = 0; @@ -516,9 +516,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed657(); + o.columns = buildUnnamed675(); o.kind = "foo"; - o.rows = buildUnnamed659(); + o.rows = buildUnnamed677(); } buildCounterSqlresponse--; return o; @@ -527,21 +527,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed657(o.columns); + checkUnnamed675(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed659(o.rows); + checkUnnamed677(o.rows); } buildCounterSqlresponse--; } -buildUnnamed660() { +buildUnnamed678() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed660(core.List<api.Bucket> o) { +checkUnnamed678(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -568,14 +568,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed661() { +buildUnnamed679() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed661(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed679(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -586,7 +586,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed661(); + o.colors = buildUnnamed679(); o.max = 42.0; o.min = 42.0; } @@ -597,7 +597,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed661(o.colors); + checkUnnamed679(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -609,7 +609,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed660(); + o.buckets = buildUnnamed678(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -621,7 +621,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed660(o.buckets); + checkUnnamed678(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -660,14 +660,14 @@ buildCounterStyleSetting--; } -buildUnnamed662() { +buildUnnamed680() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed662(core.List<api.StyleSetting> o) { +checkUnnamed680(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -678,7 +678,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed662(); + o.items = buildUnnamed680(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -690,7 +690,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed662(o.items); + checkUnnamed680(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -698,27 +698,27 @@ buildCounterStyleSettingList--; } -buildUnnamed663() { +buildUnnamed681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed663(core.List<core.String> o) { +checkUnnamed681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed664() { +buildUnnamed682() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed664(core.List<api.Column> o) { +checkUnnamed682(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -731,9 +731,9 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed663(); + o.baseTableIds = buildUnnamed681(); o.columnPropertiesJsonSchema = "foo"; - o.columns = buildUnnamed664(); + o.columns = buildUnnamed682(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -752,9 +752,9 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed663(o.baseTableIds); + checkUnnamed681(o.baseTableIds); unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); - checkUnnamed664(o.columns); + checkUnnamed682(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -767,14 +767,14 @@ buildCounterTable--; } -buildUnnamed665() { +buildUnnamed683() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed665(core.List<api.Table> o) { +checkUnnamed683(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -785,7 +785,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed665(); + o.items = buildUnnamed683(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,7 +796,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed665(o.items); + checkUnnamed683(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -830,14 +830,14 @@ buildCounterTask--; } -buildUnnamed666() { +buildUnnamed684() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed666(core.List<api.Task> o) { +checkUnnamed684(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -848,7 +848,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed666(); + o.items = buildUnnamed684(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -860,7 +860,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed666(o.items); + checkUnnamed684(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -868,14 +868,14 @@ buildCounterTaskList--; } -buildUnnamed667() { +buildUnnamed685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed667(core.List<core.String> o) { +checkUnnamed685(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -886,7 +886,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed667(); + o.automaticColumnNames = buildUnnamed685(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -900,7 +900,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed667(o.automaticColumnNames); + checkUnnamed685(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -910,14 +910,14 @@ buildCounterTemplate--; } -buildUnnamed668() { +buildUnnamed686() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed668(core.List<api.Template> o) { +checkUnnamed686(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -928,7 +928,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed668(); + o.items = buildUnnamed686(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -940,7 +940,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed668(o.items); + checkUnnamed686(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42));
diff --git a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart index 18859ac..6dfda57 100644 --- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart +++ b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart
@@ -113,14 +113,14 @@ buildCounterAchievementConfigurationDetail--; } -buildUnnamed870() { +buildUnnamed894() { var o = new core.List<api.AchievementConfiguration>(); o.add(buildAchievementConfiguration()); o.add(buildAchievementConfiguration()); return o; } -checkUnnamed870(core.List<api.AchievementConfiguration> o) { +checkUnnamed894(core.List<api.AchievementConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementConfiguration(o[0]); checkAchievementConfiguration(o[1]); @@ -131,7 +131,7 @@ var o = new api.AchievementConfigurationListResponse(); buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - o.items = buildUnnamed870(); + o.items = buildUnnamed894(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkAchievementConfigurationListResponse(api.AchievementConfigurationListResponse o) { buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - checkUnnamed870(o.items); + checkUnnamed894(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -288,14 +288,14 @@ buildCounterLeaderboardConfigurationDetail--; } -buildUnnamed871() { +buildUnnamed895() { var o = new core.List<api.LeaderboardConfiguration>(); o.add(buildLeaderboardConfiguration()); o.add(buildLeaderboardConfiguration()); return o; } -checkUnnamed871(core.List<api.LeaderboardConfiguration> o) { +checkUnnamed895(core.List<api.LeaderboardConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboardConfiguration(o[0]); checkLeaderboardConfiguration(o[1]); @@ -306,7 +306,7 @@ var o = new api.LeaderboardConfigurationListResponse(); buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - o.items = buildUnnamed871(); + o.items = buildUnnamed895(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -317,7 +317,7 @@ checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListResponse o) { buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - checkUnnamed871(o.items); + checkUnnamed895(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -347,14 +347,14 @@ buildCounterLocalizedString--; } -buildUnnamed872() { +buildUnnamed896() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed872(core.List<api.LocalizedString> o) { +checkUnnamed896(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -366,7 +366,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { o.kind = "foo"; - o.translations = buildUnnamed872(); + o.translations = buildUnnamed896(); } buildCounterLocalizedStringBundle--; return o; @@ -376,7 +376,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed872(o.translations); + checkUnnamed896(o.translations); } buildCounterLocalizedStringBundle--; }
diff --git a/generated/googleapis/test/gamesmanagement/v1management_test.dart b/generated/googleapis/test/gamesmanagement/v1management_test.dart index 44878fc..f24e4cd 100644 --- a/generated/googleapis/test/gamesmanagement/v1management_test.dart +++ b/generated/googleapis/test/gamesmanagement/v1management_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed862() { +buildUnnamed886() { var o = new core.List<api.AchievementResetResponse>(); o.add(buildAchievementResetResponse()); o.add(buildAchievementResetResponse()); return o; } -checkUnnamed862(core.List<api.AchievementResetResponse> o) { +checkUnnamed886(core.List<api.AchievementResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementResetResponse(o[0]); checkAchievementResetResponse(o[1]); @@ -70,7 +70,7 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed862(); + o.results = buildUnnamed886(); } buildCounterAchievementResetAllResponse--; return o; @@ -80,19 +80,19 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed862(o.results); + checkUnnamed886(o.results); } buildCounterAchievementResetAllResponse--; } -buildUnnamed863() { +buildUnnamed887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed863(core.List<core.String> o) { +checkUnnamed887(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -103,7 +103,7 @@ var o = new api.AchievementResetMultipleForAllRequest(); buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - o.achievementIds = buildUnnamed863(); + o.achievementIds = buildUnnamed887(); o.kind = "foo"; } buildCounterAchievementResetMultipleForAllRequest--; @@ -113,7 +113,7 @@ checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllRequest o) { buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - checkUnnamed863(o.achievementIds); + checkUnnamed887(o.achievementIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAchievementResetMultipleForAllRequest--; @@ -144,14 +144,14 @@ buildCounterAchievementResetResponse--; } -buildUnnamed864() { +buildUnnamed888() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed864(core.List<core.String> o) { +checkUnnamed888(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -162,7 +162,7 @@ var o = new api.EventsResetMultipleForAllRequest(); buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - o.eventIds = buildUnnamed864(); + o.eventIds = buildUnnamed888(); o.kind = "foo"; } buildCounterEventsResetMultipleForAllRequest--; @@ -172,7 +172,7 @@ checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - checkUnnamed864(o.eventIds); + checkUnnamed888(o.eventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventsResetMultipleForAllRequest--; @@ -270,14 +270,14 @@ buildCounterHiddenPlayer--; } -buildUnnamed865() { +buildUnnamed889() { var o = new core.List<api.HiddenPlayer>(); o.add(buildHiddenPlayer()); o.add(buildHiddenPlayer()); return o; } -checkUnnamed865(core.List<api.HiddenPlayer> o) { +checkUnnamed889(core.List<api.HiddenPlayer> o) { unittest.expect(o, unittest.hasLength(2)); checkHiddenPlayer(o[0]); checkHiddenPlayer(o[1]); @@ -288,7 +288,7 @@ var o = new api.HiddenPlayerList(); buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - o.items = buildUnnamed865(); + o.items = buildUnnamed889(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -299,7 +299,7 @@ checkHiddenPlayerList(api.HiddenPlayerList o) { buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - checkUnnamed865(o.items); + checkUnnamed889(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -368,14 +368,14 @@ buildCounterPlayer--; } -buildUnnamed866() { +buildUnnamed890() { var o = new core.List<api.PlayerScoreResetResponse>(); o.add(buildPlayerScoreResetResponse()); o.add(buildPlayerScoreResetResponse()); return o; } -checkUnnamed866(core.List<api.PlayerScoreResetResponse> o) { +checkUnnamed890(core.List<api.PlayerScoreResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResetResponse(o[0]); checkPlayerScoreResetResponse(o[1]); @@ -387,7 +387,7 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed866(); + o.results = buildUnnamed890(); } buildCounterPlayerScoreResetAllResponse--; return o; @@ -397,19 +397,19 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed866(o.results); + checkUnnamed890(o.results); } buildCounterPlayerScoreResetAllResponse--; } -buildUnnamed867() { +buildUnnamed891() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed867(core.List<core.String> o) { +checkUnnamed891(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -422,7 +422,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { o.definitionId = "foo"; o.kind = "foo"; - o.resetScoreTimeSpans = buildUnnamed867(); + o.resetScoreTimeSpans = buildUnnamed891(); } buildCounterPlayerScoreResetResponse--; return o; @@ -433,7 +433,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { unittest.expect(o.definitionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed867(o.resetScoreTimeSpans); + checkUnnamed891(o.resetScoreTimeSpans); } buildCounterPlayerScoreResetResponse--; } @@ -459,14 +459,14 @@ buildCounterProfileSettings--; } -buildUnnamed868() { +buildUnnamed892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed868(core.List<core.String> o) { +checkUnnamed892(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -478,7 +478,7 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.questIds = buildUnnamed868(); + o.questIds = buildUnnamed892(); } buildCounterQuestsResetMultipleForAllRequest--; return o; @@ -488,19 +488,19 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed868(o.questIds); + checkUnnamed892(o.questIds); } buildCounterQuestsResetMultipleForAllRequest--; } -buildUnnamed869() { +buildUnnamed893() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed869(core.List<core.String> o) { +checkUnnamed893(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -512,7 +512,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.leaderboardIds = buildUnnamed869(); + o.leaderboardIds = buildUnnamed893(); } buildCounterScoresResetMultipleForAllRequest--; return o; @@ -522,7 +522,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed869(o.leaderboardIds); + checkUnnamed893(o.leaderboardIds); } buildCounterScoresResetMultipleForAllRequest--; }
diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart index 0adbb2b..e30db48 100644 --- a/generated/googleapis/test/genomics/v1_test.dart +++ b/generated/googleapis/test/genomics/v1_test.dart
@@ -51,30 +51,30 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2951() { +buildUnnamed3025() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2951(core.List<core.Object> o) { +checkUnnamed3025(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2952() { +buildUnnamed3026() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2951(); - o["y"] = buildUnnamed2951(); + o["x"] = buildUnnamed3025(); + o["y"] = buildUnnamed3025(); return o; } -checkUnnamed2952(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3026(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2951(o["x"]); - checkUnnamed2951(o["y"]); + checkUnnamed3025(o["x"]); + checkUnnamed3025(o["y"]); } core.int buildCounterAnnotation = 0; @@ -85,7 +85,7 @@ o.annotationSetId = "foo"; o.end = "foo"; o.id = "foo"; - o.info = buildUnnamed2952(); + o.info = buildUnnamed3026(); o.name = "foo"; o.referenceId = "foo"; o.referenceName = "foo"; @@ -105,7 +105,7 @@ unittest.expect(o.annotationSetId, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2952(o.info); + checkUnnamed3026(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -118,30 +118,30 @@ buildCounterAnnotation--; } -buildUnnamed2953() { +buildUnnamed3027() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2953(core.List<core.Object> o) { +checkUnnamed3027(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2954() { +buildUnnamed3028() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2953(); - o["y"] = buildUnnamed2953(); + o["x"] = buildUnnamed3027(); + o["y"] = buildUnnamed3027(); return o; } -checkUnnamed2954(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3028(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2953(o["x"]); - checkUnnamed2953(o["y"]); + checkUnnamed3027(o["x"]); + checkUnnamed3027(o["y"]); } core.int buildCounterAnnotationSet = 0; @@ -151,7 +151,7 @@ if (buildCounterAnnotationSet < 3) { o.datasetId = "foo"; o.id = "foo"; - o.info = buildUnnamed2954(); + o.info = buildUnnamed3028(); o.name = "foo"; o.referenceSetId = "foo"; o.sourceUri = "foo"; @@ -166,7 +166,7 @@ if (buildCounterAnnotationSet < 3) { unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2954(o.info); + checkUnnamed3028(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sourceUri, unittest.equals('foo')); @@ -175,14 +175,14 @@ buildCounterAnnotationSet--; } -buildUnnamed2955() { +buildUnnamed3029() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2955(core.List<api.Annotation> o) { +checkUnnamed3029(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -193,7 +193,7 @@ var o = new api.BatchCreateAnnotationsRequest(); buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - o.annotations = buildUnnamed2955(); + o.annotations = buildUnnamed3029(); o.requestId = "foo"; } buildCounterBatchCreateAnnotationsRequest--; @@ -203,20 +203,20 @@ checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - checkUnnamed2955(o.annotations); + checkUnnamed3029(o.annotations); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterBatchCreateAnnotationsRequest--; } -buildUnnamed2956() { +buildUnnamed3030() { var o = new core.List<api.Entry>(); o.add(buildEntry()); o.add(buildEntry()); return o; } -checkUnnamed2956(core.List<api.Entry> o) { +checkUnnamed3030(core.List<api.Entry> o) { unittest.expect(o, unittest.hasLength(2)); checkEntry(o[0]); checkEntry(o[1]); @@ -227,7 +227,7 @@ var o = new api.BatchCreateAnnotationsResponse(); buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - o.entries = buildUnnamed2956(); + o.entries = buildUnnamed3030(); } buildCounterBatchCreateAnnotationsResponse--; return o; @@ -236,19 +236,19 @@ checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - checkUnnamed2956(o.entries); + checkUnnamed3030(o.entries); } buildCounterBatchCreateAnnotationsResponse--; } -buildUnnamed2957() { +buildUnnamed3031() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2957(core.List<core.String> o) { +checkUnnamed3031(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -259,7 +259,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2957(); + o.members = buildUnnamed3031(); o.role = "foo"; } buildCounterBinding--; @@ -269,46 +269,46 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2957(o.members); + checkUnnamed3031(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2958() { +buildUnnamed3032() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2958(core.List<core.Object> o) { +checkUnnamed3032(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2959() { +buildUnnamed3033() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2958(); - o["y"] = buildUnnamed2958(); + o["x"] = buildUnnamed3032(); + o["y"] = buildUnnamed3032(); return o; } -checkUnnamed2959(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3033(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2958(o["x"]); - checkUnnamed2958(o["y"]); + checkUnnamed3032(o["x"]); + checkUnnamed3032(o["y"]); } -buildUnnamed2960() { +buildUnnamed3034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2960(core.List<core.String> o) { +checkUnnamed3034(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -321,10 +321,10 @@ if (buildCounterCallSet < 3) { o.created = "foo"; o.id = "foo"; - o.info = buildUnnamed2959(); + o.info = buildUnnamed3033(); o.name = "foo"; o.sampleId = "foo"; - o.variantSetIds = buildUnnamed2960(); + o.variantSetIds = buildUnnamed3034(); } buildCounterCallSet--; return o; @@ -335,10 +335,10 @@ if (buildCounterCallSet < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2959(o.info); + checkUnnamed3033(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); - checkUnnamed2960(o.variantSetIds); + checkUnnamed3034(o.variantSetIds); } buildCounterCallSet--; } @@ -383,27 +383,27 @@ buildCounterCigarUnit--; } -buildUnnamed2961() { +buildUnnamed3035() { var o = new core.List<api.ExternalId>(); o.add(buildExternalId()); o.add(buildExternalId()); return o; } -checkUnnamed2961(core.List<api.ExternalId> o) { +checkUnnamed3035(core.List<api.ExternalId> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalId(o[0]); checkExternalId(o[1]); } -buildUnnamed2962() { +buildUnnamed3036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2962(core.List<core.String> o) { +checkUnnamed3036(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -415,8 +415,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { o.conceptId = "foo"; - o.externalIds = buildUnnamed2961(); - o.names = buildUnnamed2962(); + o.externalIds = buildUnnamed3035(); + o.names = buildUnnamed3036(); o.omimId = "foo"; } buildCounterClinicalCondition--; @@ -427,8 +427,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { unittest.expect(o.conceptId, unittest.equals('foo')); - checkUnnamed2961(o.externalIds); - checkUnnamed2962(o.names); + checkUnnamed3035(o.externalIds); + checkUnnamed3036(o.names); unittest.expect(o.omimId, unittest.equals('foo')); } buildCounterClinicalCondition--; @@ -455,14 +455,14 @@ buildCounterCodingSequence--; } -buildUnnamed2963() { +buildUnnamed3037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2963(core.List<core.String> o) { +checkUnnamed3037(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -473,7 +473,7 @@ var o = new api.ComputeEngine(); buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - o.diskNames = buildUnnamed2963(); + o.diskNames = buildUnnamed3037(); o.instanceName = "foo"; o.machineType = "foo"; o.zone = "foo"; @@ -485,7 +485,7 @@ checkComputeEngine(api.ComputeEngine o) { buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - checkUnnamed2963(o.diskNames); + checkUnnamed3037(o.diskNames); unittest.expect(o.instanceName, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -625,14 +625,14 @@ buildCounterExperiment--; } -buildUnnamed2964() { +buildUnnamed3038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2964(core.List<core.String> o) { +checkUnnamed3038(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -645,7 +645,7 @@ if (buildCounterExportReadGroupSetRequest < 3) { o.exportUri = "foo"; o.projectId = "foo"; - o.referenceNames = buildUnnamed2964(); + o.referenceNames = buildUnnamed3038(); } buildCounterExportReadGroupSetRequest--; return o; @@ -656,19 +656,19 @@ if (buildCounterExportReadGroupSetRequest < 3) { unittest.expect(o.exportUri, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2964(o.referenceNames); + checkUnnamed3038(o.referenceNames); } buildCounterExportReadGroupSetRequest--; } -buildUnnamed2965() { +buildUnnamed3039() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2965(core.List<core.String> o) { +checkUnnamed3039(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -681,7 +681,7 @@ if (buildCounterExportVariantSetRequest < 3) { o.bigqueryDataset = "foo"; o.bigqueryTable = "foo"; - o.callSetIds = buildUnnamed2965(); + o.callSetIds = buildUnnamed3039(); o.format = "foo"; o.projectId = "foo"; } @@ -694,7 +694,7 @@ if (buildCounterExportVariantSetRequest < 3) { unittest.expect(o.bigqueryDataset, unittest.equals('foo')); unittest.expect(o.bigqueryTable, unittest.equals('foo')); - checkUnnamed2965(o.callSetIds); + checkUnnamed3039(o.callSetIds); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); } @@ -739,14 +739,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2966() { +buildUnnamed3040() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2966(core.List<core.String> o) { +checkUnnamed3040(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -760,7 +760,7 @@ o.datasetId = "foo"; o.partitionStrategy = "foo"; o.referenceSetId = "foo"; - o.sourceUris = buildUnnamed2966(); + o.sourceUris = buildUnnamed3040(); } buildCounterImportReadGroupSetsRequest--; return o; @@ -772,19 +772,19 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.partitionStrategy, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed2966(o.sourceUris); + checkUnnamed3040(o.sourceUris); } buildCounterImportReadGroupSetsRequest--; } -buildUnnamed2967() { +buildUnnamed3041() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2967(core.List<core.String> o) { +checkUnnamed3041(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -795,7 +795,7 @@ var o = new api.ImportReadGroupSetsResponse(); buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - o.readGroupSetIds = buildUnnamed2967(); + o.readGroupSetIds = buildUnnamed3041(); } buildCounterImportReadGroupSetsResponse--; return o; @@ -804,32 +804,32 @@ checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - checkUnnamed2967(o.readGroupSetIds); + checkUnnamed3041(o.readGroupSetIds); } buildCounterImportReadGroupSetsResponse--; } -buildUnnamed2968() { +buildUnnamed3042() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2968(core.Map<core.String, core.String> o) { +checkUnnamed3042(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2969() { +buildUnnamed3043() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2969(core.List<core.String> o) { +checkUnnamed3043(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -841,9 +841,9 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { o.format = "foo"; - o.infoMergeConfig = buildUnnamed2968(); + o.infoMergeConfig = buildUnnamed3042(); o.normalizeReferenceNames = true; - o.sourceUris = buildUnnamed2969(); + o.sourceUris = buildUnnamed3043(); o.variantSetId = "foo"; } buildCounterImportVariantsRequest--; @@ -854,22 +854,22 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed2968(o.infoMergeConfig); + checkUnnamed3042(o.infoMergeConfig); unittest.expect(o.normalizeReferenceNames, unittest.isTrue); - checkUnnamed2969(o.sourceUris); + checkUnnamed3043(o.sourceUris); unittest.expect(o.variantSetId, unittest.equals('foo')); } buildCounterImportVariantsRequest--; } -buildUnnamed2970() { +buildUnnamed3044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2970(core.List<core.String> o) { +checkUnnamed3044(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -880,7 +880,7 @@ var o = new api.ImportVariantsResponse(); buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - o.callSetIds = buildUnnamed2970(); + o.callSetIds = buildUnnamed3044(); } buildCounterImportVariantsResponse--; return o; @@ -889,19 +889,19 @@ checkImportVariantsResponse(api.ImportVariantsResponse o) { buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - checkUnnamed2970(o.callSetIds); + checkUnnamed3044(o.callSetIds); } buildCounterImportVariantsResponse--; } -buildUnnamed2971() { +buildUnnamed3045() { var o = new core.List<api.CigarUnit>(); o.add(buildCigarUnit()); o.add(buildCigarUnit()); return o; } -checkUnnamed2971(core.List<api.CigarUnit> o) { +checkUnnamed3045(core.List<api.CigarUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkCigarUnit(o[0]); checkCigarUnit(o[1]); @@ -912,7 +912,7 @@ var o = new api.LinearAlignment(); buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - o.cigar = buildUnnamed2971(); + o.cigar = buildUnnamed3045(); o.mappingQuality = 42; o.position = buildPosition(); } @@ -923,7 +923,7 @@ checkLinearAlignment(api.LinearAlignment o) { buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - checkUnnamed2971(o.cigar); + checkUnnamed3045(o.cigar); unittest.expect(o.mappingQuality, unittest.equals(42)); checkPosition(o.position); } @@ -953,14 +953,14 @@ buildCounterListBasesResponse--; } -buildUnnamed2972() { +buildUnnamed3046() { var o = new core.List<api.CoverageBucket>(); o.add(buildCoverageBucket()); o.add(buildCoverageBucket()); return o; } -checkUnnamed2972(core.List<api.CoverageBucket> o) { +checkUnnamed3046(core.List<api.CoverageBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverageBucket(o[0]); checkCoverageBucket(o[1]); @@ -972,7 +972,7 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { o.bucketWidth = "foo"; - o.coverageBuckets = buildUnnamed2972(); + o.coverageBuckets = buildUnnamed3046(); o.nextPageToken = "foo"; } buildCounterListCoverageBucketsResponse--; @@ -983,20 +983,20 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { unittest.expect(o.bucketWidth, unittest.equals('foo')); - checkUnnamed2972(o.coverageBuckets); + checkUnnamed3046(o.coverageBuckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoverageBucketsResponse--; } -buildUnnamed2973() { +buildUnnamed3047() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed2973(core.List<api.Dataset> o) { +checkUnnamed3047(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -1007,7 +1007,7 @@ var o = new api.ListDatasetsResponse(); buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - o.datasets = buildUnnamed2973(); + o.datasets = buildUnnamed3047(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1017,20 +1017,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed2973(o.datasets); + checkUnnamed3047(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed2974() { +buildUnnamed3048() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2974(core.List<api.Operation> o) { +checkUnnamed3048(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1042,7 +1042,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2974(); + o.operations = buildUnnamed3048(); } buildCounterListOperationsResponse--; return o; @@ -1052,32 +1052,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2974(o.operations); + checkUnnamed3048(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2975() { +buildUnnamed3049() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2975(core.Map<core.String, core.String> o) { +checkUnnamed3049(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2976() { +buildUnnamed3050() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed2976(core.List<api.Variant> o) { +checkUnnamed3050(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -1088,9 +1088,9 @@ var o = new api.MergeVariantsRequest(); buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - o.infoMergeConfig = buildUnnamed2975(); + o.infoMergeConfig = buildUnnamed3049(); o.variantSetId = "foo"; - o.variants = buildUnnamed2976(); + o.variants = buildUnnamed3050(); } buildCounterMergeVariantsRequest--; return o; @@ -1099,34 +1099,34 @@ checkMergeVariantsRequest(api.MergeVariantsRequest o) { buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - checkUnnamed2975(o.infoMergeConfig); + checkUnnamed3049(o.infoMergeConfig); unittest.expect(o.variantSetId, unittest.equals('foo')); - checkUnnamed2976(o.variants); + checkUnnamed3050(o.variants); } buildCounterMergeVariantsRequest--; } -buildUnnamed2977() { +buildUnnamed3051() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2977(core.Map<core.String, core.Object> o) { +checkUnnamed3051(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed2978() { +buildUnnamed3052() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2978(core.Map<core.String, core.Object> o) { +checkUnnamed3052(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -1139,9 +1139,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2977(); + o.metadata = buildUnnamed3051(); o.name = "foo"; - o.response = buildUnnamed2978(); + o.response = buildUnnamed3052(); } buildCounterOperation--; return o; @@ -1152,9 +1152,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2977(o.metadata); + checkUnnamed3051(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2978(o.response); + checkUnnamed3052(o.response); } buildCounterOperation--; } @@ -1182,40 +1182,53 @@ buildCounterOperationEvent--; } -buildUnnamed2979() { +buildUnnamed3053() { var o = new core.List<api.OperationEvent>(); o.add(buildOperationEvent()); o.add(buildOperationEvent()); return o; } -checkUnnamed2979(core.List<api.OperationEvent> o) { +checkUnnamed3053(core.List<api.OperationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationEvent(o[0]); checkOperationEvent(o[1]); } -buildUnnamed2980() { +buildUnnamed3054() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3054(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed3055() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2980(core.Map<core.String, core.Object> o) { +checkUnnamed3055(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed2981() { +buildUnnamed3056() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2981(core.Map<core.String, core.Object> o) { +checkUnnamed3056(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); @@ -1229,10 +1242,11 @@ o.clientId = "foo"; o.createTime = "foo"; o.endTime = "foo"; - o.events = buildUnnamed2979(); + o.events = buildUnnamed3053(); + o.labels = buildUnnamed3054(); o.projectId = "foo"; - o.request = buildUnnamed2980(); - o.runtimeMetadata = buildUnnamed2981(); + o.request = buildUnnamed3055(); + o.runtimeMetadata = buildUnnamed3056(); o.startTime = "foo"; } buildCounterOperationMetadata--; @@ -1245,23 +1259,24 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed2979(o.events); + checkUnnamed3053(o.events); + checkUnnamed3054(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2980(o.request); - checkUnnamed2981(o.runtimeMetadata); + checkUnnamed3055(o.request); + checkUnnamed3056(o.runtimeMetadata); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterOperationMetadata--; } -buildUnnamed2982() { +buildUnnamed3057() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2982(core.List<api.Binding> o) { +checkUnnamed3057(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1272,7 +1287,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2982(); + o.bindings = buildUnnamed3057(); o.etag = "foo"; o.version = 42; } @@ -1283,7 +1298,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2982(o.bindings); + checkUnnamed3057(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1363,43 +1378,43 @@ buildCounterRange--; } -buildUnnamed2983() { +buildUnnamed3058() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2983(core.List<core.int> o) { +checkUnnamed3058(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2984() { +buildUnnamed3059() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2984(core.List<core.Object> o) { +checkUnnamed3059(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o[0]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["string"], unittest.equals('foo')); var casted16 = (o[1]) as core.Map; unittest.expect(casted16, unittest.hasLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["string"], unittest.equals('foo')); } -buildUnnamed2985() { +buildUnnamed3060() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2984(); - o["y"] = buildUnnamed2984(); + o["x"] = buildUnnamed3059(); + o["y"] = buildUnnamed3059(); return o; } -checkUnnamed2985(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3060(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2984(o["x"]); - checkUnnamed2984(o["y"]); + checkUnnamed3059(o["x"]); + checkUnnamed3059(o["y"]); } core.int buildCounterRead = 0; @@ -1407,7 +1422,7 @@ var o = new api.Read(); buildCounterRead++; if (buildCounterRead < 3) { - o.alignedQuality = buildUnnamed2983(); + o.alignedQuality = buildUnnamed3058(); o.alignedSequence = "foo"; o.alignment = buildLinearAlignment(); o.duplicateFragment = true; @@ -1415,7 +1430,7 @@ o.fragmentLength = 42; o.fragmentName = "foo"; o.id = "foo"; - o.info = buildUnnamed2985(); + o.info = buildUnnamed3060(); o.nextMatePosition = buildPosition(); o.numberReads = 42; o.properPlacement = true; @@ -1432,7 +1447,7 @@ checkRead(api.Read o) { buildCounterRead++; if (buildCounterRead < 3) { - checkUnnamed2983(o.alignedQuality); + checkUnnamed3058(o.alignedQuality); unittest.expect(o.alignedSequence, unittest.equals('foo')); checkLinearAlignment(o.alignment); unittest.expect(o.duplicateFragment, unittest.isTrue); @@ -1440,7 +1455,7 @@ unittest.expect(o.fragmentLength, unittest.equals(42)); unittest.expect(o.fragmentName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2985(o.info); + checkUnnamed3060(o.info); checkPosition(o.nextMatePosition); unittest.expect(o.numberReads, unittest.equals(42)); unittest.expect(o.properPlacement, unittest.isTrue); @@ -1453,40 +1468,40 @@ buildCounterRead--; } -buildUnnamed2986() { +buildUnnamed3061() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2986(core.List<core.Object> o) { +checkUnnamed3061(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string"], unittest.equals('foo')); var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string"], unittest.equals('foo')); } -buildUnnamed2987() { +buildUnnamed3062() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2986(); - o["y"] = buildUnnamed2986(); + o["x"] = buildUnnamed3061(); + o["y"] = buildUnnamed3061(); return o; } -checkUnnamed2987(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3062(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2986(o["x"]); - checkUnnamed2986(o["y"]); + checkUnnamed3061(o["x"]); + checkUnnamed3061(o["y"]); } -buildUnnamed2988() { +buildUnnamed3063() { var o = new core.List<api.Program>(); o.add(buildProgram()); o.add(buildProgram()); return o; } -checkUnnamed2988(core.List<api.Program> o) { +checkUnnamed3063(core.List<api.Program> o) { unittest.expect(o, unittest.hasLength(2)); checkProgram(o[0]); checkProgram(o[1]); @@ -1501,10 +1516,10 @@ o.description = "foo"; o.experiment = buildExperiment(); o.id = "foo"; - o.info = buildUnnamed2987(); + o.info = buildUnnamed3062(); o.name = "foo"; o.predictedInsertSize = 42; - o.programs = buildUnnamed2988(); + o.programs = buildUnnamed3063(); o.referenceSetId = "foo"; o.sampleId = "foo"; } @@ -1519,50 +1534,50 @@ unittest.expect(o.description, unittest.equals('foo')); checkExperiment(o.experiment); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2987(o.info); + checkUnnamed3062(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.predictedInsertSize, unittest.equals(42)); - checkUnnamed2988(o.programs); + checkUnnamed3063(o.programs); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); } buildCounterReadGroup--; } -buildUnnamed2989() { +buildUnnamed3064() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2989(core.List<core.Object> o) { +checkUnnamed3064(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o[0]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); var casted20 = (o[1]) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string"], unittest.equals('foo')); } -buildUnnamed2990() { +buildUnnamed3065() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2989(); - o["y"] = buildUnnamed2989(); + o["x"] = buildUnnamed3064(); + o["y"] = buildUnnamed3064(); return o; } -checkUnnamed2990(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3065(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2989(o["x"]); - checkUnnamed2989(o["y"]); + checkUnnamed3064(o["x"]); + checkUnnamed3064(o["y"]); } -buildUnnamed2991() { +buildUnnamed3066() { var o = new core.List<api.ReadGroup>(); o.add(buildReadGroup()); o.add(buildReadGroup()); return o; } -checkUnnamed2991(core.List<api.ReadGroup> o) { +checkUnnamed3066(core.List<api.ReadGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroup(o[0]); checkReadGroup(o[1]); @@ -1576,9 +1591,9 @@ o.datasetId = "foo"; o.filename = "foo"; o.id = "foo"; - o.info = buildUnnamed2990(); + o.info = buildUnnamed3065(); o.name = "foo"; - o.readGroups = buildUnnamed2991(); + o.readGroups = buildUnnamed3066(); o.referenceSetId = "foo"; } buildCounterReadGroupSet--; @@ -1591,22 +1606,22 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2990(o.info); + checkUnnamed3065(o.info); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2991(o.readGroups); + checkUnnamed3066(o.readGroups); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterReadGroupSet--; } -buildUnnamed2992() { +buildUnnamed3067() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2992(core.List<core.String> o) { +checkUnnamed3067(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1622,7 +1637,7 @@ o.md5checksum = "foo"; o.name = "foo"; o.ncbiTaxonId = 42; - o.sourceAccessions = buildUnnamed2992(); + o.sourceAccessions = buildUnnamed3067(); o.sourceUri = "foo"; } buildCounterReference--; @@ -1637,7 +1652,7 @@ unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2992(o.sourceAccessions); + checkUnnamed3067(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReference--; @@ -1664,27 +1679,27 @@ buildCounterReferenceBound--; } -buildUnnamed2993() { +buildUnnamed3068() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2993(core.List<core.String> o) { +checkUnnamed3068(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2994() { +buildUnnamed3069() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2994(core.List<core.String> o) { +checkUnnamed3069(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1700,8 +1715,8 @@ o.id = "foo"; o.md5checksum = "foo"; o.ncbiTaxonId = 42; - o.referenceIds = buildUnnamed2993(); - o.sourceAccessions = buildUnnamed2994(); + o.referenceIds = buildUnnamed3068(); + o.sourceAccessions = buildUnnamed3069(); o.sourceUri = "foo"; } buildCounterReferenceSet--; @@ -1716,8 +1731,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2993(o.referenceIds); - checkUnnamed2994(o.sourceAccessions); + checkUnnamed3068(o.referenceIds); + checkUnnamed3069(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReferenceSet--; @@ -1742,27 +1757,27 @@ buildCounterRuntimeMetadata--; } -buildUnnamed2995() { +buildUnnamed3070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2995(core.List<core.String> o) { +checkUnnamed3070(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2996() { +buildUnnamed3071() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2996(core.List<core.String> o) { +checkUnnamed3071(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1773,12 +1788,12 @@ var o = new api.SearchAnnotationSetsRequest(); buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - o.datasetIds = buildUnnamed2995(); + o.datasetIds = buildUnnamed3070(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; - o.types = buildUnnamed2996(); + o.types = buildUnnamed3071(); } buildCounterSearchAnnotationSetsRequest--; return o; @@ -1787,24 +1802,24 @@ checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - checkUnnamed2995(o.datasetIds); + checkUnnamed3070(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed2996(o.types); + checkUnnamed3071(o.types); } buildCounterSearchAnnotationSetsRequest--; } -buildUnnamed2997() { +buildUnnamed3072() { var o = new core.List<api.AnnotationSet>(); o.add(buildAnnotationSet()); o.add(buildAnnotationSet()); return o; } -checkUnnamed2997(core.List<api.AnnotationSet> o) { +checkUnnamed3072(core.List<api.AnnotationSet> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationSet(o[0]); checkAnnotationSet(o[1]); @@ -1815,7 +1830,7 @@ var o = new api.SearchAnnotationSetsResponse(); buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - o.annotationSets = buildUnnamed2997(); + o.annotationSets = buildUnnamed3072(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationSetsResponse--; @@ -1825,20 +1840,20 @@ checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - checkUnnamed2997(o.annotationSets); + checkUnnamed3072(o.annotationSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationSetsResponse--; } -buildUnnamed2998() { +buildUnnamed3073() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2998(core.List<core.String> o) { +checkUnnamed3073(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1849,7 +1864,7 @@ var o = new api.SearchAnnotationsRequest(); buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - o.annotationSetIds = buildUnnamed2998(); + o.annotationSetIds = buildUnnamed3073(); o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -1864,7 +1879,7 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - checkUnnamed2998(o.annotationSetIds); + checkUnnamed3073(o.annotationSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -1875,14 +1890,14 @@ buildCounterSearchAnnotationsRequest--; } -buildUnnamed2999() { +buildUnnamed3074() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2999(core.List<api.Annotation> o) { +checkUnnamed3074(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -1893,7 +1908,7 @@ var o = new api.SearchAnnotationsResponse(); buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - o.annotations = buildUnnamed2999(); + o.annotations = buildUnnamed3074(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationsResponse--; @@ -1903,20 +1918,20 @@ checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - checkUnnamed2999(o.annotations); + checkUnnamed3074(o.annotations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationsResponse--; } -buildUnnamed3000() { +buildUnnamed3075() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3000(core.List<core.String> o) { +checkUnnamed3075(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1930,7 +1945,7 @@ o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.variantSetIds = buildUnnamed3000(); + o.variantSetIds = buildUnnamed3075(); } buildCounterSearchCallSetsRequest--; return o; @@ -1942,19 +1957,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3000(o.variantSetIds); + checkUnnamed3075(o.variantSetIds); } buildCounterSearchCallSetsRequest--; } -buildUnnamed3001() { +buildUnnamed3076() { var o = new core.List<api.CallSet>(); o.add(buildCallSet()); o.add(buildCallSet()); return o; } -checkUnnamed3001(core.List<api.CallSet> o) { +checkUnnamed3076(core.List<api.CallSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCallSet(o[0]); checkCallSet(o[1]); @@ -1965,7 +1980,7 @@ var o = new api.SearchCallSetsResponse(); buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - o.callSets = buildUnnamed3001(); + o.callSets = buildUnnamed3076(); o.nextPageToken = "foo"; } buildCounterSearchCallSetsResponse--; @@ -1975,20 +1990,20 @@ checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - checkUnnamed3001(o.callSets); + checkUnnamed3076(o.callSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchCallSetsResponse--; } -buildUnnamed3002() { +buildUnnamed3077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3002(core.List<core.String> o) { +checkUnnamed3077(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1999,7 +2014,7 @@ var o = new api.SearchReadGroupSetsRequest(); buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - o.datasetIds = buildUnnamed3002(); + o.datasetIds = buildUnnamed3077(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2011,7 +2026,7 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - checkUnnamed3002(o.datasetIds); + checkUnnamed3077(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2019,14 +2034,14 @@ buildCounterSearchReadGroupSetsRequest--; } -buildUnnamed3003() { +buildUnnamed3078() { var o = new core.List<api.ReadGroupSet>(); o.add(buildReadGroupSet()); o.add(buildReadGroupSet()); return o; } -checkUnnamed3003(core.List<api.ReadGroupSet> o) { +checkUnnamed3078(core.List<api.ReadGroupSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupSet(o[0]); checkReadGroupSet(o[1]); @@ -2038,7 +2053,7 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { o.nextPageToken = "foo"; - o.readGroupSets = buildUnnamed3003(); + o.readGroupSets = buildUnnamed3078(); } buildCounterSearchReadGroupSetsResponse--; return o; @@ -2048,32 +2063,32 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3003(o.readGroupSets); + checkUnnamed3078(o.readGroupSets); } buildCounterSearchReadGroupSetsResponse--; } -buildUnnamed3004() { +buildUnnamed3079() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3004(core.List<core.String> o) { +checkUnnamed3079(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3005() { +buildUnnamed3080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3005(core.List<core.String> o) { +checkUnnamed3080(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2087,8 +2102,8 @@ o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.readGroupIds = buildUnnamed3004(); - o.readGroupSetIds = buildUnnamed3005(); + o.readGroupIds = buildUnnamed3079(); + o.readGroupSetIds = buildUnnamed3080(); o.referenceName = "foo"; o.start = "foo"; } @@ -2102,22 +2117,22 @@ unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3004(o.readGroupIds); - checkUnnamed3005(o.readGroupSetIds); + checkUnnamed3079(o.readGroupIds); + checkUnnamed3080(o.readGroupSetIds); unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); } buildCounterSearchReadsRequest--; } -buildUnnamed3006() { +buildUnnamed3081() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed3006(core.List<api.Read> o) { +checkUnnamed3081(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2128,7 +2143,7 @@ var o = new api.SearchReadsResponse(); buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - o.alignments = buildUnnamed3006(); + o.alignments = buildUnnamed3081(); o.nextPageToken = "foo"; } buildCounterSearchReadsResponse--; @@ -2138,33 +2153,33 @@ checkSearchReadsResponse(api.SearchReadsResponse o) { buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - checkUnnamed3006(o.alignments); + checkUnnamed3081(o.alignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchReadsResponse--; } -buildUnnamed3007() { +buildUnnamed3082() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3007(core.List<core.String> o) { +checkUnnamed3082(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3008() { +buildUnnamed3083() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3008(core.List<core.String> o) { +checkUnnamed3083(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2175,9 +2190,9 @@ var o = new api.SearchReferenceSetsRequest(); buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - o.accessions = buildUnnamed3007(); + o.accessions = buildUnnamed3082(); o.assemblyId = "foo"; - o.md5checksums = buildUnnamed3008(); + o.md5checksums = buildUnnamed3083(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2188,23 +2203,23 @@ checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - checkUnnamed3007(o.accessions); + checkUnnamed3082(o.accessions); unittest.expect(o.assemblyId, unittest.equals('foo')); - checkUnnamed3008(o.md5checksums); + checkUnnamed3083(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchReferenceSetsRequest--; } -buildUnnamed3009() { +buildUnnamed3084() { var o = new core.List<api.ReferenceSet>(); o.add(buildReferenceSet()); o.add(buildReferenceSet()); return o; } -checkUnnamed3009(core.List<api.ReferenceSet> o) { +checkUnnamed3084(core.List<api.ReferenceSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceSet(o[0]); checkReferenceSet(o[1]); @@ -2216,7 +2231,7 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { o.nextPageToken = "foo"; - o.referenceSets = buildUnnamed3009(); + o.referenceSets = buildUnnamed3084(); } buildCounterSearchReferenceSetsResponse--; return o; @@ -2226,32 +2241,32 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3009(o.referenceSets); + checkUnnamed3084(o.referenceSets); } buildCounterSearchReferenceSetsResponse--; } -buildUnnamed3010() { +buildUnnamed3085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3010(core.List<core.String> o) { +checkUnnamed3085(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3011() { +buildUnnamed3086() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3011(core.List<core.String> o) { +checkUnnamed3086(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2262,8 +2277,8 @@ var o = new api.SearchReferencesRequest(); buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - o.accessions = buildUnnamed3010(); - o.md5checksums = buildUnnamed3011(); + o.accessions = buildUnnamed3085(); + o.md5checksums = buildUnnamed3086(); o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; @@ -2275,8 +2290,8 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) { buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - checkUnnamed3010(o.accessions); - checkUnnamed3011(o.md5checksums); + checkUnnamed3085(o.accessions); + checkUnnamed3086(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); @@ -2284,14 +2299,14 @@ buildCounterSearchReferencesRequest--; } -buildUnnamed3012() { +buildUnnamed3087() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed3012(core.List<api.Reference> o) { +checkUnnamed3087(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -2303,7 +2318,7 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { o.nextPageToken = "foo"; - o.references = buildUnnamed3012(); + o.references = buildUnnamed3087(); } buildCounterSearchReferencesResponse--; return o; @@ -2313,19 +2328,19 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3012(o.references); + checkUnnamed3087(o.references); } buildCounterSearchReferencesResponse--; } -buildUnnamed3013() { +buildUnnamed3088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3013(core.List<core.String> o) { +checkUnnamed3088(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2336,7 +2351,7 @@ var o = new api.SearchVariantSetsRequest(); buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - o.datasetIds = buildUnnamed3013(); + o.datasetIds = buildUnnamed3088(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2347,21 +2362,21 @@ checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - checkUnnamed3013(o.datasetIds); + checkUnnamed3088(o.datasetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchVariantSetsRequest--; } -buildUnnamed3014() { +buildUnnamed3089() { var o = new core.List<api.VariantSet>(); o.add(buildVariantSet()); o.add(buildVariantSet()); return o; } -checkUnnamed3014(core.List<api.VariantSet> o) { +checkUnnamed3089(core.List<api.VariantSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSet(o[0]); checkVariantSet(o[1]); @@ -2373,7 +2388,7 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { o.nextPageToken = "foo"; - o.variantSets = buildUnnamed3014(); + o.variantSets = buildUnnamed3089(); } buildCounterSearchVariantSetsResponse--; return o; @@ -2383,32 +2398,32 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3014(o.variantSets); + checkUnnamed3089(o.variantSets); } buildCounterSearchVariantSetsResponse--; } -buildUnnamed3015() { +buildUnnamed3090() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3015(core.List<core.String> o) { +checkUnnamed3090(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3016() { +buildUnnamed3091() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3016(core.List<core.String> o) { +checkUnnamed3091(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2419,7 +2434,7 @@ var o = new api.SearchVariantsRequest(); buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - o.callSetIds = buildUnnamed3015(); + o.callSetIds = buildUnnamed3090(); o.end = "foo"; o.maxCalls = 42; o.pageSize = 42; @@ -2427,7 +2442,7 @@ o.referenceName = "foo"; o.start = "foo"; o.variantName = "foo"; - o.variantSetIds = buildUnnamed3016(); + o.variantSetIds = buildUnnamed3091(); } buildCounterSearchVariantsRequest--; return o; @@ -2436,7 +2451,7 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) { buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - checkUnnamed3015(o.callSetIds); + checkUnnamed3090(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.maxCalls, unittest.equals(42)); unittest.expect(o.pageSize, unittest.equals(42)); @@ -2444,19 +2459,19 @@ unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); unittest.expect(o.variantName, unittest.equals('foo')); - checkUnnamed3016(o.variantSetIds); + checkUnnamed3091(o.variantSetIds); } buildCounterSearchVariantsRequest--; } -buildUnnamed3017() { +buildUnnamed3092() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3017(core.List<api.Variant> o) { +checkUnnamed3092(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2468,7 +2483,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { o.nextPageToken = "foo"; - o.variants = buildUnnamed3017(); + o.variants = buildUnnamed3092(); } buildCounterSearchVariantsResponse--; return o; @@ -2478,7 +2493,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3017(o.variants); + checkUnnamed3092(o.variants); } buildCounterSearchVariantsResponse--; } @@ -2502,30 +2517,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3018() { +buildUnnamed3093() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3018(core.Map<core.String, core.Object> o) { +checkUnnamed3093(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string"], unittest.equals('foo')); var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string"], unittest.equals('foo')); } -buildUnnamed3019() { +buildUnnamed3094() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3018()); - o.add(buildUnnamed3018()); + o.add(buildUnnamed3093()); + o.add(buildUnnamed3093()); return o; } -checkUnnamed3019(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3094(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3018(o[0]); - checkUnnamed3018(o[1]); + checkUnnamed3093(o[0]); + checkUnnamed3093(o[1]); } core.int buildCounterStatus = 0; @@ -2534,7 +2549,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3019(); + o.details = buildUnnamed3094(); o.message = "foo"; } buildCounterStatus--; @@ -2545,7 +2560,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3019(o.details); + checkUnnamed3094(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2582,14 +2597,14 @@ buildCounterStreamReadsRequest--; } -buildUnnamed3020() { +buildUnnamed3095() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed3020(core.List<api.Read> o) { +checkUnnamed3095(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2600,7 +2615,7 @@ var o = new api.StreamReadsResponse(); buildCounterStreamReadsResponse++; if (buildCounterStreamReadsResponse < 3) { - o.alignments = buildUnnamed3020(); + o.alignments = buildUnnamed3095(); } buildCounterStreamReadsResponse--; return o; @@ -2609,19 +2624,19 @@ checkStreamReadsResponse(api.StreamReadsResponse o) { buildCounterStreamReadsResponse++; if (buildCounterStreamReadsResponse < 3) { - checkUnnamed3020(o.alignments); + checkUnnamed3095(o.alignments); } buildCounterStreamReadsResponse--; } -buildUnnamed3021() { +buildUnnamed3096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3021(core.List<core.String> o) { +checkUnnamed3096(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2632,7 +2647,7 @@ var o = new api.StreamVariantsRequest(); buildCounterStreamVariantsRequest++; if (buildCounterStreamVariantsRequest < 3) { - o.callSetIds = buildUnnamed3021(); + o.callSetIds = buildUnnamed3096(); o.end = "foo"; o.projectId = "foo"; o.referenceName = "foo"; @@ -2646,7 +2661,7 @@ checkStreamVariantsRequest(api.StreamVariantsRequest o) { buildCounterStreamVariantsRequest++; if (buildCounterStreamVariantsRequest < 3) { - checkUnnamed3021(o.callSetIds); + checkUnnamed3096(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2656,14 +2671,14 @@ buildCounterStreamVariantsRequest--; } -buildUnnamed3022() { +buildUnnamed3097() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3022(core.List<api.Variant> o) { +checkUnnamed3097(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2674,7 +2689,7 @@ var o = new api.StreamVariantsResponse(); buildCounterStreamVariantsResponse++; if (buildCounterStreamVariantsResponse < 3) { - o.variants = buildUnnamed3022(); + o.variants = buildUnnamed3097(); } buildCounterStreamVariantsResponse--; return o; @@ -2683,19 +2698,19 @@ checkStreamVariantsResponse(api.StreamVariantsResponse o) { buildCounterStreamVariantsResponse++; if (buildCounterStreamVariantsResponse < 3) { - checkUnnamed3022(o.variants); + checkUnnamed3097(o.variants); } buildCounterStreamVariantsResponse--; } -buildUnnamed3023() { +buildUnnamed3098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3023(core.List<core.String> o) { +checkUnnamed3098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2706,7 +2721,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3023(); + o.permissions = buildUnnamed3098(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2715,19 +2730,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3023(o.permissions); + checkUnnamed3098(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3024() { +buildUnnamed3099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3024(core.List<core.String> o) { +checkUnnamed3099(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2738,7 +2753,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3024(); + o.permissions = buildUnnamed3099(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2747,19 +2762,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3024(o.permissions); + checkUnnamed3099(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed3025() { +buildUnnamed3100() { var o = new core.List<api.Exon>(); o.add(buildExon()); o.add(buildExon()); return o; } -checkUnnamed3025(core.List<api.Exon> o) { +checkUnnamed3100(core.List<api.Exon> o) { unittest.expect(o, unittest.hasLength(2)); checkExon(o[0]); checkExon(o[1]); @@ -2771,7 +2786,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { o.codingSequence = buildCodingSequence(); - o.exons = buildUnnamed3025(); + o.exons = buildUnnamed3100(); o.geneId = "foo"; } buildCounterTranscript--; @@ -2782,7 +2797,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { checkCodingSequence(o.codingSequence); - checkUnnamed3025(o.exons); + checkUnnamed3100(o.exons); unittest.expect(o.geneId, unittest.equals('foo')); } buildCounterTranscript--; @@ -2805,79 +2820,79 @@ buildCounterUndeleteDatasetRequest--; } -buildUnnamed3026() { +buildUnnamed3101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3026(core.List<core.String> o) { +checkUnnamed3101(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3027() { +buildUnnamed3102() { var o = new core.List<api.VariantCall>(); o.add(buildVariantCall()); o.add(buildVariantCall()); return o; } -checkUnnamed3027(core.List<api.VariantCall> o) { +checkUnnamed3102(core.List<api.VariantCall> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantCall(o[0]); checkVariantCall(o[1]); } -buildUnnamed3028() { +buildUnnamed3103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3028(core.List<core.String> o) { +checkUnnamed3103(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3029() { +buildUnnamed3104() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3029(core.List<core.Object> o) { +checkUnnamed3104(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo')); var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo')); } -buildUnnamed3030() { +buildUnnamed3105() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3029(); - o["y"] = buildUnnamed3029(); + o["x"] = buildUnnamed3104(); + o["y"] = buildUnnamed3104(); return o; } -checkUnnamed3030(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3105(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3029(o["x"]); - checkUnnamed3029(o["y"]); + checkUnnamed3104(o["x"]); + checkUnnamed3104(o["y"]); } -buildUnnamed3031() { +buildUnnamed3106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3031(core.List<core.String> o) { +checkUnnamed3106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2888,14 +2903,14 @@ var o = new api.Variant(); buildCounterVariant++; if (buildCounterVariant < 3) { - o.alternateBases = buildUnnamed3026(); - o.calls = buildUnnamed3027(); + o.alternateBases = buildUnnamed3101(); + o.calls = buildUnnamed3102(); o.created = "foo"; o.end = "foo"; - o.filter = buildUnnamed3028(); + o.filter = buildUnnamed3103(); o.id = "foo"; - o.info = buildUnnamed3030(); - o.names = buildUnnamed3031(); + o.info = buildUnnamed3105(); + o.names = buildUnnamed3106(); o.quality = 42.0; o.referenceBases = "foo"; o.referenceName = "foo"; @@ -2909,14 +2924,14 @@ checkVariant(api.Variant o) { buildCounterVariant++; if (buildCounterVariant < 3) { - checkUnnamed3026(o.alternateBases); - checkUnnamed3027(o.calls); + checkUnnamed3101(o.alternateBases); + checkUnnamed3102(o.calls); unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); - checkUnnamed3028(o.filter); + checkUnnamed3103(o.filter); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3030(o.info); - checkUnnamed3031(o.names); + checkUnnamed3105(o.info); + checkUnnamed3106(o.names); unittest.expect(o.quality, unittest.equals(42.0)); unittest.expect(o.referenceBases, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2926,27 +2941,27 @@ buildCounterVariant--; } -buildUnnamed3032() { +buildUnnamed3107() { var o = new core.List<api.ClinicalCondition>(); o.add(buildClinicalCondition()); o.add(buildClinicalCondition()); return o; } -checkUnnamed3032(core.List<api.ClinicalCondition> o) { +checkUnnamed3107(core.List<api.ClinicalCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkClinicalCondition(o[0]); checkClinicalCondition(o[1]); } -buildUnnamed3033() { +buildUnnamed3108() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3033(core.List<core.String> o) { +checkUnnamed3108(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2959,10 +2974,10 @@ if (buildCounterVariantAnnotation < 3) { o.alternateBases = "foo"; o.clinicalSignificance = "foo"; - o.conditions = buildUnnamed3032(); + o.conditions = buildUnnamed3107(); o.effect = "foo"; o.geneId = "foo"; - o.transcriptIds = buildUnnamed3033(); + o.transcriptIds = buildUnnamed3108(); o.type = "foo"; } buildCounterVariantAnnotation--; @@ -2974,65 +2989,65 @@ if (buildCounterVariantAnnotation < 3) { unittest.expect(o.alternateBases, unittest.equals('foo')); unittest.expect(o.clinicalSignificance, unittest.equals('foo')); - checkUnnamed3032(o.conditions); + checkUnnamed3107(o.conditions); unittest.expect(o.effect, unittest.equals('foo')); unittest.expect(o.geneId, unittest.equals('foo')); - checkUnnamed3033(o.transcriptIds); + checkUnnamed3108(o.transcriptIds); unittest.expect(o.type, unittest.equals('foo')); } buildCounterVariantAnnotation--; } -buildUnnamed3034() { +buildUnnamed3109() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3034(core.List<core.int> o) { +checkUnnamed3109(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed3035() { +buildUnnamed3110() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3035(core.List<core.double> o) { +checkUnnamed3110(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3036() { +buildUnnamed3111() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3036(core.List<core.Object> o) { +checkUnnamed3111(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o[1]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); } -buildUnnamed3037() { +buildUnnamed3112() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3036(); - o["y"] = buildUnnamed3036(); + o["x"] = buildUnnamed3111(); + o["y"] = buildUnnamed3111(); return o; } -checkUnnamed3037(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3112(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3036(o["x"]); - checkUnnamed3036(o["y"]); + checkUnnamed3111(o["x"]); + checkUnnamed3111(o["y"]); } core.int buildCounterVariantCall = 0; @@ -3042,9 +3057,9 @@ if (buildCounterVariantCall < 3) { o.callSetId = "foo"; o.callSetName = "foo"; - o.genotype = buildUnnamed3034(); - o.genotypeLikelihood = buildUnnamed3035(); - o.info = buildUnnamed3037(); + o.genotype = buildUnnamed3109(); + o.genotypeLikelihood = buildUnnamed3110(); + o.info = buildUnnamed3112(); o.phaseset = "foo"; } buildCounterVariantCall--; @@ -3056,35 +3071,35 @@ if (buildCounterVariantCall < 3) { unittest.expect(o.callSetId, unittest.equals('foo')); unittest.expect(o.callSetName, unittest.equals('foo')); - checkUnnamed3034(o.genotype); - checkUnnamed3035(o.genotypeLikelihood); - checkUnnamed3037(o.info); + checkUnnamed3109(o.genotype); + checkUnnamed3110(o.genotypeLikelihood); + checkUnnamed3112(o.info); unittest.expect(o.phaseset, unittest.equals('foo')); } buildCounterVariantCall--; } -buildUnnamed3038() { +buildUnnamed3113() { var o = new core.List<api.VariantSetMetadata>(); o.add(buildVariantSetMetadata()); o.add(buildVariantSetMetadata()); return o; } -checkUnnamed3038(core.List<api.VariantSetMetadata> o) { +checkUnnamed3113(core.List<api.VariantSetMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSetMetadata(o[0]); checkVariantSetMetadata(o[1]); } -buildUnnamed3039() { +buildUnnamed3114() { var o = new core.List<api.ReferenceBound>(); o.add(buildReferenceBound()); o.add(buildReferenceBound()); return o; } -checkUnnamed3039(core.List<api.ReferenceBound> o) { +checkUnnamed3114(core.List<api.ReferenceBound> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceBound(o[0]); checkReferenceBound(o[1]); @@ -3098,9 +3113,9 @@ o.datasetId = "foo"; o.description = "foo"; o.id = "foo"; - o.metadata = buildUnnamed3038(); + o.metadata = buildUnnamed3113(); o.name = "foo"; - o.referenceBounds = buildUnnamed3039(); + o.referenceBounds = buildUnnamed3114(); o.referenceSetId = "foo"; } buildCounterVariantSet--; @@ -3113,38 +3128,38 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3038(o.metadata); + checkUnnamed3113(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3039(o.referenceBounds); + checkUnnamed3114(o.referenceBounds); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterVariantSet--; } -buildUnnamed3040() { +buildUnnamed3115() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3040(core.List<core.Object> o) { +checkUnnamed3115(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o[0]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o[1]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed3041() { +buildUnnamed3116() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3040(); - o["y"] = buildUnnamed3040(); + o["x"] = buildUnnamed3115(); + o["y"] = buildUnnamed3115(); return o; } -checkUnnamed3041(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3116(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3040(o["x"]); - checkUnnamed3040(o["y"]); + checkUnnamed3115(o["x"]); + checkUnnamed3115(o["y"]); } core.int buildCounterVariantSetMetadata = 0; @@ -3154,7 +3169,7 @@ if (buildCounterVariantSetMetadata < 3) { o.description = "foo"; o.id = "foo"; - o.info = buildUnnamed3041(); + o.info = buildUnnamed3116(); o.key = "foo"; o.number = "foo"; o.type = "foo"; @@ -3169,7 +3184,7 @@ if (buildCounterVariantSetMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3041(o.info); + checkUnnamed3116(o.info); unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.number, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo'));
diff --git a/generated/googleapis/test/iam/v1_test.dart b/generated/googleapis/test/iam/v1_test.dart index 6db81ef..7529b01 100644 --- a/generated/googleapis/test/iam/v1_test.dart +++ b/generated/googleapis/test/iam/v1_test.dart
@@ -51,14 +51,33 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1301() { +core.int buildCounterAuditData = 0; +buildAuditData() { + var o = new api.AuditData(); + buildCounterAuditData++; + if (buildCounterAuditData < 3) { + o.policyDelta = buildPolicyDelta(); + } + buildCounterAuditData--; + return o; +} + +checkAuditData(api.AuditData o) { + buildCounterAuditData++; + if (buildCounterAuditData < 3) { + checkPolicyDelta(o.policyDelta); + } + buildCounterAuditData--; +} + +buildUnnamed1327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1301(core.List<core.String> o) { +checkUnnamed1327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +88,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1301(); + o.members = buildUnnamed1327(); o.role = "foo"; } buildCounterBinding--; @@ -79,90 +98,33 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1301(o.members); + checkUnnamed1327(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -core.int buildCounterCloudAuditOptions = 0; -buildCloudAuditOptions() { - var o = new api.CloudAuditOptions(); - buildCounterCloudAuditOptions++; - if (buildCounterCloudAuditOptions < 3) { +core.int buildCounterBindingDelta = 0; +buildBindingDelta() { + var o = new api.BindingDelta(); + buildCounterBindingDelta++; + if (buildCounterBindingDelta < 3) { + o.action = "foo"; + o.member = "foo"; + o.role = "foo"; } - buildCounterCloudAuditOptions--; + buildCounterBindingDelta--; return o; } -checkCloudAuditOptions(api.CloudAuditOptions o) { - buildCounterCloudAuditOptions++; - if (buildCounterCloudAuditOptions < 3) { +checkBindingDelta(api.BindingDelta o) { + buildCounterBindingDelta++; + if (buildCounterBindingDelta < 3) { + unittest.expect(o.action, unittest.equals('foo')); + unittest.expect(o.member, unittest.equals('foo')); + unittest.expect(o.role, unittest.equals('foo')); } - buildCounterCloudAuditOptions--; -} - -buildUnnamed1302() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1302(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCondition = 0; -buildCondition() { - var o = new api.Condition(); - buildCounterCondition++; - if (buildCounterCondition < 3) { - o.iam = "foo"; - o.op = "foo"; - o.svc = "foo"; - o.sys = "foo"; - o.value = "foo"; - o.values = buildUnnamed1302(); - } - buildCounterCondition--; - return o; -} - -checkCondition(api.Condition o) { - buildCounterCondition++; - if (buildCounterCondition < 3) { - unittest.expect(o.iam, unittest.equals('foo')); - unittest.expect(o.op, unittest.equals('foo')); - unittest.expect(o.svc, unittest.equals('foo')); - unittest.expect(o.sys, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1302(o.values); - } - buildCounterCondition--; -} - -core.int buildCounterCounterOptions = 0; -buildCounterOptions() { - var o = new api.CounterOptions(); - buildCounterCounterOptions++; - if (buildCounterCounterOptions < 3) { - o.field = "foo"; - o.metric = "foo"; - } - buildCounterCounterOptions--; - return o; -} - -checkCounterOptions(api.CounterOptions o) { - buildCounterCounterOptions++; - if (buildCounterCounterOptions < 3) { - unittest.expect(o.field, unittest.equals('foo')); - unittest.expect(o.metric, unittest.equals('foo')); - } - buildCounterCounterOptions--; + buildCounterBindingDelta--; } core.int buildCounterCreateServiceAccountKeyRequest = 0; @@ -170,6 +132,7 @@ var o = new api.CreateServiceAccountKeyRequest(); buildCounterCreateServiceAccountKeyRequest++; if (buildCounterCreateServiceAccountKeyRequest < 3) { + o.keyAlgorithm = "foo"; o.privateKeyType = "foo"; } buildCounterCreateServiceAccountKeyRequest--; @@ -179,6 +142,7 @@ checkCreateServiceAccountKeyRequest(api.CreateServiceAccountKeyRequest o) { buildCounterCreateServiceAccountKeyRequest++; if (buildCounterCreateServiceAccountKeyRequest < 3) { + unittest.expect(o.keyAlgorithm, unittest.equals('foo')); unittest.expect(o.privateKeyType, unittest.equals('foo')); } buildCounterCreateServiceAccountKeyRequest--; @@ -205,23 +169,6 @@ buildCounterCreateServiceAccountRequest--; } -core.int buildCounterDataAccessOptions = 0; -buildDataAccessOptions() { - var o = new api.DataAccessOptions(); - buildCounterDataAccessOptions++; - if (buildCounterDataAccessOptions < 3) { - } - buildCounterDataAccessOptions--; - return o; -} - -checkDataAccessOptions(api.DataAccessOptions o) { - buildCounterDataAccessOptions++; - if (buildCounterDataAccessOptions < 3) { - } - buildCounterDataAccessOptions--; -} - core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -239,14 +186,14 @@ buildCounterEmpty--; } -buildUnnamed1303() { +buildUnnamed1328() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed1303(core.List<api.ServiceAccountKey> o) { +checkUnnamed1328(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -257,7 +204,7 @@ var o = new api.ListServiceAccountKeysResponse(); buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - o.keys = buildUnnamed1303(); + o.keys = buildUnnamed1328(); } buildCounterListServiceAccountKeysResponse--; return o; @@ -266,19 +213,19 @@ checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - checkUnnamed1303(o.keys); + checkUnnamed1328(o.keys); } buildCounterListServiceAccountKeysResponse--; } -buildUnnamed1304() { +buildUnnamed1329() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed1304(core.List<api.ServiceAccount> o) { +checkUnnamed1329(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -289,7 +236,7 @@ var o = new api.ListServiceAccountsResponse(); buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - o.accounts = buildUnnamed1304(); + o.accounts = buildUnnamed1329(); o.nextPageToken = "foo"; } buildCounterListServiceAccountsResponse--; @@ -299,69 +246,32 @@ checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - checkUnnamed1304(o.accounts); + checkUnnamed1329(o.accounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListServiceAccountsResponse--; } -core.int buildCounterLogConfig = 0; -buildLogConfig() { - var o = new api.LogConfig(); - buildCounterLogConfig++; - if (buildCounterLogConfig < 3) { - o.cloudAudit = buildCloudAuditOptions(); - o.counter = buildCounterOptions(); - o.dataAccess = buildDataAccessOptions(); - } - buildCounterLogConfig--; - return o; -} - -checkLogConfig(api.LogConfig o) { - buildCounterLogConfig++; - if (buildCounterLogConfig < 3) { - checkCloudAuditOptions(o.cloudAudit); - checkCounterOptions(o.counter); - checkDataAccessOptions(o.dataAccess); - } - buildCounterLogConfig--; -} - -buildUnnamed1305() { +buildUnnamed1330() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1305(core.List<api.Binding> o) { +checkUnnamed1330(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1306() { - var o = new core.List<api.Rule>(); - o.add(buildRule()); - o.add(buildRule()); - return o; -} - -checkUnnamed1306(core.List<api.Rule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRule(o[0]); - checkRule(o[1]); -} - core.int buildCounterPolicy = 0; buildPolicy() { var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1305(); + o.bindings = buildUnnamed1330(); o.etag = "foo"; - o.rules = buildUnnamed1306(); o.version = 42; } buildCounterPolicy--; @@ -371,108 +281,117 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1305(o.bindings); + checkUnnamed1330(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1306(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1307() { - var o = new core.List<api.Condition>(); - o.add(buildCondition()); - o.add(buildCondition()); +buildUnnamed1331() { + var o = new core.List<api.BindingDelta>(); + o.add(buildBindingDelta()); + o.add(buildBindingDelta()); return o; } -checkUnnamed1307(core.List<api.Condition> o) { +checkUnnamed1331(core.List<api.BindingDelta> o) { unittest.expect(o, unittest.hasLength(2)); - checkCondition(o[0]); - checkCondition(o[1]); + checkBindingDelta(o[0]); + checkBindingDelta(o[1]); } -buildUnnamed1308() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +core.int buildCounterPolicyDelta = 0; +buildPolicyDelta() { + var o = new api.PolicyDelta(); + buildCounterPolicyDelta++; + if (buildCounterPolicyDelta < 3) { + o.bindingDeltas = buildUnnamed1331(); + } + buildCounterPolicyDelta--; return o; } -checkUnnamed1308(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +checkPolicyDelta(api.PolicyDelta o) { + buildCounterPolicyDelta++; + if (buildCounterPolicyDelta < 3) { + checkUnnamed1331(o.bindingDeltas); + } + buildCounterPolicyDelta--; } -buildUnnamed1309() { - var o = new core.List<api.LogConfig>(); - o.add(buildLogConfig()); - o.add(buildLogConfig()); +core.int buildCounterQueryGrantableRolesRequest = 0; +buildQueryGrantableRolesRequest() { + var o = new api.QueryGrantableRolesRequest(); + buildCounterQueryGrantableRolesRequest++; + if (buildCounterQueryGrantableRolesRequest < 3) { + o.fullResourceName = "foo"; + } + buildCounterQueryGrantableRolesRequest--; return o; } -checkUnnamed1309(core.List<api.LogConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLogConfig(o[0]); - checkLogConfig(o[1]); +checkQueryGrantableRolesRequest(api.QueryGrantableRolesRequest o) { + buildCounterQueryGrantableRolesRequest++; + if (buildCounterQueryGrantableRolesRequest < 3) { + unittest.expect(o.fullResourceName, unittest.equals('foo')); + } + buildCounterQueryGrantableRolesRequest--; } -buildUnnamed1310() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +buildUnnamed1332() { + var o = new core.List<api.Role>(); + o.add(buildRole()); + o.add(buildRole()); return o; } -checkUnnamed1310(core.List<core.String> o) { +checkUnnamed1332(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkRole(o[0]); + checkRole(o[1]); } -buildUnnamed1311() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +core.int buildCounterQueryGrantableRolesResponse = 0; +buildQueryGrantableRolesResponse() { + var o = new api.QueryGrantableRolesResponse(); + buildCounterQueryGrantableRolesResponse++; + if (buildCounterQueryGrantableRolesResponse < 3) { + o.roles = buildUnnamed1332(); + } + buildCounterQueryGrantableRolesResponse--; return o; } -checkUnnamed1311(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +checkQueryGrantableRolesResponse(api.QueryGrantableRolesResponse o) { + buildCounterQueryGrantableRolesResponse++; + if (buildCounterQueryGrantableRolesResponse < 3) { + checkUnnamed1332(o.roles); + } + buildCounterQueryGrantableRolesResponse--; } -core.int buildCounterRule = 0; -buildRule() { - var o = new api.Rule(); - buildCounterRule++; - if (buildCounterRule < 3) { - o.action = "foo"; - o.conditions = buildUnnamed1307(); +core.int buildCounterRole = 0; +buildRole() { + var o = new api.Role(); + buildCounterRole++; + if (buildCounterRole < 3) { o.description = "foo"; - o.in_ = buildUnnamed1308(); - o.logConfig = buildUnnamed1309(); - o.notIn = buildUnnamed1310(); - o.permissions = buildUnnamed1311(); + o.name = "foo"; + o.title = "foo"; } - buildCounterRule--; + buildCounterRole--; return o; } -checkRule(api.Rule o) { - buildCounterRule++; - if (buildCounterRule < 3) { - unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1307(o.conditions); +checkRole(api.Role o) { + buildCounterRole++; + if (buildCounterRole < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1308(o.in_); - checkUnnamed1309(o.logConfig); - checkUnnamed1310(o.notIn); - checkUnnamed1311(o.permissions); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); } - buildCounterRule--; + buildCounterRole--; } core.int buildCounterServiceAccount = 0; @@ -511,9 +430,11 @@ var o = new api.ServiceAccountKey(); buildCounterServiceAccountKey++; if (buildCounterServiceAccountKey < 3) { + o.keyAlgorithm = "foo"; o.name = "foo"; o.privateKeyData = "foo"; o.privateKeyType = "foo"; + o.publicKeyData = "foo"; o.validAfterTime = "foo"; o.validBeforeTime = "foo"; } @@ -524,9 +445,11 @@ checkServiceAccountKey(api.ServiceAccountKey o) { buildCounterServiceAccountKey++; if (buildCounterServiceAccountKey < 3) { + unittest.expect(o.keyAlgorithm, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.privateKeyData, unittest.equals('foo')); unittest.expect(o.privateKeyType, unittest.equals('foo')); + unittest.expect(o.publicKeyData, unittest.equals('foo')); unittest.expect(o.validAfterTime, unittest.equals('foo')); unittest.expect(o.validBeforeTime, unittest.equals('foo')); } @@ -592,14 +515,14 @@ buildCounterSignBlobResponse--; } -buildUnnamed1312() { +buildUnnamed1333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1312(core.List<core.String> o) { +checkUnnamed1333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -610,7 +533,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1312(); + o.permissions = buildUnnamed1333(); } buildCounterTestIamPermissionsRequest--; return o; @@ -619,19 +542,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1312(o.permissions); + checkUnnamed1333(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1313() { +buildUnnamed1334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1313(core.List<core.String> o) { +checkUnnamed1334(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -642,7 +565,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1313(); + o.permissions = buildUnnamed1334(); } buildCounterTestIamPermissionsResponse--; return o; @@ -651,19 +574,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1313(o.permissions); + checkUnnamed1334(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1314() { +buildUnnamed1335() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1314(core.List<core.String> o) { +checkUnnamed1335(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -671,6 +594,15 @@ main() { + unittest.group("obj-schema-AuditData", () { + unittest.test("to-json--from-json", () { + var o = buildAuditData(); + var od = new api.AuditData.fromJson(o.toJson()); + checkAuditData(od); + }); + }); + + unittest.group("obj-schema-Binding", () { unittest.test("to-json--from-json", () { var o = buildBinding(); @@ -680,29 +612,11 @@ }); - unittest.group("obj-schema-CloudAuditOptions", () { + unittest.group("obj-schema-BindingDelta", () { unittest.test("to-json--from-json", () { - var o = buildCloudAuditOptions(); - var od = new api.CloudAuditOptions.fromJson(o.toJson()); - checkCloudAuditOptions(od); - }); - }); - - - unittest.group("obj-schema-Condition", () { - unittest.test("to-json--from-json", () { - var o = buildCondition(); - var od = new api.Condition.fromJson(o.toJson()); - checkCondition(od); - }); - }); - - - unittest.group("obj-schema-CounterOptions", () { - unittest.test("to-json--from-json", () { - var o = buildCounterOptions(); - var od = new api.CounterOptions.fromJson(o.toJson()); - checkCounterOptions(od); + var o = buildBindingDelta(); + var od = new api.BindingDelta.fromJson(o.toJson()); + checkBindingDelta(od); }); }); @@ -725,15 +639,6 @@ }); - unittest.group("obj-schema-DataAccessOptions", () { - unittest.test("to-json--from-json", () { - var o = buildDataAccessOptions(); - var od = new api.DataAccessOptions.fromJson(o.toJson()); - checkDataAccessOptions(od); - }); - }); - - unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -761,15 +666,6 @@ }); - unittest.group("obj-schema-LogConfig", () { - unittest.test("to-json--from-json", () { - var o = buildLogConfig(); - var od = new api.LogConfig.fromJson(o.toJson()); - checkLogConfig(od); - }); - }); - - unittest.group("obj-schema-Policy", () { unittest.test("to-json--from-json", () { var o = buildPolicy(); @@ -779,11 +675,38 @@ }); - unittest.group("obj-schema-Rule", () { + unittest.group("obj-schema-PolicyDelta", () { unittest.test("to-json--from-json", () { - var o = buildRule(); - var od = new api.Rule.fromJson(o.toJson()); - checkRule(od); + var o = buildPolicyDelta(); + var od = new api.PolicyDelta.fromJson(o.toJson()); + checkPolicyDelta(od); + }); + }); + + + unittest.group("obj-schema-QueryGrantableRolesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildQueryGrantableRolesRequest(); + var od = new api.QueryGrantableRolesRequest.fromJson(o.toJson()); + checkQueryGrantableRolesRequest(od); + }); + }); + + + unittest.group("obj-schema-QueryGrantableRolesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildQueryGrantableRolesResponse(); + var od = new api.QueryGrantableRolesResponse.fromJson(o.toJson()); + checkQueryGrantableRolesResponse(od); + }); + }); + + + unittest.group("obj-schema-Role", () { + unittest.test("to-json--from-json", () { + var o = buildRole(); + var od = new api.Role.fromJson(o.toJson()); + checkRole(od); }); }); @@ -1384,6 +1307,7 @@ var mock = new HttpServerMock(); api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).projects.serviceAccounts.keys; var arg_name = "foo"; + var arg_publicKeyType = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1411,6 +1335,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["publicKeyType"].first, unittest.equals(arg_publicKeyType)); var h = { @@ -1419,7 +1344,7 @@ var resp = convert.JSON.encode(buildServiceAccountKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.ServiceAccountKey response) { + res.get(arg_name, publicKeyType: arg_publicKeyType).then(unittest.expectAsync(((api.ServiceAccountKey response) { checkServiceAccountKey(response); }))); }); @@ -1429,7 +1354,7 @@ var mock = new HttpServerMock(); api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).projects.serviceAccounts.keys; var arg_name = "foo"; - var arg_keyTypes = buildUnnamed1314(); + var arg_keyTypes = buildUnnamed1335(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1474,5 +1399,56 @@ }); + unittest.group("resource-RolesResourceApi", () { + unittest.test("method--queryGrantableRoles", () { + + var mock = new HttpServerMock(); + api.RolesResourceApi res = new api.IamApi(mock).roles; + var arg_request = buildQueryGrantableRolesRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.QueryGrantableRolesRequest.fromJson(json); + checkQueryGrantableRolesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.equals("v1/roles:queryGrantableRoles")); + pathOffset += 28; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildQueryGrantableRolesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.queryGrantableRoles(arg_request).then(unittest.expectAsync(((api.QueryGrantableRolesResponse response) { + checkQueryGrantableRolesResponse(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis/test/identitytoolkit/v3_test.dart b/generated/googleapis/test/identitytoolkit/v3_test.dart index adccdf0..2d061e6 100644 --- a/generated/googleapis/test/identitytoolkit/v3_test.dart +++ b/generated/googleapis/test/identitytoolkit/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2584() { +buildUnnamed2378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2584(core.List<core.String> o) { +checkUnnamed2378(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.CreateAuthUriResponse(); buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - o.allProviders = buildUnnamed2584(); + o.allProviders = buildUnnamed2378(); o.authUri = "foo"; o.captchaRequired = true; o.forExistingProvider = true; @@ -85,7 +85,7 @@ checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - checkUnnamed2584(o.allProviders); + checkUnnamed2378(o.allProviders); unittest.expect(o.authUri, unittest.equals('foo')); unittest.expect(o.captchaRequired, unittest.isTrue); unittest.expect(o.forExistingProvider, unittest.isTrue); @@ -116,14 +116,14 @@ buildCounterDeleteAccountResponse--; } -buildUnnamed2585() { +buildUnnamed2379() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2585(core.List<api.UserInfo> o) { +checkUnnamed2379(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -136,7 +136,7 @@ if (buildCounterDownloadAccountResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.users = buildUnnamed2585(); + o.users = buildUnnamed2379(); } buildCounterDownloadAccountResponse--; return o; @@ -147,7 +147,7 @@ if (buildCounterDownloadAccountResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2585(o.users); + checkUnnamed2379(o.users); } buildCounterDownloadAccountResponse--; } @@ -181,14 +181,14 @@ buildCounterEmailTemplate--; } -buildUnnamed2586() { +buildUnnamed2380() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2586(core.List<api.UserInfo> o) { +checkUnnamed2380(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -200,7 +200,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { o.kind = "foo"; - o.users = buildUnnamed2586(); + o.users = buildUnnamed2380(); } buildCounterGetAccountInfoResponse--; return o; @@ -210,7 +210,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2586(o.users); + checkUnnamed2380(o.users); } buildCounterGetAccountInfoResponse--; } @@ -261,6 +261,19 @@ buildCounterGetRecaptchaParamResponse--; } +buildUnnamed2381() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2381(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + core.int buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest = 0; buildIdentitytoolkitRelyingpartyCreateAuthUriRequest() { var o = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest(); @@ -271,6 +284,7 @@ o.clientId = "foo"; o.context = "foo"; o.continueUri = "foo"; + o.customParameter = buildUnnamed2381(); o.hostedDomain = "foo"; o.identifier = "foo"; o.oauthConsumerKey = "foo"; @@ -292,6 +306,7 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.context, unittest.equals('foo')); unittest.expect(o.continueUri, unittest.equals('foo')); + checkUnnamed2381(o.customParameter); unittest.expect(o.hostedDomain, unittest.equals('foo')); unittest.expect(o.identifier, unittest.equals('foo')); unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); @@ -350,27 +365,27 @@ buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; } -buildUnnamed2587() { +buildUnnamed2382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2587(core.List<core.String> o) { +checkUnnamed2382(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2588() { +buildUnnamed2383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2588(core.List<core.String> o) { +checkUnnamed2383(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -382,9 +397,9 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { o.delegatedProjectNumber = "foo"; - o.email = buildUnnamed2587(); + o.email = buildUnnamed2382(); o.idToken = "foo"; - o.localId = buildUnnamed2588(); + o.localId = buildUnnamed2383(); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; return o; @@ -394,34 +409,34 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2587(o.email); + checkUnnamed2382(o.email); unittest.expect(o.idToken, unittest.equals('foo')); - checkUnnamed2588(o.localId); + checkUnnamed2383(o.localId); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; } -buildUnnamed2589() { +buildUnnamed2384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2589(core.List<core.String> o) { +checkUnnamed2384(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2590() { +buildUnnamed2385() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2590(core.List<api.IdpConfig> o) { +checkUnnamed2385(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -434,10 +449,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2589(); + o.authorizedDomains = buildUnnamed2384(); o.changeEmailTemplate = buildEmailTemplate(); + o.dynamicLinksDomain = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2590(); + o.idpConfig = buildUnnamed2385(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.projectId = "foo"; o.resetPasswordTemplate = buildEmailTemplate(); @@ -453,10 +469,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2589(o.authorizedDomains); + checkUnnamed2384(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); + unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2590(o.idpConfig); + checkUnnamed2385(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); unittest.expect(o.projectId, unittest.equals('foo')); checkEmailTemplate(o.resetPasswordTemplate); @@ -504,40 +521,40 @@ buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; } -buildUnnamed2591() { +buildUnnamed2386() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2591(core.List<core.String> o) { +checkUnnamed2386(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2592() { +buildUnnamed2387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2592(core.List<core.String> o) { +checkUnnamed2387(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2593() { +buildUnnamed2388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2593(core.List<core.String> o) { +checkUnnamed2388(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -552,8 +569,8 @@ o.captchaResponse = "foo"; o.createdAt = "foo"; o.delegatedProjectNumber = "foo"; - o.deleteAttribute = buildUnnamed2591(); - o.deleteProvider = buildUnnamed2592(); + o.deleteAttribute = buildUnnamed2386(); + o.deleteProvider = buildUnnamed2387(); o.disableUser = true; o.displayName = "foo"; o.email = "foo"; @@ -565,7 +582,7 @@ o.oobCode = "foo"; o.password = "foo"; o.photoUrl = "foo"; - o.provider = buildUnnamed2593(); + o.provider = buildUnnamed2388(); o.returnSecureToken = true; o.upgradeToFederatedLogin = true; o.validSince = "foo"; @@ -581,8 +598,8 @@ unittest.expect(o.captchaResponse, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2591(o.deleteAttribute); - checkUnnamed2592(o.deleteProvider); + checkUnnamed2386(o.deleteAttribute); + checkUnnamed2387(o.deleteProvider); unittest.expect(o.disableUser, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -594,7 +611,7 @@ unittest.expect(o.oobCode, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2593(o.provider); + checkUnnamed2388(o.provider); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); unittest.expect(o.validSince, unittest.equals('foo')); @@ -602,27 +619,27 @@ buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; } -buildUnnamed2594() { +buildUnnamed2389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2594(core.List<core.String> o) { +checkUnnamed2389(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2595() { +buildUnnamed2390() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2595(core.List<api.IdpConfig> o) { +checkUnnamed2390(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -635,11 +652,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2594(); + o.authorizedDomains = buildUnnamed2389(); o.changeEmailTemplate = buildEmailTemplate(); o.delegatedProjectNumber = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2595(); + o.idpConfig = buildUnnamed2390(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.resetPasswordTemplate = buildEmailTemplate(); o.useEmailSending = true; @@ -654,11 +671,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2594(o.authorizedDomains); + checkUnnamed2389(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2595(o.idpConfig); + checkUnnamed2390(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); checkEmailTemplate(o.resetPasswordTemplate); unittest.expect(o.useEmailSending, unittest.isTrue); @@ -733,11 +750,14 @@ if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { o.captchaChallenge = "foo"; o.captchaResponse = "foo"; + o.disabled = true; o.displayName = "foo"; o.email = "foo"; + o.emailVerified = true; o.idToken = "foo"; o.instanceId = "foo"; o.password = "foo"; + o.photoUrl = "foo"; } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; return o; @@ -748,23 +768,26 @@ if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { unittest.expect(o.captchaChallenge, unittest.equals('foo')); unittest.expect(o.captchaResponse, unittest.equals('foo')); + unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); + unittest.expect(o.emailVerified, unittest.isTrue); unittest.expect(o.idToken, unittest.equals('foo')); unittest.expect(o.instanceId, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); + unittest.expect(o.photoUrl, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; } -buildUnnamed2596() { +buildUnnamed2391() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2596(core.List<api.UserInfo> o) { +checkUnnamed2391(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -775,13 +798,16 @@ var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { + o.allowOverwrite = true; o.delegatedProjectNumber = "foo"; o.hashAlgorithm = "foo"; o.memoryCost = 42; o.rounds = 42; o.saltSeparator = "foo"; + o.sanityCheck = true; o.signerKey = "foo"; - o.users = buildUnnamed2596(); + o.targetProjectId = "foo"; + o.users = buildUnnamed2391(); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; return o; @@ -790,13 +816,16 @@ checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingpartyUploadAccountRequest o) { buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { + unittest.expect(o.allowOverwrite, unittest.isTrue); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.hashAlgorithm, unittest.equals('foo')); unittest.expect(o.memoryCost, unittest.equals(42)); unittest.expect(o.rounds, unittest.equals(42)); unittest.expect(o.saltSeparator, unittest.equals('foo')); + unittest.expect(o.sanityCheck, unittest.isTrue); unittest.expect(o.signerKey, unittest.equals('foo')); - checkUnnamed2596(o.users); + unittest.expect(o.targetProjectId, unittest.equals('foo')); + checkUnnamed2391(o.users); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; } @@ -898,14 +927,14 @@ buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; } -buildUnnamed2597() { +buildUnnamed2392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2597(core.List<core.String> o) { +checkUnnamed2392(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -921,7 +950,7 @@ o.experimentPercent = 42; o.provider = "foo"; o.secret = "foo"; - o.whitelistedAudiences = buildUnnamed2597(); + o.whitelistedAudiences = buildUnnamed2392(); } buildCounterIdpConfig--; return o; @@ -935,7 +964,7 @@ unittest.expect(o.experimentPercent, unittest.equals(42)); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.secret, unittest.equals('foo')); - checkUnnamed2597(o.whitelistedAudiences); + checkUnnamed2392(o.whitelistedAudiences); } buildCounterIdpConfig--; } @@ -980,6 +1009,8 @@ if (buildCounterResetPasswordResponse < 3) { o.email = "foo"; o.kind = "foo"; + o.newEmail = "foo"; + o.requestType = "foo"; } buildCounterResetPasswordResponse--; return o; @@ -990,6 +1021,8 @@ if (buildCounterResetPasswordResponse < 3) { unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.newEmail, unittest.equals('foo')); + unittest.expect(o.requestType, unittest.equals('foo')); } buildCounterResetPasswordResponse--; } @@ -1019,14 +1052,14 @@ buildCounterSetAccountInfoResponseProviderUserInfo--; } -buildUnnamed2598() { +buildUnnamed2393() { var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); o.add(buildSetAccountInfoResponseProviderUserInfo()); o.add(buildSetAccountInfoResponseProviderUserInfo()); return o; } -checkUnnamed2598(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { +checkUnnamed2393(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSetAccountInfoResponseProviderUserInfo(o[0]); checkSetAccountInfoResponseProviderUserInfo(o[1]); @@ -1046,7 +1079,7 @@ o.newEmail = "foo"; o.passwordHash = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2598(); + o.providerUserInfo = buildUnnamed2393(); o.refreshToken = "foo"; } buildCounterSetAccountInfoResponse--; @@ -1065,7 +1098,7 @@ unittest.expect(o.newEmail, unittest.equals('foo')); unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2598(o.providerUserInfo); + checkUnnamed2393(o.providerUserInfo); unittest.expect(o.refreshToken, unittest.equals('foo')); } buildCounterSetAccountInfoResponse--; @@ -1123,14 +1156,14 @@ buildCounterUploadAccountResponseError--; } -buildUnnamed2599() { +buildUnnamed2394() { var o = new core.List<api.UploadAccountResponseError>(); o.add(buildUploadAccountResponseError()); o.add(buildUploadAccountResponseError()); return o; } -checkUnnamed2599(core.List<api.UploadAccountResponseError> o) { +checkUnnamed2394(core.List<api.UploadAccountResponseError> o) { unittest.expect(o, unittest.hasLength(2)); checkUploadAccountResponseError(o[0]); checkUploadAccountResponseError(o[1]); @@ -1141,7 +1174,7 @@ var o = new api.UploadAccountResponse(); buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - o.error = buildUnnamed2599(); + o.error = buildUnnamed2394(); o.kind = "foo"; } buildCounterUploadAccountResponse--; @@ -1151,7 +1184,7 @@ checkUploadAccountResponse(api.UploadAccountResponse o) { buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - checkUnnamed2599(o.error); + checkUnnamed2394(o.error); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUploadAccountResponse--; @@ -1168,7 +1201,6 @@ o.photoUrl = "foo"; o.providerId = "foo"; o.rawId = "foo"; - o.rawUserInfo = "foo"; o.screenName = "foo"; } buildCounterUserInfoProviderUserInfo--; @@ -1184,20 +1216,19 @@ unittest.expect(o.photoUrl, unittest.equals('foo')); unittest.expect(o.providerId, unittest.equals('foo')); unittest.expect(o.rawId, unittest.equals('foo')); - unittest.expect(o.rawUserInfo, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); } buildCounterUserInfoProviderUserInfo--; } -buildUnnamed2600() { +buildUnnamed2395() { var o = new core.List<api.UserInfoProviderUserInfo>(); o.add(buildUserInfoProviderUserInfo()); o.add(buildUserInfoProviderUserInfo()); return o; } -checkUnnamed2600(core.List<api.UserInfoProviderUserInfo> o) { +checkUnnamed2395(core.List<api.UserInfoProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfoProviderUserInfo(o[0]); checkUserInfoProviderUserInfo(o[1]); @@ -1209,6 +1240,7 @@ buildCounterUserInfo++; if (buildCounterUserInfo < 3) { o.createdAt = "foo"; + o.customAuth = true; o.disabled = true; o.displayName = "foo"; o.email = "foo"; @@ -1218,7 +1250,8 @@ o.passwordHash = "foo"; o.passwordUpdatedAt = 42.0; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2600(); + o.providerUserInfo = buildUnnamed2395(); + o.rawPassword = "foo"; o.salt = "foo"; o.screenName = "foo"; o.validSince = "foo"; @@ -1232,6 +1265,7 @@ buildCounterUserInfo++; if (buildCounterUserInfo < 3) { unittest.expect(o.createdAt, unittest.equals('foo')); + unittest.expect(o.customAuth, unittest.isTrue); unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -1241,7 +1275,8 @@ unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2600(o.providerUserInfo); + checkUnnamed2395(o.providerUserInfo); + unittest.expect(o.rawPassword, unittest.equals('foo')); unittest.expect(o.salt, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.validSince, unittest.equals('foo')); @@ -1250,14 +1285,14 @@ buildCounterUserInfo--; } -buildUnnamed2601() { +buildUnnamed2396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2601(core.List<core.String> o) { +checkUnnamed2396(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1305,7 +1340,7 @@ o.refreshToken = "foo"; o.screenName = "foo"; o.timeZone = "foo"; - o.verifiedProvider = buildUnnamed2601(); + o.verifiedProvider = buildUnnamed2396(); } buildCounterVerifyAssertionResponse--; return o; @@ -1351,7 +1386,7 @@ unittest.expect(o.refreshToken, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); - checkUnnamed2601(o.verifiedProvider); + checkUnnamed2396(o.verifiedProvider); } buildCounterVerifyAssertionResponse--; }
diff --git a/generated/googleapis/test/kgsearch/v1_test.dart b/generated/googleapis/test/kgsearch/v1_test.dart index e243db4..b6a1c66 100644 --- a/generated/googleapis/test/kgsearch/v1_test.dart +++ b/generated/googleapis/test/kgsearch/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1084() { +buildUnnamed1110() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1084(core.List<core.Object> o) { +checkUnnamed1110(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterSearchResponse++; if (buildCounterSearchResponse < 3) { o.context = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; - o.itemListElement = buildUnnamed1084(); + o.itemListElement = buildUnnamed1110(); o.type = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; } buildCounterSearchResponse--; @@ -81,46 +81,46 @@ buildCounterSearchResponse++; if (buildCounterSearchResponse < 3) { var casted3 = (o.context) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); - checkUnnamed1084(o.itemListElement); + checkUnnamed1110(o.itemListElement); var casted4 = (o.type) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } buildCounterSearchResponse--; } -buildUnnamed1085() { +buildUnnamed1111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1085(core.List<core.String> o) { +checkUnnamed1111(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1086() { +buildUnnamed1112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1086(core.List<core.String> o) { +checkUnnamed1112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1087() { +buildUnnamed1113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1087(core.List<core.String> o) { +checkUnnamed1113(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -143,9 +143,9 @@ var mock = new HttpServerMock(); api.EntitiesResourceApi res = new api.KgsearchApi(mock).entities; var arg_query = "foo"; - var arg_ids = buildUnnamed1085(); - var arg_languages = buildUnnamed1086(); - var arg_types = buildUnnamed1087(); + var arg_ids = buildUnnamed1111(); + var arg_languages = buildUnnamed1112(); + var arg_types = buildUnnamed1113(); var arg_indent = true; var arg_prefix = true; var arg_limit = 42;
diff --git a/generated/googleapis/test/licensing/v1_test.dart b/generated/googleapis/test/licensing/v1_test.dart index 523cdc9..5284397 100644 --- a/generated/googleapis/test/licensing/v1_test.dart +++ b/generated/googleapis/test/licensing/v1_test.dart
@@ -99,14 +99,14 @@ buildCounterLicenseAssignmentInsert--; } -buildUnnamed2371() { +buildUnnamed2133() { var o = new core.List<api.LicenseAssignment>(); o.add(buildLicenseAssignment()); o.add(buildLicenseAssignment()); return o; } -checkUnnamed2371(core.List<api.LicenseAssignment> o) { +checkUnnamed2133(core.List<api.LicenseAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseAssignment(o[0]); checkLicenseAssignment(o[1]); @@ -118,7 +118,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { o.etag = "foo"; - o.items = buildUnnamed2371(); + o.items = buildUnnamed2133(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -130,7 +130,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2371(o.items); + checkUnnamed2133(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/logging/v2_test.dart b/generated/googleapis/test/logging/v2_test.dart new file mode 100644 index 0000000..b6f74b7 --- /dev/null +++ b/generated/googleapis/test/logging/v2_test.dart
@@ -0,0 +1,2264 @@ +library googleapis.logging.v2.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:unittest/unittest.dart' as unittest; + +import 'package:googleapis/logging/v2.dart' as api; + +class HttpServerMock extends http.BaseClient { + core.Function _callback; + core.bool _expectJson; + + void register(core.Function callback, core.bool expectJson) { + _callback = callback; + _expectJson = expectJson; + } + + async.Future<http.StreamedResponse> send(http.BaseRequest request) { + if (_expectJson) { + return request.finalize() + .transform(convert.UTF8.decoder) + .join('') + .then((core.String jsonString) { + if (jsonString.isEmpty) { + return _callback(request, null); + } else { + return _callback(request, convert.JSON.decode(jsonString)); + } + }); + } else { + var stream = request.finalize(); + if (stream == null) { + return _callback(request, []); + } else { + return stream.toBytes().then((data) { + return _callback(request, data); + }); + } + } + } +} + +http.StreamedResponse stringResponse( + core.int status, core.Map headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +core.int buildCounterEmpty = 0; +buildEmpty() { + var o = new api.Empty(); + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; + return o; +} + +checkEmpty(api.Empty o) { + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; +} + +core.int buildCounterHttpRequest = 0; +buildHttpRequest() { + var o = new api.HttpRequest(); + buildCounterHttpRequest++; + if (buildCounterHttpRequest < 3) { + o.cacheFillBytes = "foo"; + o.cacheHit = true; + o.cacheLookup = true; + o.cacheValidatedWithOriginServer = true; + o.latency = "foo"; + o.referer = "foo"; + o.remoteIp = "foo"; + o.requestMethod = "foo"; + o.requestSize = "foo"; + o.requestUrl = "foo"; + o.responseSize = "foo"; + o.serverIp = "foo"; + o.status = 42; + o.userAgent = "foo"; + } + buildCounterHttpRequest--; + return o; +} + +checkHttpRequest(api.HttpRequest o) { + buildCounterHttpRequest++; + if (buildCounterHttpRequest < 3) { + unittest.expect(o.cacheFillBytes, unittest.equals('foo')); + unittest.expect(o.cacheHit, unittest.isTrue); + unittest.expect(o.cacheLookup, unittest.isTrue); + unittest.expect(o.cacheValidatedWithOriginServer, unittest.isTrue); + unittest.expect(o.latency, unittest.equals('foo')); + unittest.expect(o.referer, unittest.equals('foo')); + unittest.expect(o.remoteIp, unittest.equals('foo')); + unittest.expect(o.requestMethod, unittest.equals('foo')); + unittest.expect(o.requestSize, unittest.equals('foo')); + unittest.expect(o.requestUrl, unittest.equals('foo')); + unittest.expect(o.responseSize, unittest.equals('foo')); + unittest.expect(o.serverIp, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals(42)); + unittest.expect(o.userAgent, unittest.equals('foo')); + } + buildCounterHttpRequest--; +} + +core.int buildCounterLabelDescriptor = 0; +buildLabelDescriptor() { + var o = new api.LabelDescriptor(); + buildCounterLabelDescriptor++; + if (buildCounterLabelDescriptor < 3) { + o.description = "foo"; + o.key = "foo"; + o.valueType = "foo"; + } + buildCounterLabelDescriptor--; + return o; +} + +checkLabelDescriptor(api.LabelDescriptor o) { + buildCounterLabelDescriptor++; + if (buildCounterLabelDescriptor < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.valueType, unittest.equals('foo')); + } + buildCounterLabelDescriptor--; +} + +buildUnnamed174() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed174(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed175() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed175(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListLogEntriesRequest = 0; +buildListLogEntriesRequest() { + var o = new api.ListLogEntriesRequest(); + buildCounterListLogEntriesRequest++; + if (buildCounterListLogEntriesRequest < 3) { + o.filter = "foo"; + o.orderBy = "foo"; + o.pageSize = 42; + o.pageToken = "foo"; + o.projectIds = buildUnnamed174(); + o.resourceNames = buildUnnamed175(); + } + buildCounterListLogEntriesRequest--; + return o; +} + +checkListLogEntriesRequest(api.ListLogEntriesRequest o) { + buildCounterListLogEntriesRequest++; + if (buildCounterListLogEntriesRequest < 3) { + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.orderBy, unittest.equals('foo')); + unittest.expect(o.pageSize, unittest.equals(42)); + unittest.expect(o.pageToken, unittest.equals('foo')); + checkUnnamed174(o.projectIds); + checkUnnamed175(o.resourceNames); + } + buildCounterListLogEntriesRequest--; +} + +buildUnnamed176() { + var o = new core.List<api.LogEntry>(); + o.add(buildLogEntry()); + o.add(buildLogEntry()); + return o; +} + +checkUnnamed176(core.List<api.LogEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogEntry(o[0]); + checkLogEntry(o[1]); +} + +core.int buildCounterListLogEntriesResponse = 0; +buildListLogEntriesResponse() { + var o = new api.ListLogEntriesResponse(); + buildCounterListLogEntriesResponse++; + if (buildCounterListLogEntriesResponse < 3) { + o.entries = buildUnnamed176(); + o.nextPageToken = "foo"; + } + buildCounterListLogEntriesResponse--; + return o; +} + +checkListLogEntriesResponse(api.ListLogEntriesResponse o) { + buildCounterListLogEntriesResponse++; + if (buildCounterListLogEntriesResponse < 3) { + checkUnnamed176(o.entries); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLogEntriesResponse--; +} + +buildUnnamed177() { + var o = new core.List<api.LogMetric>(); + o.add(buildLogMetric()); + o.add(buildLogMetric()); + return o; +} + +checkUnnamed177(core.List<api.LogMetric> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogMetric(o[0]); + checkLogMetric(o[1]); +} + +core.int buildCounterListLogMetricsResponse = 0; +buildListLogMetricsResponse() { + var o = new api.ListLogMetricsResponse(); + buildCounterListLogMetricsResponse++; + if (buildCounterListLogMetricsResponse < 3) { + o.metrics = buildUnnamed177(); + o.nextPageToken = "foo"; + } + buildCounterListLogMetricsResponse--; + return o; +} + +checkListLogMetricsResponse(api.ListLogMetricsResponse o) { + buildCounterListLogMetricsResponse++; + if (buildCounterListLogMetricsResponse < 3) { + checkUnnamed177(o.metrics); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLogMetricsResponse--; +} + +buildUnnamed178() { + var o = new core.List<api.MonitoredResourceDescriptor>(); + o.add(buildMonitoredResourceDescriptor()); + o.add(buildMonitoredResourceDescriptor()); + return o; +} + +checkUnnamed178(core.List<api.MonitoredResourceDescriptor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMonitoredResourceDescriptor(o[0]); + checkMonitoredResourceDescriptor(o[1]); +} + +core.int buildCounterListMonitoredResourceDescriptorsResponse = 0; +buildListMonitoredResourceDescriptorsResponse() { + var o = new api.ListMonitoredResourceDescriptorsResponse(); + buildCounterListMonitoredResourceDescriptorsResponse++; + if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { + o.nextPageToken = "foo"; + o.resourceDescriptors = buildUnnamed178(); + } + buildCounterListMonitoredResourceDescriptorsResponse--; + return o; +} + +checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescriptorsResponse o) { + buildCounterListMonitoredResourceDescriptorsResponse++; + if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed178(o.resourceDescriptors); + } + buildCounterListMonitoredResourceDescriptorsResponse--; +} + +buildUnnamed179() { + var o = new core.List<api.LogSink>(); + o.add(buildLogSink()); + o.add(buildLogSink()); + return o; +} + +checkUnnamed179(core.List<api.LogSink> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogSink(o[0]); + checkLogSink(o[1]); +} + +core.int buildCounterListSinksResponse = 0; +buildListSinksResponse() { + var o = new api.ListSinksResponse(); + buildCounterListSinksResponse++; + if (buildCounterListSinksResponse < 3) { + o.nextPageToken = "foo"; + o.sinks = buildUnnamed179(); + } + buildCounterListSinksResponse--; + return o; +} + +checkListSinksResponse(api.ListSinksResponse o) { + buildCounterListSinksResponse++; + if (buildCounterListSinksResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed179(o.sinks); + } + buildCounterListSinksResponse--; +} + +buildUnnamed180() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed180(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); + var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); +} + +buildUnnamed181() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed181(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed182() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed182(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); + var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); +} + +core.int buildCounterLogEntry = 0; +buildLogEntry() { + var o = new api.LogEntry(); + buildCounterLogEntry++; + if (buildCounterLogEntry < 3) { + o.httpRequest = buildHttpRequest(); + o.insertId = "foo"; + o.jsonPayload = buildUnnamed180(); + o.labels = buildUnnamed181(); + o.logName = "foo"; + o.operation = buildLogEntryOperation(); + o.protoPayload = buildUnnamed182(); + o.resource = buildMonitoredResource(); + o.severity = "foo"; + o.textPayload = "foo"; + o.timestamp = "foo"; + } + buildCounterLogEntry--; + return o; +} + +checkLogEntry(api.LogEntry o) { + buildCounterLogEntry++; + if (buildCounterLogEntry < 3) { + checkHttpRequest(o.httpRequest); + unittest.expect(o.insertId, unittest.equals('foo')); + checkUnnamed180(o.jsonPayload); + checkUnnamed181(o.labels); + unittest.expect(o.logName, unittest.equals('foo')); + checkLogEntryOperation(o.operation); + checkUnnamed182(o.protoPayload); + checkMonitoredResource(o.resource); + unittest.expect(o.severity, unittest.equals('foo')); + unittest.expect(o.textPayload, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterLogEntry--; +} + +core.int buildCounterLogEntryOperation = 0; +buildLogEntryOperation() { + var o = new api.LogEntryOperation(); + buildCounterLogEntryOperation++; + if (buildCounterLogEntryOperation < 3) { + o.first = true; + o.id = "foo"; + o.last = true; + o.producer = "foo"; + } + buildCounterLogEntryOperation--; + return o; +} + +checkLogEntryOperation(api.LogEntryOperation o) { + buildCounterLogEntryOperation++; + if (buildCounterLogEntryOperation < 3) { + unittest.expect(o.first, unittest.isTrue); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.last, unittest.isTrue); + unittest.expect(o.producer, unittest.equals('foo')); + } + buildCounterLogEntryOperation--; +} + +core.int buildCounterLogLine = 0; +buildLogLine() { + var o = new api.LogLine(); + buildCounterLogLine++; + if (buildCounterLogLine < 3) { + o.logMessage = "foo"; + o.severity = "foo"; + o.sourceLocation = buildSourceLocation(); + o.time = "foo"; + } + buildCounterLogLine--; + return o; +} + +checkLogLine(api.LogLine o) { + buildCounterLogLine++; + if (buildCounterLogLine < 3) { + unittest.expect(o.logMessage, unittest.equals('foo')); + unittest.expect(o.severity, unittest.equals('foo')); + checkSourceLocation(o.sourceLocation); + unittest.expect(o.time, unittest.equals('foo')); + } + buildCounterLogLine--; +} + +core.int buildCounterLogMetric = 0; +buildLogMetric() { + var o = new api.LogMetric(); + buildCounterLogMetric++; + if (buildCounterLogMetric < 3) { + o.description = "foo"; + o.filter = "foo"; + o.name = "foo"; + o.version = "foo"; + } + buildCounterLogMetric--; + return o; +} + +checkLogMetric(api.LogMetric o) { + buildCounterLogMetric++; + if (buildCounterLogMetric < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterLogMetric--; +} + +core.int buildCounterLogSink = 0; +buildLogSink() { + var o = new api.LogSink(); + buildCounterLogSink++; + if (buildCounterLogSink < 3) { + o.destination = "foo"; + o.endTime = "foo"; + o.filter = "foo"; + o.name = "foo"; + o.outputVersionFormat = "foo"; + o.startTime = "foo"; + o.writerIdentity = "foo"; + } + buildCounterLogSink--; + return o; +} + +checkLogSink(api.LogSink o) { + buildCounterLogSink++; + if (buildCounterLogSink < 3) { + unittest.expect(o.destination, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.outputVersionFormat, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.writerIdentity, unittest.equals('foo')); + } + buildCounterLogSink--; +} + +buildUnnamed183() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed183(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterMonitoredResource = 0; +buildMonitoredResource() { + var o = new api.MonitoredResource(); + buildCounterMonitoredResource++; + if (buildCounterMonitoredResource < 3) { + o.labels = buildUnnamed183(); + o.type = "foo"; + } + buildCounterMonitoredResource--; + return o; +} + +checkMonitoredResource(api.MonitoredResource o) { + buildCounterMonitoredResource++; + if (buildCounterMonitoredResource < 3) { + checkUnnamed183(o.labels); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterMonitoredResource--; +} + +buildUnnamed184() { + var o = new core.List<api.LabelDescriptor>(); + o.add(buildLabelDescriptor()); + o.add(buildLabelDescriptor()); + return o; +} + +checkUnnamed184(core.List<api.LabelDescriptor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLabelDescriptor(o[0]); + checkLabelDescriptor(o[1]); +} + +core.int buildCounterMonitoredResourceDescriptor = 0; +buildMonitoredResourceDescriptor() { + var o = new api.MonitoredResourceDescriptor(); + buildCounterMonitoredResourceDescriptor++; + if (buildCounterMonitoredResourceDescriptor < 3) { + o.description = "foo"; + o.displayName = "foo"; + o.labels = buildUnnamed184(); + o.name = "foo"; + o.type = "foo"; + } + buildCounterMonitoredResourceDescriptor--; + return o; +} + +checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { + buildCounterMonitoredResourceDescriptor++; + if (buildCounterMonitoredResourceDescriptor < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed184(o.labels); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterMonitoredResourceDescriptor--; +} + +buildUnnamed185() { + var o = new core.List<api.LogLine>(); + o.add(buildLogLine()); + o.add(buildLogLine()); + return o; +} + +checkUnnamed185(core.List<api.LogLine> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogLine(o[0]); + checkLogLine(o[1]); +} + +buildUnnamed186() { + var o = new core.List<api.SourceReference>(); + o.add(buildSourceReference()); + o.add(buildSourceReference()); + return o; +} + +checkUnnamed186(core.List<api.SourceReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSourceReference(o[0]); + checkSourceReference(o[1]); +} + +core.int buildCounterRequestLog = 0; +buildRequestLog() { + var o = new api.RequestLog(); + buildCounterRequestLog++; + if (buildCounterRequestLog < 3) { + o.appEngineRelease = "foo"; + o.appId = "foo"; + o.cost = 42.0; + o.endTime = "foo"; + o.finished = true; + o.first = true; + o.host = "foo"; + o.httpVersion = "foo"; + o.instanceId = "foo"; + o.instanceIndex = 42; + o.ip = "foo"; + o.latency = "foo"; + o.line = buildUnnamed185(); + o.megaCycles = "foo"; + o.method = "foo"; + o.moduleId = "foo"; + o.nickname = "foo"; + o.pendingTime = "foo"; + o.referrer = "foo"; + o.requestId = "foo"; + o.resource = "foo"; + o.responseSize = "foo"; + o.sourceReference = buildUnnamed186(); + o.startTime = "foo"; + o.status = 42; + o.taskName = "foo"; + o.taskQueueName = "foo"; + o.traceId = "foo"; + o.urlMapEntry = "foo"; + o.userAgent = "foo"; + o.versionId = "foo"; + o.wasLoadingRequest = true; + } + buildCounterRequestLog--; + return o; +} + +checkRequestLog(api.RequestLog o) { + buildCounterRequestLog++; + if (buildCounterRequestLog < 3) { + unittest.expect(o.appEngineRelease, unittest.equals('foo')); + unittest.expect(o.appId, unittest.equals('foo')); + unittest.expect(o.cost, unittest.equals(42.0)); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.finished, unittest.isTrue); + unittest.expect(o.first, unittest.isTrue); + unittest.expect(o.host, unittest.equals('foo')); + unittest.expect(o.httpVersion, unittest.equals('foo')); + unittest.expect(o.instanceId, unittest.equals('foo')); + unittest.expect(o.instanceIndex, unittest.equals(42)); + unittest.expect(o.ip, unittest.equals('foo')); + unittest.expect(o.latency, unittest.equals('foo')); + checkUnnamed185(o.line); + unittest.expect(o.megaCycles, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.moduleId, unittest.equals('foo')); + unittest.expect(o.nickname, unittest.equals('foo')); + unittest.expect(o.pendingTime, unittest.equals('foo')); + unittest.expect(o.referrer, unittest.equals('foo')); + unittest.expect(o.requestId, unittest.equals('foo')); + unittest.expect(o.resource, unittest.equals('foo')); + unittest.expect(o.responseSize, unittest.equals('foo')); + checkUnnamed186(o.sourceReference); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals(42)); + unittest.expect(o.taskName, unittest.equals('foo')); + unittest.expect(o.taskQueueName, unittest.equals('foo')); + unittest.expect(o.traceId, unittest.equals('foo')); + unittest.expect(o.urlMapEntry, unittest.equals('foo')); + unittest.expect(o.userAgent, unittest.equals('foo')); + unittest.expect(o.versionId, unittest.equals('foo')); + unittest.expect(o.wasLoadingRequest, unittest.isTrue); + } + buildCounterRequestLog--; +} + +core.int buildCounterSourceLocation = 0; +buildSourceLocation() { + var o = new api.SourceLocation(); + buildCounterSourceLocation++; + if (buildCounterSourceLocation < 3) { + o.file = "foo"; + o.functionName = "foo"; + o.line = "foo"; + } + buildCounterSourceLocation--; + return o; +} + +checkSourceLocation(api.SourceLocation o) { + buildCounterSourceLocation++; + if (buildCounterSourceLocation < 3) { + unittest.expect(o.file, unittest.equals('foo')); + unittest.expect(o.functionName, unittest.equals('foo')); + unittest.expect(o.line, unittest.equals('foo')); + } + buildCounterSourceLocation--; +} + +core.int buildCounterSourceReference = 0; +buildSourceReference() { + var o = new api.SourceReference(); + buildCounterSourceReference++; + if (buildCounterSourceReference < 3) { + o.repository = "foo"; + o.revisionId = "foo"; + } + buildCounterSourceReference--; + return o; +} + +checkSourceReference(api.SourceReference o) { + buildCounterSourceReference++; + if (buildCounterSourceReference < 3) { + unittest.expect(o.repository, unittest.equals('foo')); + unittest.expect(o.revisionId, unittest.equals('foo')); + } + buildCounterSourceReference--; +} + +buildUnnamed187() { + var o = new core.List<api.LogEntry>(); + o.add(buildLogEntry()); + o.add(buildLogEntry()); + return o; +} + +checkUnnamed187(core.List<api.LogEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogEntry(o[0]); + checkLogEntry(o[1]); +} + +buildUnnamed188() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed188(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterWriteLogEntriesRequest = 0; +buildWriteLogEntriesRequest() { + var o = new api.WriteLogEntriesRequest(); + buildCounterWriteLogEntriesRequest++; + if (buildCounterWriteLogEntriesRequest < 3) { + o.entries = buildUnnamed187(); + o.labels = buildUnnamed188(); + o.logName = "foo"; + o.partialSuccess = true; + o.resource = buildMonitoredResource(); + } + buildCounterWriteLogEntriesRequest--; + return o; +} + +checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { + buildCounterWriteLogEntriesRequest++; + if (buildCounterWriteLogEntriesRequest < 3) { + checkUnnamed187(o.entries); + checkUnnamed188(o.labels); + unittest.expect(o.logName, unittest.equals('foo')); + unittest.expect(o.partialSuccess, unittest.isTrue); + checkMonitoredResource(o.resource); + } + buildCounterWriteLogEntriesRequest--; +} + +core.int buildCounterWriteLogEntriesResponse = 0; +buildWriteLogEntriesResponse() { + var o = new api.WriteLogEntriesResponse(); + buildCounterWriteLogEntriesResponse++; + if (buildCounterWriteLogEntriesResponse < 3) { + } + buildCounterWriteLogEntriesResponse--; + return o; +} + +checkWriteLogEntriesResponse(api.WriteLogEntriesResponse o) { + buildCounterWriteLogEntriesResponse++; + if (buildCounterWriteLogEntriesResponse < 3) { + } + buildCounterWriteLogEntriesResponse--; +} + + +main() { + unittest.group("obj-schema-Empty", () { + unittest.test("to-json--from-json", () { + var o = buildEmpty(); + var od = new api.Empty.fromJson(o.toJson()); + checkEmpty(od); + }); + }); + + + unittest.group("obj-schema-HttpRequest", () { + unittest.test("to-json--from-json", () { + var o = buildHttpRequest(); + var od = new api.HttpRequest.fromJson(o.toJson()); + checkHttpRequest(od); + }); + }); + + + unittest.group("obj-schema-LabelDescriptor", () { + unittest.test("to-json--from-json", () { + var o = buildLabelDescriptor(); + var od = new api.LabelDescriptor.fromJson(o.toJson()); + checkLabelDescriptor(od); + }); + }); + + + unittest.group("obj-schema-ListLogEntriesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildListLogEntriesRequest(); + var od = new api.ListLogEntriesRequest.fromJson(o.toJson()); + checkListLogEntriesRequest(od); + }); + }); + + + unittest.group("obj-schema-ListLogEntriesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLogEntriesResponse(); + var od = new api.ListLogEntriesResponse.fromJson(o.toJson()); + checkListLogEntriesResponse(od); + }); + }); + + + unittest.group("obj-schema-ListLogMetricsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLogMetricsResponse(); + var od = new api.ListLogMetricsResponse.fromJson(o.toJson()); + checkListLogMetricsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListMonitoredResourceDescriptorsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListMonitoredResourceDescriptorsResponse(); + var od = new api.ListMonitoredResourceDescriptorsResponse.fromJson(o.toJson()); + checkListMonitoredResourceDescriptorsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListSinksResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListSinksResponse(); + var od = new api.ListSinksResponse.fromJson(o.toJson()); + checkListSinksResponse(od); + }); + }); + + + unittest.group("obj-schema-LogEntry", () { + unittest.test("to-json--from-json", () { + var o = buildLogEntry(); + var od = new api.LogEntry.fromJson(o.toJson()); + checkLogEntry(od); + }); + }); + + + unittest.group("obj-schema-LogEntryOperation", () { + unittest.test("to-json--from-json", () { + var o = buildLogEntryOperation(); + var od = new api.LogEntryOperation.fromJson(o.toJson()); + checkLogEntryOperation(od); + }); + }); + + + unittest.group("obj-schema-LogLine", () { + unittest.test("to-json--from-json", () { + var o = buildLogLine(); + var od = new api.LogLine.fromJson(o.toJson()); + checkLogLine(od); + }); + }); + + + unittest.group("obj-schema-LogMetric", () { + unittest.test("to-json--from-json", () { + var o = buildLogMetric(); + var od = new api.LogMetric.fromJson(o.toJson()); + checkLogMetric(od); + }); + }); + + + unittest.group("obj-schema-LogSink", () { + unittest.test("to-json--from-json", () { + var o = buildLogSink(); + var od = new api.LogSink.fromJson(o.toJson()); + checkLogSink(od); + }); + }); + + + unittest.group("obj-schema-MonitoredResource", () { + unittest.test("to-json--from-json", () { + var o = buildMonitoredResource(); + var od = new api.MonitoredResource.fromJson(o.toJson()); + checkMonitoredResource(od); + }); + }); + + + unittest.group("obj-schema-MonitoredResourceDescriptor", () { + unittest.test("to-json--from-json", () { + var o = buildMonitoredResourceDescriptor(); + var od = new api.MonitoredResourceDescriptor.fromJson(o.toJson()); + checkMonitoredResourceDescriptor(od); + }); + }); + + + unittest.group("obj-schema-RequestLog", () { + unittest.test("to-json--from-json", () { + var o = buildRequestLog(); + var od = new api.RequestLog.fromJson(o.toJson()); + checkRequestLog(od); + }); + }); + + + unittest.group("obj-schema-SourceLocation", () { + unittest.test("to-json--from-json", () { + var o = buildSourceLocation(); + var od = new api.SourceLocation.fromJson(o.toJson()); + checkSourceLocation(od); + }); + }); + + + unittest.group("obj-schema-SourceReference", () { + unittest.test("to-json--from-json", () { + var o = buildSourceReference(); + var od = new api.SourceReference.fromJson(o.toJson()); + checkSourceReference(od); + }); + }); + + + unittest.group("obj-schema-WriteLogEntriesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildWriteLogEntriesRequest(); + var od = new api.WriteLogEntriesRequest.fromJson(o.toJson()); + checkWriteLogEntriesRequest(od); + }); + }); + + + unittest.group("obj-schema-WriteLogEntriesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildWriteLogEntriesResponse(); + var od = new api.WriteLogEntriesResponse.fromJson(o.toJson()); + checkWriteLogEntriesResponse(od); + }); + }); + + + unittest.group("resource-BillingAccountsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.logs; + var arg_logName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + }); + + + unittest.group("resource-BillingAccountsSinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; + var arg_request = buildLogSink(); + var arg_parent = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListSinksResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListSinksResponse response) { + checkListSinksResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; + var arg_request = buildLogSink(); + var arg_sinkName = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + }); + + + unittest.group("resource-EntriesResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.EntriesResourceApi res = new api.LoggingApi(mock).entries; + var arg_request = buildListLogEntriesRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ListLogEntriesRequest.fromJson(json); + checkListLogEntriesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v2/entries:list")); + pathOffset += 15; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLogEntriesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_request).then(unittest.expectAsync(((api.ListLogEntriesResponse response) { + checkListLogEntriesResponse(response); + }))); + }); + + unittest.test("method--write", () { + + var mock = new HttpServerMock(); + api.EntriesResourceApi res = new api.LoggingApi(mock).entries; + var arg_request = buildWriteLogEntriesRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.WriteLogEntriesRequest.fromJson(json); + checkWriteLogEntriesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("v2/entries:write")); + pathOffset += 16; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildWriteLogEntriesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.write(arg_request).then(unittest.expectAsync(((api.WriteLogEntriesResponse response) { + checkWriteLogEntriesResponse(response); + }))); + }); + + }); + + + unittest.group("resource-MonitoredResourceDescriptorsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.equals("v2/monitoredResourceDescriptors")); + pathOffset += 31; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListMonitoredResourceDescriptorsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { + checkListMonitoredResourceDescriptorsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-OrganizationsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; + var arg_logName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + }); + + + unittest.group("resource-OrganizationsSinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; + var arg_request = buildLogSink(); + var arg_parent = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListSinksResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListSinksResponse response) { + checkListSinksResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; + var arg_request = buildLogSink(); + var arg_sinkName = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs; + var arg_logName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsMetricsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_request = buildLogMetric(); + var arg_parent = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogMetric.fromJson(json); + checkLogMetric(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogMetric()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.LogMetric response) { + checkLogMetric(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_metricName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_metricName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_metricName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogMetric()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + checkLogMetric(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLogMetricsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogMetricsResponse response) { + checkListLogMetricsResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_request = buildLogMetric(); + var arg_metricName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogMetric.fromJson(json); + checkLogMetric(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogMetric()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + checkLogMetric(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsSinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; + var arg_request = buildLogSink(); + var arg_parent = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListSinksResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListSinksResponse response) { + checkListSinksResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; + var arg_request = buildLogSink(); + var arg_sinkName = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart new file mode 100644 index 0000000..c8e95ea --- /dev/null +++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -0,0 +1,373 @@ +library googleapis.manufacturers.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:unittest/unittest.dart' as unittest; + +import 'package:googleapis/manufacturers/v1.dart' as api; + +class HttpServerMock extends http.BaseClient { + core.Function _callback; + core.bool _expectJson; + + void register(core.Function callback, core.bool expectJson) { + _callback = callback; + _expectJson = expectJson; + } + + async.Future<http.StreamedResponse> send(http.BaseRequest request) { + if (_expectJson) { + return request.finalize() + .transform(convert.UTF8.decoder) + .join('') + .then((core.String jsonString) { + if (jsonString.isEmpty) { + return _callback(request, null); + } else { + return _callback(request, convert.JSON.decode(jsonString)); + } + }); + } else { + var stream = request.finalize(); + if (stream == null) { + return _callback(request, []); + } else { + return stream.toBytes().then((data) { + return _callback(request, data); + }); + } + } + } +} + +http.StreamedResponse stringResponse( + core.int status, core.Map headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +buildUnnamed1811() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1811(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1812() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1812(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterAttributes = 0; +buildAttributes() { + var o = new api.Attributes(); + buildCounterAttributes++; + if (buildCounterAttributes < 3) { + o.brand = "foo"; + o.gtin = buildUnnamed1811(); + o.mpn = "foo"; + o.productLine = "foo"; + o.productName = "foo"; + o.productPageUrl = "foo"; + o.productType = buildUnnamed1812(); + o.title = "foo"; + } + buildCounterAttributes--; + return o; +} + +checkAttributes(api.Attributes o) { + buildCounterAttributes++; + if (buildCounterAttributes < 3) { + unittest.expect(o.brand, unittest.equals('foo')); + checkUnnamed1811(o.gtin); + unittest.expect(o.mpn, unittest.equals('foo')); + unittest.expect(o.productLine, unittest.equals('foo')); + unittest.expect(o.productName, unittest.equals('foo')); + unittest.expect(o.productPageUrl, unittest.equals('foo')); + checkUnnamed1812(o.productType); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterAttributes--; +} + +core.int buildCounterIssue = 0; +buildIssue() { + var o = new api.Issue(); + buildCounterIssue++; + if (buildCounterIssue < 3) { + o.attribute = "foo"; + o.description = "foo"; + o.severity = "foo"; + o.type = "foo"; + } + buildCounterIssue--; + return o; +} + +checkIssue(api.Issue o) { + buildCounterIssue++; + if (buildCounterIssue < 3) { + unittest.expect(o.attribute, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.severity, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterIssue--; +} + +buildUnnamed1813() { + var o = new core.List<api.Product>(); + o.add(buildProduct()); + o.add(buildProduct()); + return o; +} + +checkUnnamed1813(core.List<api.Product> o) { + unittest.expect(o, unittest.hasLength(2)); + checkProduct(o[0]); + checkProduct(o[1]); +} + +core.int buildCounterListProductsResponse = 0; +buildListProductsResponse() { + var o = new api.ListProductsResponse(); + buildCounterListProductsResponse++; + if (buildCounterListProductsResponse < 3) { + o.nextPageToken = "foo"; + o.products = buildUnnamed1813(); + } + buildCounterListProductsResponse--; + return o; +} + +checkListProductsResponse(api.ListProductsResponse o) { + buildCounterListProductsResponse++; + if (buildCounterListProductsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1813(o.products); + } + buildCounterListProductsResponse--; +} + +buildUnnamed1814() { + var o = new core.List<api.Issue>(); + o.add(buildIssue()); + o.add(buildIssue()); + return o; +} + +checkUnnamed1814(core.List<api.Issue> o) { + unittest.expect(o, unittest.hasLength(2)); + checkIssue(o[0]); + checkIssue(o[1]); +} + +buildUnnamed1815() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1815(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterProduct = 0; +buildProduct() { + var o = new api.Product(); + buildCounterProduct++; + if (buildCounterProduct < 3) { + o.contentLanguage = "foo"; + o.finalAttributes = buildAttributes(); + o.issues = buildUnnamed1814(); + o.manuallyDeletedAttributes = buildUnnamed1815(); + o.manuallyProvidedAttributes = buildAttributes(); + o.name = "foo"; + o.parent = "foo"; + o.productId = "foo"; + o.targetCountry = "foo"; + o.uploadedAttributes = buildAttributes(); + } + buildCounterProduct--; + return o; +} + +checkProduct(api.Product o) { + buildCounterProduct++; + if (buildCounterProduct < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + checkAttributes(o.finalAttributes); + checkUnnamed1814(o.issues); + checkUnnamed1815(o.manuallyDeletedAttributes); + checkAttributes(o.manuallyProvidedAttributes); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.parent, unittest.equals('foo')); + unittest.expect(o.productId, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + checkAttributes(o.uploadedAttributes); + } + buildCounterProduct--; +} + + +main() { + unittest.group("obj-schema-Attributes", () { + unittest.test("to-json--from-json", () { + var o = buildAttributes(); + var od = new api.Attributes.fromJson(o.toJson()); + checkAttributes(od); + }); + }); + + + unittest.group("obj-schema-Issue", () { + unittest.test("to-json--from-json", () { + var o = buildIssue(); + var od = new api.Issue.fromJson(o.toJson()); + checkIssue(od); + }); + }); + + + unittest.group("obj-schema-ListProductsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListProductsResponse(); + var od = new api.ListProductsResponse.fromJson(o.toJson()); + checkListProductsResponse(od); + }); + }); + + + unittest.group("obj-schema-Product", () { + unittest.test("to-json--from-json", () { + var o = buildProduct(); + var od = new api.Product.fromJson(o.toJson()); + checkProduct(od); + }); + }); + + + unittest.group("resource-AccountsProductsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; + var arg_parent = "foo"; + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildProduct()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_parent, arg_name).then(unittest.expectAsync(((api.Product response) { + checkProduct(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListProductsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListProductsResponse response) { + checkListProductsResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/mirror/v1_test.dart b/generated/googleapis/test/mirror/v1_test.dart index 9b71c91..26df054 100644 --- a/generated/googleapis/test/mirror/v1_test.dart +++ b/generated/googleapis/test/mirror/v1_test.dart
@@ -51,40 +51,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1471() { +buildUnnamed1481() { var o = new core.List<api.AuthToken>(); o.add(buildAuthToken()); o.add(buildAuthToken()); return o; } -checkUnnamed1471(core.List<api.AuthToken> o) { +checkUnnamed1481(core.List<api.AuthToken> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthToken(o[0]); checkAuthToken(o[1]); } -buildUnnamed1472() { +buildUnnamed1482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1472(core.List<core.String> o) { +checkUnnamed1482(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1473() { +buildUnnamed1483() { var o = new core.List<api.UserData>(); o.add(buildUserData()); o.add(buildUserData()); return o; } -checkUnnamed1473(core.List<api.UserData> o) { +checkUnnamed1483(core.List<api.UserData> o) { unittest.expect(o, unittest.hasLength(2)); checkUserData(o[0]); checkUserData(o[1]); @@ -95,10 +95,10 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.authTokens = buildUnnamed1471(); - o.features = buildUnnamed1472(); + o.authTokens = buildUnnamed1481(); + o.features = buildUnnamed1482(); o.password = "foo"; - o.userData = buildUnnamed1473(); + o.userData = buildUnnamed1483(); } buildCounterAccount--; return o; @@ -107,10 +107,10 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1471(o.authTokens); - checkUnnamed1472(o.features); + checkUnnamed1481(o.authTokens); + checkUnnamed1482(o.features); unittest.expect(o.password, unittest.equals('foo')); - checkUnnamed1473(o.userData); + checkUnnamed1483(o.userData); } buildCounterAccount--; } @@ -140,14 +140,14 @@ buildCounterAttachment--; } -buildUnnamed1474() { +buildUnnamed1484() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1474(core.List<api.Attachment> o) { +checkUnnamed1484(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -158,7 +158,7 @@ var o = new api.AttachmentsListResponse(); buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - o.items = buildUnnamed1474(); + o.items = buildUnnamed1484(); o.kind = "foo"; } buildCounterAttachmentsListResponse--; @@ -168,7 +168,7 @@ checkAttachmentsListResponse(api.AttachmentsListResponse o) { buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - checkUnnamed1474(o.items); + checkUnnamed1484(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAttachmentsListResponse--; @@ -214,53 +214,53 @@ buildCounterCommand--; } -buildUnnamed1475() { +buildUnnamed1485() { var o = new core.List<api.Command>(); o.add(buildCommand()); o.add(buildCommand()); return o; } -checkUnnamed1475(core.List<api.Command> o) { +checkUnnamed1485(core.List<api.Command> o) { unittest.expect(o, unittest.hasLength(2)); checkCommand(o[0]); checkCommand(o[1]); } -buildUnnamed1476() { +buildUnnamed1486() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1476(core.List<core.String> o) { +checkUnnamed1486(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1477() { +buildUnnamed1487() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1477(core.List<core.String> o) { +checkUnnamed1487(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1478() { +buildUnnamed1488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1478(core.List<core.String> o) { +checkUnnamed1488(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -271,15 +271,15 @@ var o = new api.Contact(); buildCounterContact++; if (buildCounterContact < 3) { - o.acceptCommands = buildUnnamed1475(); - o.acceptTypes = buildUnnamed1476(); + o.acceptCommands = buildUnnamed1485(); + o.acceptTypes = buildUnnamed1486(); o.displayName = "foo"; o.id = "foo"; - o.imageUrls = buildUnnamed1477(); + o.imageUrls = buildUnnamed1487(); o.kind = "foo"; o.phoneNumber = "foo"; o.priority = 42; - o.sharingFeatures = buildUnnamed1478(); + o.sharingFeatures = buildUnnamed1488(); o.source = "foo"; o.speakableName = "foo"; o.type = "foo"; @@ -291,15 +291,15 @@ checkContact(api.Contact o) { buildCounterContact++; if (buildCounterContact < 3) { - checkUnnamed1475(o.acceptCommands); - checkUnnamed1476(o.acceptTypes); + checkUnnamed1485(o.acceptCommands); + checkUnnamed1486(o.acceptTypes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1477(o.imageUrls); + checkUnnamed1487(o.imageUrls); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); - checkUnnamed1478(o.sharingFeatures); + checkUnnamed1488(o.sharingFeatures); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.speakableName, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -307,14 +307,14 @@ buildCounterContact--; } -buildUnnamed1479() { +buildUnnamed1489() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1479(core.List<api.Contact> o) { +checkUnnamed1489(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -325,7 +325,7 @@ var o = new api.ContactsListResponse(); buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - o.items = buildUnnamed1479(); + o.items = buildUnnamed1489(); o.kind = "foo"; } buildCounterContactsListResponse--; @@ -335,7 +335,7 @@ checkContactsListResponse(api.ContactsListResponse o) { buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - checkUnnamed1479(o.items); + checkUnnamed1489(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterContactsListResponse--; @@ -374,14 +374,14 @@ buildCounterLocation--; } -buildUnnamed1480() { +buildUnnamed1490() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1480(core.List<api.Location> o) { +checkUnnamed1490(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -392,7 +392,7 @@ var o = new api.LocationsListResponse(); buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - o.items = buildUnnamed1480(); + o.items = buildUnnamed1490(); o.kind = "foo"; } buildCounterLocationsListResponse--; @@ -402,20 +402,20 @@ checkLocationsListResponse(api.LocationsListResponse o) { buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - checkUnnamed1480(o.items); + checkUnnamed1490(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLocationsListResponse--; } -buildUnnamed1481() { +buildUnnamed1491() { var o = new core.List<api.MenuValue>(); o.add(buildMenuValue()); o.add(buildMenuValue()); return o; } -checkUnnamed1481(core.List<api.MenuValue> o) { +checkUnnamed1491(core.List<api.MenuValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuValue(o[0]); checkMenuValue(o[1]); @@ -431,7 +431,7 @@ o.id = "foo"; o.payload = "foo"; o.removeWhenSelected = true; - o.values = buildUnnamed1481(); + o.values = buildUnnamed1491(); } buildCounterMenuItem--; return o; @@ -445,7 +445,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.payload, unittest.equals('foo')); unittest.expect(o.removeWhenSelected, unittest.isTrue); - checkUnnamed1481(o.values); + checkUnnamed1491(o.values); } buildCounterMenuItem--; } @@ -473,14 +473,14 @@ buildCounterMenuValue--; } -buildUnnamed1482() { +buildUnnamed1492() { var o = new core.List<api.UserAction>(); o.add(buildUserAction()); o.add(buildUserAction()); return o; } -checkUnnamed1482(core.List<api.UserAction> o) { +checkUnnamed1492(core.List<api.UserAction> o) { unittest.expect(o, unittest.hasLength(2)); checkUserAction(o[0]); checkUserAction(o[1]); @@ -494,7 +494,7 @@ o.collection = "foo"; o.itemId = "foo"; o.operation = "foo"; - o.userActions = buildUnnamed1482(); + o.userActions = buildUnnamed1492(); o.userToken = "foo"; o.verifyToken = "foo"; } @@ -508,7 +508,7 @@ unittest.expect(o.collection, unittest.equals('foo')); unittest.expect(o.itemId, unittest.equals('foo')); unittest.expect(o.operation, unittest.equals('foo')); - checkUnnamed1482(o.userActions); + checkUnnamed1492(o.userActions); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); } @@ -559,14 +559,14 @@ buildCounterSetting--; } -buildUnnamed1483() { +buildUnnamed1493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1483(core.List<core.String> o) { +checkUnnamed1493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -582,7 +582,7 @@ o.id = "foo"; o.kind = "foo"; o.notification = buildNotification(); - o.operation = buildUnnamed1483(); + o.operation = buildUnnamed1493(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.userToken = "foo"; o.verifyToken = "foo"; @@ -599,7 +599,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkNotification(o.notification); - checkUnnamed1483(o.operation); + checkUnnamed1493(o.operation); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); @@ -607,14 +607,14 @@ buildCounterSubscription--; } -buildUnnamed1484() { +buildUnnamed1494() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1484(core.List<api.Subscription> o) { +checkUnnamed1494(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -625,7 +625,7 @@ var o = new api.SubscriptionsListResponse(); buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - o.items = buildUnnamed1484(); + o.items = buildUnnamed1494(); o.kind = "foo"; } buildCounterSubscriptionsListResponse--; @@ -635,46 +635,46 @@ checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - checkUnnamed1484(o.items); + checkUnnamed1494(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSubscriptionsListResponse--; } -buildUnnamed1485() { +buildUnnamed1495() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1485(core.List<api.Attachment> o) { +checkUnnamed1495(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); } -buildUnnamed1486() { +buildUnnamed1496() { var o = new core.List<api.MenuItem>(); o.add(buildMenuItem()); o.add(buildMenuItem()); return o; } -checkUnnamed1486(core.List<api.MenuItem> o) { +checkUnnamed1496(core.List<api.MenuItem> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuItem(o[0]); checkMenuItem(o[1]); } -buildUnnamed1487() { +buildUnnamed1497() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1487(core.List<api.Contact> o) { +checkUnnamed1497(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -685,7 +685,7 @@ var o = new api.TimelineItem(); buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - o.attachments = buildUnnamed1485(); + o.attachments = buildUnnamed1495(); o.bundleId = "foo"; o.canonicalUrl = "foo"; o.created = core.DateTime.parse("2002-02-27T14:01:02"); @@ -700,10 +700,10 @@ o.isPinned = true; o.kind = "foo"; o.location = buildLocation(); - o.menuItems = buildUnnamed1486(); + o.menuItems = buildUnnamed1496(); o.notification = buildNotificationConfig(); o.pinScore = 42; - o.recipients = buildUnnamed1487(); + o.recipients = buildUnnamed1497(); o.selfLink = "foo"; o.sourceItemId = "foo"; o.speakableText = "foo"; @@ -719,7 +719,7 @@ checkTimelineItem(api.TimelineItem o) { buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - checkUnnamed1485(o.attachments); + checkUnnamed1495(o.attachments); unittest.expect(o.bundleId, unittest.equals('foo')); unittest.expect(o.canonicalUrl, unittest.equals('foo')); unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -734,10 +734,10 @@ unittest.expect(o.isPinned, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkLocation(o.location); - checkUnnamed1486(o.menuItems); + checkUnnamed1496(o.menuItems); checkNotificationConfig(o.notification); unittest.expect(o.pinScore, unittest.equals(42)); - checkUnnamed1487(o.recipients); + checkUnnamed1497(o.recipients); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sourceItemId, unittest.equals('foo')); unittest.expect(o.speakableText, unittest.equals('foo')); @@ -749,14 +749,14 @@ buildCounterTimelineItem--; } -buildUnnamed1488() { +buildUnnamed1498() { var o = new core.List<api.TimelineItem>(); o.add(buildTimelineItem()); o.add(buildTimelineItem()); return o; } -checkUnnamed1488(core.List<api.TimelineItem> o) { +checkUnnamed1498(core.List<api.TimelineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTimelineItem(o[0]); checkTimelineItem(o[1]); @@ -767,7 +767,7 @@ var o = new api.TimelineListResponse(); buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - o.items = buildUnnamed1488(); + o.items = buildUnnamed1498(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -778,7 +778,7 @@ checkTimelineListResponse(api.TimelineListResponse o) { buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - checkUnnamed1488(o.items); + checkUnnamed1498(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/monitoring/v3_test.dart b/generated/googleapis/test/monitoring/v3_test.dart index fffa8b1..70b1640 100644 --- a/generated/googleapis/test/monitoring/v3_test.dart +++ b/generated/googleapis/test/monitoring/v3_test.dart
@@ -74,27 +74,27 @@ buildCounterBucketOptions--; } -buildUnnamed1511() { +buildUnnamed1521() { var o = new core.Map<core.String, api.TypedValue>(); o["x"] = buildTypedValue(); o["y"] = buildTypedValue(); return o; } -checkUnnamed1511(core.Map<core.String, api.TypedValue> o) { +checkUnnamed1521(core.Map<core.String, api.TypedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTypedValue(o["x"]); checkTypedValue(o["y"]); } -buildUnnamed1512() { +buildUnnamed1522() { var o = new core.List<api.CollectdValue>(); o.add(buildCollectdValue()); o.add(buildCollectdValue()); return o; } -checkUnnamed1512(core.List<api.CollectdValue> o) { +checkUnnamed1522(core.List<api.CollectdValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdValue(o[0]); checkCollectdValue(o[1]); @@ -106,13 +106,13 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { o.endTime = "foo"; - o.metadata = buildUnnamed1511(); + o.metadata = buildUnnamed1521(); o.plugin = "foo"; o.pluginInstance = "foo"; o.startTime = "foo"; o.type = "foo"; o.typeInstance = "foo"; - o.values = buildUnnamed1512(); + o.values = buildUnnamed1522(); } buildCounterCollectdPayload--; return o; @@ -122,13 +122,13 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1511(o.metadata); + checkUnnamed1521(o.metadata); unittest.expect(o.plugin, unittest.equals('foo')); unittest.expect(o.pluginInstance, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.typeInstance, unittest.equals('foo')); - checkUnnamed1512(o.values); + checkUnnamed1522(o.values); } buildCounterCollectdPayload--; } @@ -156,14 +156,14 @@ buildCounterCollectdValue--; } -buildUnnamed1513() { +buildUnnamed1523() { var o = new core.List<api.CollectdPayload>(); o.add(buildCollectdPayload()); o.add(buildCollectdPayload()); return o; } -checkUnnamed1513(core.List<api.CollectdPayload> o) { +checkUnnamed1523(core.List<api.CollectdPayload> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdPayload(o[0]); checkCollectdPayload(o[1]); @@ -174,7 +174,7 @@ var o = new api.CreateCollectdTimeSeriesRequest(); buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - o.collectdPayloads = buildUnnamed1513(); + o.collectdPayloads = buildUnnamed1523(); o.collectdVersion = "foo"; o.resource = buildMonitoredResource(); } @@ -185,21 +185,21 @@ checkCreateCollectdTimeSeriesRequest(api.CreateCollectdTimeSeriesRequest o) { buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - checkUnnamed1513(o.collectdPayloads); + checkUnnamed1523(o.collectdPayloads); unittest.expect(o.collectdVersion, unittest.equals('foo')); checkMonitoredResource(o.resource); } buildCounterCreateCollectdTimeSeriesRequest--; } -buildUnnamed1514() { +buildUnnamed1524() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1514(core.List<api.TimeSeries> o) { +checkUnnamed1524(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -210,7 +210,7 @@ var o = new api.CreateTimeSeriesRequest(); buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - o.timeSeries = buildUnnamed1514(); + o.timeSeries = buildUnnamed1524(); } buildCounterCreateTimeSeriesRequest--; return o; @@ -219,19 +219,19 @@ checkCreateTimeSeriesRequest(api.CreateTimeSeriesRequest o) { buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - checkUnnamed1514(o.timeSeries); + checkUnnamed1524(o.timeSeries); } buildCounterCreateTimeSeriesRequest--; } -buildUnnamed1515() { +buildUnnamed1525() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1515(core.List<core.String> o) { +checkUnnamed1525(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -242,7 +242,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1515(); + o.bucketCounts = buildUnnamed1525(); o.bucketOptions = buildBucketOptions(); o.count = "foo"; o.mean = 42.0; @@ -256,7 +256,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1515(o.bucketCounts); + checkUnnamed1525(o.bucketCounts); checkBucketOptions(o.bucketOptions); unittest.expect(o.count, unittest.equals('foo')); unittest.expect(o.mean, unittest.equals(42.0)); @@ -283,14 +283,14 @@ buildCounterEmpty--; } -buildUnnamed1516() { +buildUnnamed1526() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1516(core.List<core.double> o) { +checkUnnamed1526(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -301,7 +301,7 @@ var o = new api.Explicit(); buildCounterExplicit++; if (buildCounterExplicit < 3) { - o.bounds = buildUnnamed1516(); + o.bounds = buildUnnamed1526(); } buildCounterExplicit--; return o; @@ -310,7 +310,7 @@ checkExplicit(api.Explicit o) { buildCounterExplicit++; if (buildCounterExplicit < 3) { - checkUnnamed1516(o.bounds); + checkUnnamed1526(o.bounds); } buildCounterExplicit--; } @@ -338,14 +338,14 @@ buildCounterExponential--; } -buildUnnamed1517() { +buildUnnamed1527() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1517(core.List<api.Option> o) { +checkUnnamed1527(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -363,7 +363,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1517(); + o.options = buildUnnamed1527(); o.packed = true; o.typeUrl = "foo"; } @@ -381,7 +381,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1517(o.options); + checkUnnamed1527(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } @@ -461,14 +461,14 @@ buildCounterLinear--; } -buildUnnamed1518() { +buildUnnamed1528() { var o = new core.List<api.MonitoredResource>(); o.add(buildMonitoredResource()); o.add(buildMonitoredResource()); return o; } -checkUnnamed1518(core.List<api.MonitoredResource> o) { +checkUnnamed1528(core.List<api.MonitoredResource> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResource(o[0]); checkMonitoredResource(o[1]); @@ -479,7 +479,7 @@ var o = new api.ListGroupMembersResponse(); buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - o.members = buildUnnamed1518(); + o.members = buildUnnamed1528(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -490,21 +490,21 @@ checkListGroupMembersResponse(api.ListGroupMembersResponse o) { buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - checkUnnamed1518(o.members); + checkUnnamed1528(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListGroupMembersResponse--; } -buildUnnamed1519() { +buildUnnamed1529() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed1519(core.List<api.Group> o) { +checkUnnamed1529(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -515,7 +515,7 @@ var o = new api.ListGroupsResponse(); buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - o.group = buildUnnamed1519(); + o.group = buildUnnamed1529(); o.nextPageToken = "foo"; } buildCounterListGroupsResponse--; @@ -525,20 +525,20 @@ checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed1519(o.group); + checkUnnamed1529(o.group); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGroupsResponse--; } -buildUnnamed1520() { +buildUnnamed1530() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1520(core.List<api.MetricDescriptor> o) { +checkUnnamed1530(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); @@ -549,7 +549,7 @@ var o = new api.ListMetricDescriptorsResponse(); buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - o.metricDescriptors = buildUnnamed1520(); + o.metricDescriptors = buildUnnamed1530(); o.nextPageToken = "foo"; } buildCounterListMetricDescriptorsResponse--; @@ -559,20 +559,20 @@ checkListMetricDescriptorsResponse(api.ListMetricDescriptorsResponse o) { buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - checkUnnamed1520(o.metricDescriptors); + checkUnnamed1530(o.metricDescriptors); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMetricDescriptorsResponse--; } -buildUnnamed1521() { +buildUnnamed1531() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1521(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1531(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -584,7 +584,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed1521(); + o.resourceDescriptors = buildUnnamed1531(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -594,19 +594,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1521(o.resourceDescriptors); + checkUnnamed1531(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed1522() { +buildUnnamed1532() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1522(core.List<api.TimeSeries> o) { +checkUnnamed1532(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -618,7 +618,7 @@ buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { o.nextPageToken = "foo"; - o.timeSeries = buildUnnamed1522(); + o.timeSeries = buildUnnamed1532(); } buildCounterListTimeSeriesResponse--; return o; @@ -628,19 +628,19 @@ buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1522(o.timeSeries); + checkUnnamed1532(o.timeSeries); } buildCounterListTimeSeriesResponse--; } -buildUnnamed1523() { +buildUnnamed1533() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1523(core.Map<core.String, core.String> o) { +checkUnnamed1533(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -651,7 +651,7 @@ var o = new api.Metric(); buildCounterMetric++; if (buildCounterMetric < 3) { - o.labels = buildUnnamed1523(); + o.labels = buildUnnamed1533(); o.type = "foo"; } buildCounterMetric--; @@ -661,20 +661,20 @@ checkMetric(api.Metric o) { buildCounterMetric++; if (buildCounterMetric < 3) { - checkUnnamed1523(o.labels); + checkUnnamed1533(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMetric--; } -buildUnnamed1524() { +buildUnnamed1534() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1524(core.List<api.LabelDescriptor> o) { +checkUnnamed1534(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -687,7 +687,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1524(); + o.labels = buildUnnamed1534(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -703,7 +703,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1524(o.labels); + checkUnnamed1534(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -713,14 +713,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed1525() { +buildUnnamed1535() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1525(core.Map<core.String, core.String> o) { +checkUnnamed1535(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -731,7 +731,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed1525(); + o.labels = buildUnnamed1535(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -741,20 +741,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed1525(o.labels); + checkUnnamed1535(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed1526() { +buildUnnamed1536() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1526(core.List<api.LabelDescriptor> o) { +checkUnnamed1536(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -767,7 +767,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1526(); + o.labels = buildUnnamed1536(); o.name = "foo"; o.type = "foo"; } @@ -780,21 +780,21 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1526(o.labels); + checkUnnamed1536(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1527() { +buildUnnamed1537() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1527(core.Map<core.String, core.Object> o) { +checkUnnamed1537(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -806,7 +806,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1527(); + o.value = buildUnnamed1537(); } buildCounterOption--; return o; @@ -816,7 +816,7 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1527(o.value); + checkUnnamed1537(o.value); } buildCounterOption--; } @@ -903,14 +903,14 @@ buildCounterTimeInterval--; } -buildUnnamed1528() { +buildUnnamed1538() { var o = new core.List<api.Point>(); o.add(buildPoint()); o.add(buildPoint()); return o; } -checkUnnamed1528(core.List<api.Point> o) { +checkUnnamed1538(core.List<api.Point> o) { unittest.expect(o, unittest.hasLength(2)); checkPoint(o[0]); checkPoint(o[1]); @@ -923,7 +923,7 @@ if (buildCounterTimeSeries < 3) { o.metric = buildMetric(); o.metricKind = "foo"; - o.points = buildUnnamed1528(); + o.points = buildUnnamed1538(); o.resource = buildMonitoredResource(); o.valueType = "foo"; } @@ -936,47 +936,47 @@ if (buildCounterTimeSeries < 3) { checkMetric(o.metric); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed1528(o.points); + checkUnnamed1538(o.points); checkMonitoredResource(o.resource); unittest.expect(o.valueType, unittest.equals('foo')); } buildCounterTimeSeries--; } -buildUnnamed1529() { +buildUnnamed1539() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1529(core.List<api.Field> o) { +checkUnnamed1539(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1530() { +buildUnnamed1540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1530(core.List<core.String> o) { +checkUnnamed1540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1531() { +buildUnnamed1541() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1531(core.List<api.Option> o) { +checkUnnamed1541(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -987,10 +987,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1529(); + o.fields = buildUnnamed1539(); o.name = "foo"; - o.oneofs = buildUnnamed1530(); - o.options = buildUnnamed1531(); + o.oneofs = buildUnnamed1540(); + o.options = buildUnnamed1541(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1001,10 +1001,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1529(o.fields); + checkUnnamed1539(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1530(o.oneofs); - checkUnnamed1531(o.options); + checkUnnamed1540(o.oneofs); + checkUnnamed1541(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -1038,14 +1038,14 @@ buildCounterTypedValue--; } -buildUnnamed1532() { +buildUnnamed1542() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1532(core.List<core.String> o) { +checkUnnamed1542(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1523,10 +1523,10 @@ var mock = new HttpServerMock(); api.ProjectsGroupsResourceApi res = new api.MonitoringApi(mock).projects.groups; var arg_name = "foo"; - var arg_childrenOfGroup = "foo"; - var arg_ancestorsOfGroup = "foo"; var arg_descendantsOfGroup = "foo"; var arg_pageSize = 42; + var arg_childrenOfGroup = "foo"; + var arg_ancestorsOfGroup = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1555,10 +1555,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["childrenOfGroup"].first, unittest.equals(arg_childrenOfGroup)); - unittest.expect(queryMap["ancestorsOfGroup"].first, unittest.equals(arg_ancestorsOfGroup)); unittest.expect(queryMap["descendantsOfGroup"].first, unittest.equals(arg_descendantsOfGroup)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["childrenOfGroup"].first, unittest.equals(arg_childrenOfGroup)); + unittest.expect(queryMap["ancestorsOfGroup"].first, unittest.equals(arg_ancestorsOfGroup)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1568,7 +1568,7 @@ var resp = convert.JSON.encode(buildListGroupsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, childrenOfGroup: arg_childrenOfGroup, ancestorsOfGroup: arg_ancestorsOfGroup, descendantsOfGroup: arg_descendantsOfGroup, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListGroupsResponse response) { + res.list(arg_name, descendantsOfGroup: arg_descendantsOfGroup, pageSize: arg_pageSize, childrenOfGroup: arg_childrenOfGroup, ancestorsOfGroup: arg_ancestorsOfGroup, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListGroupsResponse response) { checkListGroupsResponse(response); }))); }); @@ -1633,11 +1633,11 @@ var mock = new HttpServerMock(); api.ProjectsGroupsMembersResourceApi res = new api.MonitoringApi(mock).projects.groups.members; var arg_name = "foo"; - var arg_pageSize = 42; - var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_interval_endTime = "foo"; var arg_interval_startTime = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1665,11 +1665,11 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["interval.endTime"].first, unittest.equals(arg_interval_endTime)); unittest.expect(queryMap["interval.startTime"].first, unittest.equals(arg_interval_startTime)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1678,7 +1678,7 @@ var resp = convert.JSON.encode(buildListGroupMembersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageSize: arg_pageSize, pageToken: arg_pageToken, filter: arg_filter, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime).then(unittest.expectAsync(((api.ListGroupMembersResponse response) { + res.list(arg_name, filter: arg_filter, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListGroupMembersResponse response) { checkListGroupMembersResponse(response); }))); }); @@ -1831,8 +1831,8 @@ var mock = new HttpServerMock(); api.ProjectsMetricDescriptorsResourceApi res = new api.MonitoringApi(mock).projects.metricDescriptors; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1861,8 +1861,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1872,7 +1872,7 @@ var resp = convert.JSON.encode(buildListMetricDescriptorsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMetricDescriptorsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMetricDescriptorsResponse response) { checkListMetricDescriptorsResponse(response); }))); }); @@ -1931,8 +1931,8 @@ var mock = new HttpServerMock(); api.ProjectsMonitoredResourceDescriptorsResourceApi res = new api.MonitoringApi(mock).projects.monitoredResourceDescriptors; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1961,8 +1961,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1972,7 +1972,7 @@ var resp = convert.JSON.encode(buildListMonitoredResourceDescriptorsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { checkListMonitoredResourceDescriptorsResponse(response); }))); }); @@ -2036,15 +2036,15 @@ api.ProjectsTimeSeriesResourceApi res = new api.MonitoringApi(mock).projects.timeSeries; var arg_name = "foo"; var arg_filter = "foo"; + var arg_aggregation_groupByFields = buildUnnamed1542(); + var arg_aggregation_crossSeriesReducer = "foo"; var arg_interval_endTime = "foo"; var arg_interval_startTime = "foo"; + var arg_pageSize = 42; + var arg_view = "foo"; var arg_aggregation_alignmentPeriod = "foo"; var arg_aggregation_perSeriesAligner = "foo"; - var arg_aggregation_crossSeriesReducer = "foo"; - var arg_aggregation_groupByFields = buildUnnamed1532(); var arg_orderBy = "foo"; - var arg_view = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -2074,15 +2074,15 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["aggregation.groupByFields"], unittest.equals(arg_aggregation_groupByFields)); + unittest.expect(queryMap["aggregation.crossSeriesReducer"].first, unittest.equals(arg_aggregation_crossSeriesReducer)); unittest.expect(queryMap["interval.endTime"].first, unittest.equals(arg_interval_endTime)); unittest.expect(queryMap["interval.startTime"].first, unittest.equals(arg_interval_startTime)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["aggregation.alignmentPeriod"].first, unittest.equals(arg_aggregation_alignmentPeriod)); unittest.expect(queryMap["aggregation.perSeriesAligner"].first, unittest.equals(arg_aggregation_perSeriesAligner)); - unittest.expect(queryMap["aggregation.crossSeriesReducer"].first, unittest.equals(arg_aggregation_crossSeriesReducer)); - unittest.expect(queryMap["aggregation.groupByFields"], unittest.equals(arg_aggregation_groupByFields)); unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -2092,7 +2092,7 @@ var resp = convert.JSON.encode(buildListTimeSeriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime, aggregation_alignmentPeriod: arg_aggregation_alignmentPeriod, aggregation_perSeriesAligner: arg_aggregation_perSeriesAligner, aggregation_crossSeriesReducer: arg_aggregation_crossSeriesReducer, aggregation_groupByFields: arg_aggregation_groupByFields, orderBy: arg_orderBy, view: arg_view, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTimeSeriesResponse response) { + res.list(arg_name, filter: arg_filter, aggregation_groupByFields: arg_aggregation_groupByFields, aggregation_crossSeriesReducer: arg_aggregation_crossSeriesReducer, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime, pageSize: arg_pageSize, view: arg_view, aggregation_alignmentPeriod: arg_aggregation_alignmentPeriod, aggregation_perSeriesAligner: arg_aggregation_perSeriesAligner, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTimeSeriesResponse response) { checkListTimeSeriesResponse(response); }))); });
diff --git a/generated/googleapis/test/oauth2/v2_test.dart b/generated/googleapis/test/oauth2/v2_test.dart index ea8a216..12f4100 100644 --- a/generated/googleapis/test/oauth2/v2_test.dart +++ b/generated/googleapis/test/oauth2/v2_test.dart
@@ -80,14 +80,14 @@ buildCounterJwkKeys--; } -buildUnnamed2919() { +buildUnnamed2993() { var o = new core.List<api.JwkKeys>(); o.add(buildJwkKeys()); o.add(buildJwkKeys()); return o; } -checkUnnamed2919(core.List<api.JwkKeys> o) { +checkUnnamed2993(core.List<api.JwkKeys> o) { unittest.expect(o, unittest.hasLength(2)); checkJwkKeys(o[0]); checkJwkKeys(o[1]); @@ -98,7 +98,7 @@ var o = new api.Jwk(); buildCounterJwk++; if (buildCounterJwk < 3) { - o.keys = buildUnnamed2919(); + o.keys = buildUnnamed2993(); } buildCounterJwk--; return o; @@ -107,7 +107,7 @@ checkJwk(api.Jwk o) { buildCounterJwk++; if (buildCounterJwk < 3) { - checkUnnamed2919(o.keys); + checkUnnamed2993(o.keys); } buildCounterJwk--; }
diff --git a/generated/googleapis/test/pagespeedonline/v1_test.dart b/generated/googleapis/test/pagespeedonline/v1_test.dart index f0c1b6e..701d22e 100644 --- a/generated/googleapis/test/pagespeedonline/v1_test.dart +++ b/generated/googleapis/test/pagespeedonline/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs--; } -buildUnnamed2920() { +buildUnnamed2994() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs()); return o; } -checkUnnamed2920(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs> o) { +checkUnnamed2994(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs(o[1]); @@ -90,7 +90,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksHeader(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader < 3) { - o.args = buildUnnamed2920(); + o.args = buildUnnamed2994(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -100,7 +100,7 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksHeader(api.ResultFormattedResultsRuleResultsValueUrlBlocksHeader o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader < 3) { - checkUnnamed2920(o.args); + checkUnnamed2994(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -127,14 +127,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs--; } -buildUnnamed2921() { +buildUnnamed2995() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs()); return o; } -checkUnnamed2921(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs> o) { +checkUnnamed2995(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs(o[1]); @@ -145,7 +145,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails < 3) { - o.args = buildUnnamed2921(); + o.args = buildUnnamed2995(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; @@ -155,20 +155,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails < 3) { - checkUnnamed2921(o.args); + checkUnnamed2995(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; } -buildUnnamed2922() { +buildUnnamed2996() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails()); return o; } -checkUnnamed2922(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails> o) { +checkUnnamed2996(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(o[1]); @@ -195,14 +195,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs--; } -buildUnnamed2923() { +buildUnnamed2997() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs()); return o; } -checkUnnamed2923(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs> o) { +checkUnnamed2997(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs(o[1]); @@ -213,7 +213,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult < 3) { - o.args = buildUnnamed2923(); + o.args = buildUnnamed2997(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult--; @@ -223,7 +223,7 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult < 3) { - checkUnnamed2923(o.args); + checkUnnamed2997(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult--; @@ -234,7 +234,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - o.details = buildUnnamed2922(); + o.details = buildUnnamed2996(); o.result = buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -244,20 +244,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed2922(o.details); + checkUnnamed2996(o.details); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed2924() { +buildUnnamed2998() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); return o; } -checkUnnamed2924(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { +checkUnnamed2998(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[1]); @@ -269,7 +269,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { o.header = buildResultFormattedResultsRuleResultsValueUrlBlocksHeader(); - o.urls = buildUnnamed2924(); + o.urls = buildUnnamed2998(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -279,19 +279,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkResultFormattedResultsRuleResultsValueUrlBlocksHeader(o.header); - checkUnnamed2924(o.urls); + checkUnnamed2998(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed2925() { +buildUnnamed2999() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed2925(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { +checkUnnamed2999(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[1]); @@ -304,7 +304,7 @@ if (buildCounterResultFormattedResultsRuleResultsValue < 3) { o.localizedRuleName = "foo"; o.ruleImpact = 42.0; - o.urlBlocks = buildUnnamed2925(); + o.urlBlocks = buildUnnamed2999(); } buildCounterResultFormattedResultsRuleResultsValue--; return o; @@ -315,19 +315,19 @@ if (buildCounterResultFormattedResultsRuleResultsValue < 3) { unittest.expect(o.localizedRuleName, unittest.equals('foo')); unittest.expect(o.ruleImpact, unittest.equals(42.0)); - checkUnnamed2925(o.urlBlocks); + checkUnnamed2999(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed2926() { +buildUnnamed3000() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); o["y"] = buildResultFormattedResultsRuleResultsValue(); return o; } -checkUnnamed2926(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { +checkUnnamed3000(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValue(o["x"]); checkResultFormattedResultsRuleResultsValue(o["y"]); @@ -339,7 +339,7 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { o.locale = "foo"; - o.ruleResults = buildUnnamed2926(); + o.ruleResults = buildUnnamed3000(); } buildCounterResultFormattedResults--; return o; @@ -349,19 +349,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2926(o.ruleResults); + checkUnnamed3000(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed2927() { +buildUnnamed3001() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2927(core.List<core.String> o) { +checkUnnamed3001(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -463,7 +463,7 @@ if (buildCounterResult < 3) { o.formattedResults = buildResultFormattedResults(); o.id = "foo"; - o.invalidRules = buildUnnamed2927(); + o.invalidRules = buildUnnamed3001(); o.kind = "foo"; o.pageStats = buildResultPageStats(); o.responseCode = 42; @@ -481,7 +481,7 @@ if (buildCounterResult < 3) { checkResultFormattedResults(o.formattedResults); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2927(o.invalidRules); + checkUnnamed3001(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); @@ -493,14 +493,14 @@ buildCounterResult--; } -buildUnnamed2928() { +buildUnnamed3002() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2928(core.List<core.String> o) { +checkUnnamed3002(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -642,7 +642,7 @@ var arg_url = "foo"; var arg_filterThirdPartyResources = true; var arg_locale = "foo"; - var arg_rule = buildUnnamed2928(); + var arg_rule = buildUnnamed3002(); var arg_screenshot = true; var arg_strategy = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/pagespeedonline/v2_test.dart b/generated/googleapis/test/pagespeedonline/v2_test.dart index bc28dd3..63b4103 100644 --- a/generated/googleapis/test/pagespeedonline/v2_test.dart +++ b/generated/googleapis/test/pagespeedonline/v2_test.dart
@@ -76,14 +76,14 @@ buildCounterPagespeedApiFormatStringV2ArgsRects--; } -buildUnnamed1315() { +buildUnnamed1336() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsRects>(); o.add(buildPagespeedApiFormatStringV2ArgsRects()); o.add(buildPagespeedApiFormatStringV2ArgsRects()); return o; } -checkUnnamed1315(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { +checkUnnamed1336(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2ArgsRects(o[0]); checkPagespeedApiFormatStringV2ArgsRects(o[1]); @@ -114,14 +114,14 @@ buildCounterPagespeedApiFormatStringV2ArgsSecondaryRects--; } -buildUnnamed1316() { +buildUnnamed1337() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects>(); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); return o; } -checkUnnamed1316(core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects> o) { +checkUnnamed1337(core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2ArgsSecondaryRects(o[0]); checkPagespeedApiFormatStringV2ArgsSecondaryRects(o[1]); @@ -133,8 +133,8 @@ buildCounterPagespeedApiFormatStringV2Args++; if (buildCounterPagespeedApiFormatStringV2Args < 3) { o.key = "foo"; - o.rects = buildUnnamed1315(); - o.secondaryRects = buildUnnamed1316(); + o.rects = buildUnnamed1336(); + o.secondaryRects = buildUnnamed1337(); o.type = "foo"; o.value = "foo"; } @@ -146,22 +146,22 @@ buildCounterPagespeedApiFormatStringV2Args++; if (buildCounterPagespeedApiFormatStringV2Args < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1315(o.rects); - checkUnnamed1316(o.secondaryRects); + checkUnnamed1336(o.rects); + checkUnnamed1337(o.secondaryRects); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2Args--; } -buildUnnamed1317() { +buildUnnamed1338() { var o = new core.List<api.PagespeedApiFormatStringV2Args>(); o.add(buildPagespeedApiFormatStringV2Args()); o.add(buildPagespeedApiFormatStringV2Args()); return o; } -checkUnnamed1317(core.List<api.PagespeedApiFormatStringV2Args> o) { +checkUnnamed1338(core.List<api.PagespeedApiFormatStringV2Args> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2Args(o[0]); checkPagespeedApiFormatStringV2Args(o[1]); @@ -172,7 +172,7 @@ var o = new api.PagespeedApiFormatStringV2(); buildCounterPagespeedApiFormatStringV2++; if (buildCounterPagespeedApiFormatStringV2 < 3) { - o.args = buildUnnamed1317(); + o.args = buildUnnamed1338(); o.format = "foo"; } buildCounterPagespeedApiFormatStringV2--; @@ -182,7 +182,7 @@ checkPagespeedApiFormatStringV2(api.PagespeedApiFormatStringV2 o) { buildCounterPagespeedApiFormatStringV2++; if (buildCounterPagespeedApiFormatStringV2 < 3) { - checkUnnamed1317(o.args); + checkUnnamed1338(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2--; @@ -242,27 +242,27 @@ buildCounterPagespeedApiImageV2--; } -buildUnnamed1318() { +buildUnnamed1339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1318(core.List<core.String> o) { +checkUnnamed1339(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1319() { +buildUnnamed1340() { var o = new core.List<api.PagespeedApiFormatStringV2>(); o.add(buildPagespeedApiFormatStringV2()); o.add(buildPagespeedApiFormatStringV2()); return o; } -checkUnnamed1319(core.List<api.PagespeedApiFormatStringV2> o) { +checkUnnamed1340(core.List<api.PagespeedApiFormatStringV2> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2(o[0]); checkPagespeedApiFormatStringV2(o[1]); @@ -273,7 +273,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - o.details = buildUnnamed1319(); + o.details = buildUnnamed1340(); o.result = buildPagespeedApiFormatStringV2(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -283,20 +283,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed1319(o.details); + checkUnnamed1340(o.details); checkPagespeedApiFormatStringV2(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed1320() { +buildUnnamed1341() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); return o; } -checkUnnamed1320(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { +checkUnnamed1341(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[1]); @@ -308,7 +308,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { o.header = buildPagespeedApiFormatStringV2(); - o.urls = buildUnnamed1320(); + o.urls = buildUnnamed1341(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -318,19 +318,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkPagespeedApiFormatStringV2(o.header); - checkUnnamed1320(o.urls); + checkUnnamed1341(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed1321() { +buildUnnamed1342() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed1321(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { +checkUnnamed1342(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[1]); @@ -341,11 +341,11 @@ var o = new api.ResultFormattedResultsRuleResultsValue(); buildCounterResultFormattedResultsRuleResultsValue++; if (buildCounterResultFormattedResultsRuleResultsValue < 3) { - o.groups = buildUnnamed1318(); + o.groups = buildUnnamed1339(); o.localizedRuleName = "foo"; o.ruleImpact = 42.0; o.summary = buildPagespeedApiFormatStringV2(); - o.urlBlocks = buildUnnamed1321(); + o.urlBlocks = buildUnnamed1342(); } buildCounterResultFormattedResultsRuleResultsValue--; return o; @@ -354,23 +354,23 @@ checkResultFormattedResultsRuleResultsValue(api.ResultFormattedResultsRuleResultsValue o) { buildCounterResultFormattedResultsRuleResultsValue++; if (buildCounterResultFormattedResultsRuleResultsValue < 3) { - checkUnnamed1318(o.groups); + checkUnnamed1339(o.groups); unittest.expect(o.localizedRuleName, unittest.equals('foo')); unittest.expect(o.ruleImpact, unittest.equals(42.0)); checkPagespeedApiFormatStringV2(o.summary); - checkUnnamed1321(o.urlBlocks); + checkUnnamed1342(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed1322() { +buildUnnamed1343() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); o["y"] = buildResultFormattedResultsRuleResultsValue(); return o; } -checkUnnamed1322(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { +checkUnnamed1343(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValue(o["x"]); checkResultFormattedResultsRuleResultsValue(o["y"]); @@ -382,7 +382,7 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { o.locale = "foo"; - o.ruleResults = buildUnnamed1322(); + o.ruleResults = buildUnnamed1343(); } buildCounterResultFormattedResults--; return o; @@ -392,19 +392,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1322(o.ruleResults); + checkUnnamed1343(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed1323() { +buildUnnamed1344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1323(core.List<core.String> o) { +checkUnnamed1344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -472,14 +472,14 @@ buildCounterResultRuleGroupsValue--; } -buildUnnamed1324() { +buildUnnamed1345() { var o = new core.Map<core.String, api.ResultRuleGroupsValue>(); o["x"] = buildResultRuleGroupsValue(); o["y"] = buildResultRuleGroupsValue(); return o; } -checkUnnamed1324(core.Map<core.String, api.ResultRuleGroupsValue> o) { +checkUnnamed1345(core.Map<core.String, api.ResultRuleGroupsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultRuleGroupsValue(o["x"]); checkResultRuleGroupsValue(o["y"]); @@ -513,11 +513,11 @@ if (buildCounterResult < 3) { o.formattedResults = buildResultFormattedResults(); o.id = "foo"; - o.invalidRules = buildUnnamed1323(); + o.invalidRules = buildUnnamed1344(); o.kind = "foo"; o.pageStats = buildResultPageStats(); o.responseCode = 42; - o.ruleGroups = buildUnnamed1324(); + o.ruleGroups = buildUnnamed1345(); o.screenshot = buildPagespeedApiImageV2(); o.title = "foo"; o.version = buildResultVersion(); @@ -531,11 +531,11 @@ if (buildCounterResult < 3) { checkResultFormattedResults(o.formattedResults); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1323(o.invalidRules); + checkUnnamed1344(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); - checkUnnamed1324(o.ruleGroups); + checkUnnamed1345(o.ruleGroups); checkPagespeedApiImageV2(o.screenshot); unittest.expect(o.title, unittest.equals('foo')); checkResultVersion(o.version); @@ -543,14 +543,14 @@ buildCounterResult--; } -buildUnnamed1325() { +buildUnnamed1346() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1325(core.List<core.String> o) { +checkUnnamed1346(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -692,7 +692,7 @@ var arg_url = "foo"; var arg_filterThirdPartyResources = true; var arg_locale = "foo"; - var arg_rule = buildUnnamed1325(); + var arg_rule = buildUnnamed1346(); var arg_screenshot = true; var arg_strategy = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/partners/v2_test.dart b/generated/googleapis/test/partners/v2_test.dart index 257f84c..a0b87fb 100644 --- a/generated/googleapis/test/partners/v2_test.dart +++ b/generated/googleapis/test/partners/v2_test.dart
@@ -72,14 +72,14 @@ buildCounterCertificationExamStatus--; } -buildUnnamed2257() { +buildUnnamed2016() { var o = new core.List<api.CertificationExamStatus>(); o.add(buildCertificationExamStatus()); o.add(buildCertificationExamStatus()); return o; } -checkUnnamed2257(core.List<api.CertificationExamStatus> o) { +checkUnnamed2016(core.List<api.CertificationExamStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCertificationExamStatus(o[0]); checkCertificationExamStatus(o[1]); @@ -90,7 +90,7 @@ var o = new api.CertificationStatus(); buildCounterCertificationStatus++; if (buildCounterCertificationStatus < 3) { - o.examStatuses = buildUnnamed2257(); + o.examStatuses = buildUnnamed2016(); o.isCertified = true; o.type = "foo"; } @@ -101,86 +101,86 @@ checkCertificationStatus(api.CertificationStatus o) { buildCounterCertificationStatus++; if (buildCounterCertificationStatus < 3) { - checkUnnamed2257(o.examStatuses); + checkUnnamed2016(o.examStatuses); unittest.expect(o.isCertified, unittest.isTrue); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCertificationStatus--; } -buildUnnamed2258() { +buildUnnamed2017() { var o = new core.List<api.CertificationStatus>(); o.add(buildCertificationStatus()); o.add(buildCertificationStatus()); return o; } -checkUnnamed2258(core.List<api.CertificationStatus> o) { +checkUnnamed2017(core.List<api.CertificationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCertificationStatus(o[0]); checkCertificationStatus(o[1]); } -buildUnnamed2259() { +buildUnnamed2018() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2259(core.List<core.String> o) { +checkUnnamed2018(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2260() { +buildUnnamed2019() { var o = new core.List<api.LocalizedCompanyInfo>(); o.add(buildLocalizedCompanyInfo()); o.add(buildLocalizedCompanyInfo()); return o; } -checkUnnamed2260(core.List<api.LocalizedCompanyInfo> o) { +checkUnnamed2019(core.List<api.LocalizedCompanyInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedCompanyInfo(o[0]); checkLocalizedCompanyInfo(o[1]); } -buildUnnamed2261() { +buildUnnamed2020() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2261(core.List<api.Location> o) { +checkUnnamed2020(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); } -buildUnnamed2262() { +buildUnnamed2021() { var o = new core.List<api.Rank>(); o.add(buildRank()); o.add(buildRank()); return o; } -checkUnnamed2262(core.List<api.Rank> o) { +checkUnnamed2021(core.List<api.Rank> o) { unittest.expect(o, unittest.hasLength(2)); checkRank(o[0]); checkRank(o[1]); } -buildUnnamed2263() { +buildUnnamed2022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2263(core.List<core.String> o) { +checkUnnamed2022(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -191,17 +191,17 @@ var o = new api.Company(); buildCounterCompany++; if (buildCounterCompany < 3) { - o.certificationStatuses = buildUnnamed2258(); + o.certificationStatuses = buildUnnamed2017(); o.convertedMinMonthlyBudget = buildMoney(); o.id = "foo"; - o.industries = buildUnnamed2259(); - o.localizedInfos = buildUnnamed2260(); - o.locations = buildUnnamed2261(); + o.industries = buildUnnamed2018(); + o.localizedInfos = buildUnnamed2019(); + o.locations = buildUnnamed2020(); o.name = "foo"; o.originalMinMonthlyBudget = buildMoney(); o.publicProfile = buildPublicProfile(); - o.ranks = buildUnnamed2262(); - o.services = buildUnnamed2263(); + o.ranks = buildUnnamed2021(); + o.services = buildUnnamed2022(); o.websiteUrl = "foo"; } buildCounterCompany--; @@ -211,17 +211,17 @@ checkCompany(api.Company o) { buildCounterCompany++; if (buildCounterCompany < 3) { - checkUnnamed2258(o.certificationStatuses); + checkUnnamed2017(o.certificationStatuses); checkMoney(o.convertedMinMonthlyBudget); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2259(o.industries); - checkUnnamed2260(o.localizedInfos); - checkUnnamed2261(o.locations); + checkUnnamed2018(o.industries); + checkUnnamed2019(o.localizedInfos); + checkUnnamed2020(o.locations); unittest.expect(o.name, unittest.equals('foo')); checkMoney(o.originalMinMonthlyBudget); checkPublicProfile(o.publicProfile); - checkUnnamed2262(o.ranks); - checkUnnamed2263(o.services); + checkUnnamed2021(o.ranks); + checkUnnamed2022(o.services); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterCompany--; @@ -296,14 +296,14 @@ buildCounterDebugInfo--; } -buildUnnamed2264() { +buildUnnamed2023() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2264(core.List<core.String> o) { +checkUnnamed2023(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -315,7 +315,7 @@ buildCounterEventData++; if (buildCounterEventData < 3) { o.key = "foo"; - o.values = buildUnnamed2264(); + o.values = buildUnnamed2023(); } buildCounterEventData--; return o; @@ -325,7 +325,7 @@ buildCounterEventData++; if (buildCounterEventData < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2264(o.values); + checkUnnamed2023(o.values); } buildCounterEventData--; } @@ -372,14 +372,14 @@ buildCounterLatLng--; } -buildUnnamed2265() { +buildUnnamed2024() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2265(core.List<core.String> o) { +checkUnnamed2024(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -394,7 +394,7 @@ o.email = "foo"; o.familyName = "foo"; o.givenName = "foo"; - o.gpsMotivations = buildUnnamed2265(); + o.gpsMotivations = buildUnnamed2024(); o.id = "foo"; o.minMonthlyBudget = buildMoney(); o.phoneNumber = "foo"; @@ -412,7 +412,7 @@ unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.familyName, unittest.equals('foo')); unittest.expect(o.givenName, unittest.equals('foo')); - checkUnnamed2265(o.gpsMotivations); + checkUnnamed2024(o.gpsMotivations); unittest.expect(o.id, unittest.equals('foo')); checkMoney(o.minMonthlyBudget); unittest.expect(o.phoneNumber, unittest.equals('foo')); @@ -422,14 +422,14 @@ buildCounterLead--; } -buildUnnamed2266() { +buildUnnamed2025() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed2266(core.List<api.Company> o) { +checkUnnamed2025(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -440,7 +440,7 @@ var o = new api.ListCompaniesResponse(); buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - o.companies = buildUnnamed2266(); + o.companies = buildUnnamed2025(); o.nextPageToken = "foo"; o.responseMetadata = buildResponseMetadata(); } @@ -451,21 +451,21 @@ checkListCompaniesResponse(api.ListCompaniesResponse o) { buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - checkUnnamed2266(o.companies); + checkUnnamed2025(o.companies); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkResponseMetadata(o.responseMetadata); } buildCounterListCompaniesResponse--; } -buildUnnamed2267() { +buildUnnamed2026() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2267(core.List<core.String> o) { +checkUnnamed2026(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -477,7 +477,7 @@ buildCounterListUserStatesResponse++; if (buildCounterListUserStatesResponse < 3) { o.responseMetadata = buildResponseMetadata(); - o.userStates = buildUnnamed2267(); + o.userStates = buildUnnamed2026(); } buildCounterListUserStatesResponse--; return o; @@ -487,19 +487,19 @@ buildCounterListUserStatesResponse++; if (buildCounterListUserStatesResponse < 3) { checkResponseMetadata(o.responseMetadata); - checkUnnamed2267(o.userStates); + checkUnnamed2026(o.userStates); } buildCounterListUserStatesResponse--; } -buildUnnamed2268() { +buildUnnamed2027() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2268(core.List<core.String> o) { +checkUnnamed2027(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -510,7 +510,7 @@ var o = new api.LocalizedCompanyInfo(); buildCounterLocalizedCompanyInfo++; if (buildCounterLocalizedCompanyInfo < 3) { - o.countryCodes = buildUnnamed2268(); + o.countryCodes = buildUnnamed2027(); o.displayName = "foo"; o.languageCode = "foo"; o.overview = "foo"; @@ -522,7 +522,7 @@ checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) { buildCounterLocalizedCompanyInfo++; if (buildCounterLocalizedCompanyInfo < 3) { - checkUnnamed2268(o.countryCodes); + checkUnnamed2027(o.countryCodes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); @@ -551,14 +551,14 @@ buildCounterLocation--; } -buildUnnamed2269() { +buildUnnamed2028() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2269(core.Map<core.String, core.String> o) { +checkUnnamed2028(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -569,7 +569,7 @@ var o = new api.LogMessageRequest(); buildCounterLogMessageRequest++; if (buildCounterLogMessageRequest < 3) { - o.clientInfo = buildUnnamed2269(); + o.clientInfo = buildUnnamed2028(); o.details = "foo"; o.level = "foo"; o.requestMetadata = buildRequestMetadata(); @@ -581,7 +581,7 @@ checkLogMessageRequest(api.LogMessageRequest o) { buildCounterLogMessageRequest++; if (buildCounterLogMessageRequest < 3) { - checkUnnamed2269(o.clientInfo); + checkUnnamed2028(o.clientInfo); unittest.expect(o.details, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); checkRequestMetadata(o.requestMetadata); @@ -608,14 +608,14 @@ buildCounterLogMessageResponse--; } -buildUnnamed2270() { +buildUnnamed2029() { var o = new core.List<api.EventData>(); o.add(buildEventData()); o.add(buildEventData()); return o; } -checkUnnamed2270(core.List<api.EventData> o) { +checkUnnamed2029(core.List<api.EventData> o) { unittest.expect(o, unittest.hasLength(2)); checkEventData(o[0]); checkEventData(o[1]); @@ -628,7 +628,7 @@ if (buildCounterLogUserEventRequest < 3) { o.eventAction = "foo"; o.eventCategory = "foo"; - o.eventDatas = buildUnnamed2270(); + o.eventDatas = buildUnnamed2029(); o.eventScope = "foo"; o.lead = buildLead(); o.requestMetadata = buildRequestMetadata(); @@ -643,7 +643,7 @@ if (buildCounterLogUserEventRequest < 3) { unittest.expect(o.eventAction, unittest.equals('foo')); unittest.expect(o.eventCategory, unittest.equals('foo')); - checkUnnamed2270(o.eventDatas); + checkUnnamed2029(o.eventDatas); unittest.expect(o.eventScope, unittest.equals('foo')); checkLead(o.lead); checkRequestMetadata(o.requestMetadata); @@ -761,14 +761,14 @@ buildCounterRecaptchaChallenge--; } -buildUnnamed2271() { +buildUnnamed2030() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2271(core.List<core.String> o) { +checkUnnamed2030(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -779,7 +779,7 @@ var o = new api.RequestMetadata(); buildCounterRequestMetadata++; if (buildCounterRequestMetadata < 3) { - o.experimentIds = buildUnnamed2271(); + o.experimentIds = buildUnnamed2030(); o.locale = "foo"; o.partnersSessionId = "foo"; o.trafficSource = buildTrafficSource(); @@ -792,7 +792,7 @@ checkRequestMetadata(api.RequestMetadata o) { buildCounterRequestMetadata++; if (buildCounterRequestMetadata < 3) { - checkUnnamed2271(o.experimentIds); + checkUnnamed2030(o.experimentIds); unittest.expect(o.locale, unittest.equals('foo')); unittest.expect(o.partnersSessionId, unittest.equals('foo')); checkTrafficSource(o.trafficSource); @@ -862,92 +862,92 @@ buildCounterUserOverrides--; } -buildUnnamed2272() { +buildUnnamed2031() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2272(core.List<core.String> o) { +checkUnnamed2031(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2273() { +buildUnnamed2032() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2273(core.List<core.String> o) { +checkUnnamed2032(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2274() { +buildUnnamed2033() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2274(core.List<core.String> o) { +checkUnnamed2033(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2275() { +buildUnnamed2034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2275(core.List<core.String> o) { +checkUnnamed2034(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2276() { +buildUnnamed2035() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2276(core.List<core.String> o) { +checkUnnamed2035(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2277() { +buildUnnamed2036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2277(core.List<core.String> o) { +checkUnnamed2036(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2278() { +buildUnnamed2037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2278(core.List<core.String> o) { +checkUnnamed2037(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1250,7 +1250,7 @@ var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed2272(); + var arg_requestMetadata_experimentIds = buildUnnamed2031(); var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_view = "foo"; @@ -1318,7 +1318,7 @@ var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed2273(); + var arg_requestMetadata_experimentIds = buildUnnamed2032(); var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_pageSize = 42; @@ -1331,12 +1331,12 @@ var arg_maxMonthlyBudget_currencyCode = "foo"; var arg_maxMonthlyBudget_units = "foo"; var arg_maxMonthlyBudget_nanos = 42; - var arg_industries = buildUnnamed2274(); - var arg_services = buildUnnamed2275(); - var arg_languageCodes = buildUnnamed2276(); + var arg_industries = buildUnnamed2033(); + var arg_services = buildUnnamed2034(); + var arg_languageCodes = buildUnnamed2035(); var arg_address = "foo"; var arg_orderBy = "foo"; - var arg_gpsMotivations = buildUnnamed2277(); + var arg_gpsMotivations = buildUnnamed2036(); var arg_websiteUrl = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1523,7 +1523,7 @@ var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed2278(); + var arg_requestMetadata_experimentIds = buildUnnamed2037(); var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_trafficSource_trafficSubId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/people/v1_test.dart b/generated/googleapis/test/people/v1_test.dart index 49fab60..07409ac 100644 --- a/generated/googleapis/test/people/v1_test.dart +++ b/generated/googleapis/test/people/v1_test.dart
@@ -337,14 +337,14 @@ buildCounterGender--; } -buildUnnamed1441() { +buildUnnamed1451() { var o = new core.List<api.PersonResponse>(); o.add(buildPersonResponse()); o.add(buildPersonResponse()); return o; } -checkUnnamed1441(core.List<api.PersonResponse> o) { +checkUnnamed1451(core.List<api.PersonResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonResponse(o[0]); checkPersonResponse(o[1]); @@ -355,7 +355,7 @@ var o = new api.GetPeopleResponse(); buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - o.responses = buildUnnamed1441(); + o.responses = buildUnnamed1451(); } buildCounterGetPeopleResponse--; return o; @@ -364,7 +364,7 @@ checkGetPeopleResponse(api.GetPeopleResponse o) { buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - checkUnnamed1441(o.responses); + checkUnnamed1451(o.responses); } buildCounterGetPeopleResponse--; } @@ -419,14 +419,14 @@ buildCounterInterest--; } -buildUnnamed1442() { +buildUnnamed1452() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed1442(core.List<api.Person> o) { +checkUnnamed1452(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -437,7 +437,7 @@ var o = new api.ListConnectionsResponse(); buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - o.connections = buildUnnamed1442(); + o.connections = buildUnnamed1452(); o.nextPageToken = "foo"; o.nextSyncToken = "foo"; } @@ -448,7 +448,7 @@ checkListConnectionsResponse(api.ListConnectionsResponse o) { buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - checkUnnamed1442(o.connections); + checkUnnamed1452(o.connections); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); } @@ -629,326 +629,326 @@ buildCounterOrganization--; } -buildUnnamed1443() { +buildUnnamed1453() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed1443(core.List<api.Address> o) { +checkUnnamed1453(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); } -buildUnnamed1444() { +buildUnnamed1454() { var o = new core.List<api.Biography>(); o.add(buildBiography()); o.add(buildBiography()); return o; } -checkUnnamed1444(core.List<api.Biography> o) { +checkUnnamed1454(core.List<api.Biography> o) { unittest.expect(o, unittest.hasLength(2)); checkBiography(o[0]); checkBiography(o[1]); } -buildUnnamed1445() { +buildUnnamed1455() { var o = new core.List<api.Birthday>(); o.add(buildBirthday()); o.add(buildBirthday()); return o; } -checkUnnamed1445(core.List<api.Birthday> o) { +checkUnnamed1455(core.List<api.Birthday> o) { unittest.expect(o, unittest.hasLength(2)); checkBirthday(o[0]); checkBirthday(o[1]); } -buildUnnamed1446() { +buildUnnamed1456() { var o = new core.List<api.BraggingRights>(); o.add(buildBraggingRights()); o.add(buildBraggingRights()); return o; } -checkUnnamed1446(core.List<api.BraggingRights> o) { +checkUnnamed1456(core.List<api.BraggingRights> o) { unittest.expect(o, unittest.hasLength(2)); checkBraggingRights(o[0]); checkBraggingRights(o[1]); } -buildUnnamed1447() { +buildUnnamed1457() { var o = new core.List<api.CoverPhoto>(); o.add(buildCoverPhoto()); o.add(buildCoverPhoto()); return o; } -checkUnnamed1447(core.List<api.CoverPhoto> o) { +checkUnnamed1457(core.List<api.CoverPhoto> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverPhoto(o[0]); checkCoverPhoto(o[1]); } -buildUnnamed1448() { +buildUnnamed1458() { var o = new core.List<api.EmailAddress>(); o.add(buildEmailAddress()); o.add(buildEmailAddress()); return o; } -checkUnnamed1448(core.List<api.EmailAddress> o) { +checkUnnamed1458(core.List<api.EmailAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkEmailAddress(o[0]); checkEmailAddress(o[1]); } -buildUnnamed1449() { +buildUnnamed1459() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1449(core.List<api.Event> o) { +checkUnnamed1459(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); } -buildUnnamed1450() { +buildUnnamed1460() { var o = new core.List<api.Gender>(); o.add(buildGender()); o.add(buildGender()); return o; } -checkUnnamed1450(core.List<api.Gender> o) { +checkUnnamed1460(core.List<api.Gender> o) { unittest.expect(o, unittest.hasLength(2)); checkGender(o[0]); checkGender(o[1]); } -buildUnnamed1451() { +buildUnnamed1461() { var o = new core.List<api.ImClient>(); o.add(buildImClient()); o.add(buildImClient()); return o; } -checkUnnamed1451(core.List<api.ImClient> o) { +checkUnnamed1461(core.List<api.ImClient> o) { unittest.expect(o, unittest.hasLength(2)); checkImClient(o[0]); checkImClient(o[1]); } -buildUnnamed1452() { +buildUnnamed1462() { var o = new core.List<api.Interest>(); o.add(buildInterest()); o.add(buildInterest()); return o; } -checkUnnamed1452(core.List<api.Interest> o) { +checkUnnamed1462(core.List<api.Interest> o) { unittest.expect(o, unittest.hasLength(2)); checkInterest(o[0]); checkInterest(o[1]); } -buildUnnamed1453() { +buildUnnamed1463() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed1453(core.List<api.Locale> o) { +checkUnnamed1463(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed1454() { +buildUnnamed1464() { var o = new core.List<api.Membership>(); o.add(buildMembership()); o.add(buildMembership()); return o; } -checkUnnamed1454(core.List<api.Membership> o) { +checkUnnamed1464(core.List<api.Membership> o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); } -buildUnnamed1455() { +buildUnnamed1465() { var o = new core.List<api.Name>(); o.add(buildName()); o.add(buildName()); return o; } -checkUnnamed1455(core.List<api.Name> o) { +checkUnnamed1465(core.List<api.Name> o) { unittest.expect(o, unittest.hasLength(2)); checkName(o[0]); checkName(o[1]); } -buildUnnamed1456() { +buildUnnamed1466() { var o = new core.List<api.Nickname>(); o.add(buildNickname()); o.add(buildNickname()); return o; } -checkUnnamed1456(core.List<api.Nickname> o) { +checkUnnamed1466(core.List<api.Nickname> o) { unittest.expect(o, unittest.hasLength(2)); checkNickname(o[0]); checkNickname(o[1]); } -buildUnnamed1457() { +buildUnnamed1467() { var o = new core.List<api.Occupation>(); o.add(buildOccupation()); o.add(buildOccupation()); return o; } -checkUnnamed1457(core.List<api.Occupation> o) { +checkUnnamed1467(core.List<api.Occupation> o) { unittest.expect(o, unittest.hasLength(2)); checkOccupation(o[0]); checkOccupation(o[1]); } -buildUnnamed1458() { +buildUnnamed1468() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed1458(core.List<api.Organization> o) { +checkUnnamed1468(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); } -buildUnnamed1459() { +buildUnnamed1469() { var o = new core.List<api.PhoneNumber>(); o.add(buildPhoneNumber()); o.add(buildPhoneNumber()); return o; } -checkUnnamed1459(core.List<api.PhoneNumber> o) { +checkUnnamed1469(core.List<api.PhoneNumber> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoneNumber(o[0]); checkPhoneNumber(o[1]); } -buildUnnamed1460() { +buildUnnamed1470() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed1460(core.List<api.Photo> o) { +checkUnnamed1470(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); } -buildUnnamed1461() { +buildUnnamed1471() { var o = new core.List<api.Relation>(); o.add(buildRelation()); o.add(buildRelation()); return o; } -checkUnnamed1461(core.List<api.Relation> o) { +checkUnnamed1471(core.List<api.Relation> o) { unittest.expect(o, unittest.hasLength(2)); checkRelation(o[0]); checkRelation(o[1]); } -buildUnnamed1462() { +buildUnnamed1472() { var o = new core.List<api.RelationshipInterest>(); o.add(buildRelationshipInterest()); o.add(buildRelationshipInterest()); return o; } -checkUnnamed1462(core.List<api.RelationshipInterest> o) { +checkUnnamed1472(core.List<api.RelationshipInterest> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipInterest(o[0]); checkRelationshipInterest(o[1]); } -buildUnnamed1463() { +buildUnnamed1473() { var o = new core.List<api.RelationshipStatus>(); o.add(buildRelationshipStatus()); o.add(buildRelationshipStatus()); return o; } -checkUnnamed1463(core.List<api.RelationshipStatus> o) { +checkUnnamed1473(core.List<api.RelationshipStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipStatus(o[0]); checkRelationshipStatus(o[1]); } -buildUnnamed1464() { +buildUnnamed1474() { var o = new core.List<api.Residence>(); o.add(buildResidence()); o.add(buildResidence()); return o; } -checkUnnamed1464(core.List<api.Residence> o) { +checkUnnamed1474(core.List<api.Residence> o) { unittest.expect(o, unittest.hasLength(2)); checkResidence(o[0]); checkResidence(o[1]); } -buildUnnamed1465() { +buildUnnamed1475() { var o = new core.List<api.Skill>(); o.add(buildSkill()); o.add(buildSkill()); return o; } -checkUnnamed1465(core.List<api.Skill> o) { +checkUnnamed1475(core.List<api.Skill> o) { unittest.expect(o, unittest.hasLength(2)); checkSkill(o[0]); checkSkill(o[1]); } -buildUnnamed1466() { +buildUnnamed1476() { var o = new core.List<api.Tagline>(); o.add(buildTagline()); o.add(buildTagline()); return o; } -checkUnnamed1466(core.List<api.Tagline> o) { +checkUnnamed1476(core.List<api.Tagline> o) { unittest.expect(o, unittest.hasLength(2)); checkTagline(o[0]); checkTagline(o[1]); } -buildUnnamed1467() { +buildUnnamed1477() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed1467(core.List<api.Url> o) { +checkUnnamed1477(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); @@ -959,35 +959,35 @@ var o = new api.Person(); buildCounterPerson++; if (buildCounterPerson < 3) { - o.addresses = buildUnnamed1443(); + o.addresses = buildUnnamed1453(); o.ageRange = "foo"; - o.biographies = buildUnnamed1444(); - o.birthdays = buildUnnamed1445(); - o.braggingRights = buildUnnamed1446(); - o.coverPhotos = buildUnnamed1447(); - o.emailAddresses = buildUnnamed1448(); + o.biographies = buildUnnamed1454(); + o.birthdays = buildUnnamed1455(); + o.braggingRights = buildUnnamed1456(); + o.coverPhotos = buildUnnamed1457(); + o.emailAddresses = buildUnnamed1458(); o.etag = "foo"; - o.events = buildUnnamed1449(); - o.genders = buildUnnamed1450(); - o.imClients = buildUnnamed1451(); - o.interests = buildUnnamed1452(); - o.locales = buildUnnamed1453(); - o.memberships = buildUnnamed1454(); + o.events = buildUnnamed1459(); + o.genders = buildUnnamed1460(); + o.imClients = buildUnnamed1461(); + o.interests = buildUnnamed1462(); + o.locales = buildUnnamed1463(); + o.memberships = buildUnnamed1464(); o.metadata = buildPersonMetadata(); - o.names = buildUnnamed1455(); - o.nicknames = buildUnnamed1456(); - o.occupations = buildUnnamed1457(); - o.organizations = buildUnnamed1458(); - o.phoneNumbers = buildUnnamed1459(); - o.photos = buildUnnamed1460(); - o.relations = buildUnnamed1461(); - o.relationshipInterests = buildUnnamed1462(); - o.relationshipStatuses = buildUnnamed1463(); - o.residences = buildUnnamed1464(); + o.names = buildUnnamed1465(); + o.nicknames = buildUnnamed1466(); + o.occupations = buildUnnamed1467(); + o.organizations = buildUnnamed1468(); + o.phoneNumbers = buildUnnamed1469(); + o.photos = buildUnnamed1470(); + o.relations = buildUnnamed1471(); + o.relationshipInterests = buildUnnamed1472(); + o.relationshipStatuses = buildUnnamed1473(); + o.residences = buildUnnamed1474(); o.resourceName = "foo"; - o.skills = buildUnnamed1465(); - o.taglines = buildUnnamed1466(); - o.urls = buildUnnamed1467(); + o.skills = buildUnnamed1475(); + o.taglines = buildUnnamed1476(); + o.urls = buildUnnamed1477(); } buildCounterPerson--; return o; @@ -996,60 +996,60 @@ checkPerson(api.Person o) { buildCounterPerson++; if (buildCounterPerson < 3) { - checkUnnamed1443(o.addresses); + checkUnnamed1453(o.addresses); unittest.expect(o.ageRange, unittest.equals('foo')); - checkUnnamed1444(o.biographies); - checkUnnamed1445(o.birthdays); - checkUnnamed1446(o.braggingRights); - checkUnnamed1447(o.coverPhotos); - checkUnnamed1448(o.emailAddresses); + checkUnnamed1454(o.biographies); + checkUnnamed1455(o.birthdays); + checkUnnamed1456(o.braggingRights); + checkUnnamed1457(o.coverPhotos); + checkUnnamed1458(o.emailAddresses); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1449(o.events); - checkUnnamed1450(o.genders); - checkUnnamed1451(o.imClients); - checkUnnamed1452(o.interests); - checkUnnamed1453(o.locales); - checkUnnamed1454(o.memberships); + checkUnnamed1459(o.events); + checkUnnamed1460(o.genders); + checkUnnamed1461(o.imClients); + checkUnnamed1462(o.interests); + checkUnnamed1463(o.locales); + checkUnnamed1464(o.memberships); checkPersonMetadata(o.metadata); - checkUnnamed1455(o.names); - checkUnnamed1456(o.nicknames); - checkUnnamed1457(o.occupations); - checkUnnamed1458(o.organizations); - checkUnnamed1459(o.phoneNumbers); - checkUnnamed1460(o.photos); - checkUnnamed1461(o.relations); - checkUnnamed1462(o.relationshipInterests); - checkUnnamed1463(o.relationshipStatuses); - checkUnnamed1464(o.residences); + checkUnnamed1465(o.names); + checkUnnamed1466(o.nicknames); + checkUnnamed1467(o.occupations); + checkUnnamed1468(o.organizations); + checkUnnamed1469(o.phoneNumbers); + checkUnnamed1470(o.photos); + checkUnnamed1471(o.relations); + checkUnnamed1472(o.relationshipInterests); + checkUnnamed1473(o.relationshipStatuses); + checkUnnamed1474(o.residences); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed1465(o.skills); - checkUnnamed1466(o.taglines); - checkUnnamed1467(o.urls); + checkUnnamed1475(o.skills); + checkUnnamed1476(o.taglines); + checkUnnamed1477(o.urls); } buildCounterPerson--; } -buildUnnamed1468() { +buildUnnamed1478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1468(core.List<core.String> o) { +checkUnnamed1478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1469() { +buildUnnamed1479() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed1469(core.List<api.Source> o) { +checkUnnamed1479(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -1062,8 +1062,8 @@ if (buildCounterPersonMetadata < 3) { o.deleted = true; o.objectType = "foo"; - o.previousResourceNames = buildUnnamed1468(); - o.sources = buildUnnamed1469(); + o.previousResourceNames = buildUnnamed1478(); + o.sources = buildUnnamed1479(); } buildCounterPersonMetadata--; return o; @@ -1074,8 +1074,8 @@ if (buildCounterPersonMetadata < 3) { unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed1468(o.previousResourceNames); - checkUnnamed1469(o.sources); + checkUnnamed1478(o.previousResourceNames); + checkUnnamed1479(o.sources); } buildCounterPersonMetadata--; } @@ -1333,14 +1333,14 @@ buildCounterUrl--; } -buildUnnamed1470() { +buildUnnamed1480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1470(core.List<core.String> o) { +checkUnnamed1480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1715,7 +1715,7 @@ var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PeopleApi(mock).people; - var arg_resourceNames = buildUnnamed1470(); + var arg_resourceNames = buildUnnamed1480(); var arg_requestMask_includeField = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/playmoviespartner/v1_test.dart b/generated/googleapis/test/playmoviespartner/v1_test.dart index 2fa43d5..afdc450 100644 --- a/generated/googleapis/test/playmoviespartner/v1_test.dart +++ b/generated/googleapis/test/playmoviespartner/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3415() { +buildUnnamed3229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3415(core.List<core.String> o) { +checkUnnamed3229(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,7 +82,7 @@ o.episodeTitleInternalAlias = "foo"; o.formatProfile = "foo"; o.licenseType = "foo"; - o.pphNames = buildUnnamed3415(); + o.pphNames = buildUnnamed3229(); o.priceType = "foo"; o.priceValue = "foo"; o.productId = "foo"; @@ -123,7 +123,7 @@ unittest.expect(o.episodeTitleInternalAlias, unittest.equals('foo')); unittest.expect(o.formatProfile, unittest.equals('foo')); unittest.expect(o.licenseType, unittest.equals('foo')); - checkUnnamed3415(o.pphNames); + checkUnnamed3229(o.pphNames); unittest.expect(o.priceType, unittest.equals('foo')); unittest.expect(o.priceValue, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); @@ -147,79 +147,79 @@ buildCounterAvail--; } -buildUnnamed3416() { +buildUnnamed3230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3416(core.List<core.String> o) { +checkUnnamed3230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3417() { +buildUnnamed3231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3417(core.List<core.String> o) { +checkUnnamed3231(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3418() { +buildUnnamed3232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3418(core.List<core.String> o) { +checkUnnamed3232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3419() { +buildUnnamed3233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3419(core.List<core.String> o) { +checkUnnamed3233(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3420() { +buildUnnamed3234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3420(core.List<core.String> o) { +checkUnnamed3234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3421() { +buildUnnamed3235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3421(core.List<core.String> o) { +checkUnnamed3235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -230,13 +230,13 @@ var o = new api.Component(); buildCounterComponent++; if (buildCounterComponent < 3) { - o.altCutIds = buildUnnamed3416(); + o.altCutIds = buildUnnamed3230(); o.approvedTime = "foo"; o.componentDetailType = "foo"; o.componentId = "foo"; - o.customIds = buildUnnamed3417(); - o.editLevelEidrs = buildUnnamed3418(); - o.elIds = buildUnnamed3419(); + o.customIds = buildUnnamed3231(); + o.editLevelEidrs = buildUnnamed3232(); + o.elIds = buildUnnamed3233(); o.filename = "foo"; o.language = "foo"; o.name = "foo"; @@ -244,13 +244,13 @@ o.playableUnitType = "foo"; o.pphName = "foo"; o.priority = 42.0; - o.processingErrors = buildUnnamed3420(); + o.processingErrors = buildUnnamed3234(); o.receivedTime = "foo"; o.rejectionNote = "foo"; o.status = "foo"; o.statusDetail = "foo"; o.studioName = "foo"; - o.titleLevelEidrs = buildUnnamed3421(); + o.titleLevelEidrs = buildUnnamed3235(); o.type = "foo"; } buildCounterComponent--; @@ -260,13 +260,13 @@ checkComponent(api.Component o) { buildCounterComponent++; if (buildCounterComponent < 3) { - checkUnnamed3416(o.altCutIds); + checkUnnamed3230(o.altCutIds); unittest.expect(o.approvedTime, unittest.equals('foo')); unittest.expect(o.componentDetailType, unittest.equals('foo')); unittest.expect(o.componentId, unittest.equals('foo')); - checkUnnamed3417(o.customIds); - checkUnnamed3418(o.editLevelEidrs); - checkUnnamed3419(o.elIds); + checkUnnamed3231(o.customIds); + checkUnnamed3232(o.editLevelEidrs); + checkUnnamed3233(o.elIds); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -274,39 +274,39 @@ unittest.expect(o.playableUnitType, unittest.equals('foo')); unittest.expect(o.pphName, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42.0)); - checkUnnamed3420(o.processingErrors); + checkUnnamed3234(o.processingErrors); unittest.expect(o.receivedTime, unittest.equals('foo')); unittest.expect(o.rejectionNote, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); unittest.expect(o.studioName, unittest.equals('foo')); - checkUnnamed3421(o.titleLevelEidrs); + checkUnnamed3235(o.titleLevelEidrs); unittest.expect(o.type, unittest.equals('foo')); } buildCounterComponent--; } -buildUnnamed3422() { +buildUnnamed3236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3422(core.List<core.String> o) { +checkUnnamed3236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3423() { +buildUnnamed3237() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3423(core.List<core.String> o) { +checkUnnamed3237(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -322,7 +322,7 @@ o.channelId = "foo"; o.country = "foo"; o.createdTime = "foo"; - o.customIds = buildUnnamed3422(); + o.customIds = buildUnnamed3236(); o.earliestAvailStartTime = "foo"; o.editLevelEidr = "foo"; o.elId = "foo"; @@ -331,7 +331,7 @@ o.name = "foo"; o.normalizedPriority = "foo"; o.playableSequenceId = "foo"; - o.pphNames = buildUnnamed3423(); + o.pphNames = buildUnnamed3237(); o.presentationId = "foo"; o.priority = 42.0; o.status = "foo"; @@ -353,7 +353,7 @@ unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.createdTime, unittest.equals('foo')); - checkUnnamed3422(o.customIds); + checkUnnamed3236(o.customIds); unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); unittest.expect(o.editLevelEidr, unittest.equals('foo')); unittest.expect(o.elId, unittest.equals('foo')); @@ -362,7 +362,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.normalizedPriority, unittest.equals('foo')); unittest.expect(o.playableSequenceId, unittest.equals('foo')); - checkUnnamed3423(o.pphNames); + checkUnnamed3237(o.pphNames); unittest.expect(o.presentationId, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42.0)); unittest.expect(o.status, unittest.equals('foo')); @@ -375,14 +375,14 @@ buildCounterExperienceLocale--; } -buildUnnamed3424() { +buildUnnamed3238() { var o = new core.List<api.Avail>(); o.add(buildAvail()); o.add(buildAvail()); return o; } -checkUnnamed3424(core.List<api.Avail> o) { +checkUnnamed3238(core.List<api.Avail> o) { unittest.expect(o, unittest.hasLength(2)); checkAvail(o[0]); checkAvail(o[1]); @@ -393,7 +393,7 @@ var o = new api.ListAvailsResponse(); buildCounterListAvailsResponse++; if (buildCounterListAvailsResponse < 3) { - o.avails = buildUnnamed3424(); + o.avails = buildUnnamed3238(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -404,21 +404,21 @@ checkListAvailsResponse(api.ListAvailsResponse o) { buildCounterListAvailsResponse++; if (buildCounterListAvailsResponse < 3) { - checkUnnamed3424(o.avails); + checkUnnamed3238(o.avails); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListAvailsResponse--; } -buildUnnamed3425() { +buildUnnamed3239() { var o = new core.List<api.Component>(); o.add(buildComponent()); o.add(buildComponent()); return o; } -checkUnnamed3425(core.List<api.Component> o) { +checkUnnamed3239(core.List<api.Component> o) { unittest.expect(o, unittest.hasLength(2)); checkComponent(o[0]); checkComponent(o[1]); @@ -429,7 +429,7 @@ var o = new api.ListComponentsResponse(); buildCounterListComponentsResponse++; if (buildCounterListComponentsResponse < 3) { - o.components = buildUnnamed3425(); + o.components = buildUnnamed3239(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -440,21 +440,21 @@ checkListComponentsResponse(api.ListComponentsResponse o) { buildCounterListComponentsResponse++; if (buildCounterListComponentsResponse < 3) { - checkUnnamed3425(o.components); + checkUnnamed3239(o.components); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListComponentsResponse--; } -buildUnnamed3426() { +buildUnnamed3240() { var o = new core.List<api.ExperienceLocale>(); o.add(buildExperienceLocale()); o.add(buildExperienceLocale()); return o; } -checkUnnamed3426(core.List<api.ExperienceLocale> o) { +checkUnnamed3240(core.List<api.ExperienceLocale> o) { unittest.expect(o, unittest.hasLength(2)); checkExperienceLocale(o[0]); checkExperienceLocale(o[1]); @@ -465,7 +465,7 @@ var o = new api.ListExperienceLocalesResponse(); buildCounterListExperienceLocalesResponse++; if (buildCounterListExperienceLocalesResponse < 3) { - o.experienceLocales = buildUnnamed3426(); + o.experienceLocales = buildUnnamed3240(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -476,21 +476,21 @@ checkListExperienceLocalesResponse(api.ListExperienceLocalesResponse o) { buildCounterListExperienceLocalesResponse++; if (buildCounterListExperienceLocalesResponse < 3) { - checkUnnamed3426(o.experienceLocales); + checkUnnamed3240(o.experienceLocales); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListExperienceLocalesResponse--; } -buildUnnamed3427() { +buildUnnamed3241() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed3427(core.List<api.Order> o) { +checkUnnamed3241(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -502,7 +502,7 @@ buildCounterListOrdersResponse++; if (buildCounterListOrdersResponse < 3) { o.nextPageToken = "foo"; - o.orders = buildUnnamed3427(); + o.orders = buildUnnamed3241(); o.totalSize = 42; } buildCounterListOrdersResponse--; @@ -513,20 +513,20 @@ buildCounterListOrdersResponse++; if (buildCounterListOrdersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3427(o.orders); + checkUnnamed3241(o.orders); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListOrdersResponse--; } -buildUnnamed3428() { +buildUnnamed3242() { var o = new core.List<api.StoreInfo>(); o.add(buildStoreInfo()); o.add(buildStoreInfo()); return o; } -checkUnnamed3428(core.List<api.StoreInfo> o) { +checkUnnamed3242(core.List<api.StoreInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreInfo(o[0]); checkStoreInfo(o[1]); @@ -538,7 +538,7 @@ buildCounterListStoreInfosResponse++; if (buildCounterListStoreInfosResponse < 3) { o.nextPageToken = "foo"; - o.storeInfos = buildUnnamed3428(); + o.storeInfos = buildUnnamed3242(); o.totalSize = 42; } buildCounterListStoreInfosResponse--; @@ -549,20 +549,20 @@ buildCounterListStoreInfosResponse++; if (buildCounterListStoreInfosResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3428(o.storeInfos); + checkUnnamed3242(o.storeInfos); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListStoreInfosResponse--; } -buildUnnamed3429() { +buildUnnamed3243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3429(core.List<core.String> o) { +checkUnnamed3243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -576,7 +576,7 @@ o.approvedTime = "foo"; o.channelId = "foo"; o.channelName = "foo"; - o.countries = buildUnnamed3429(); + o.countries = buildUnnamed3243(); o.customId = "foo"; o.earliestAvailStartTime = "foo"; o.episodeName = "foo"; @@ -607,7 +607,7 @@ unittest.expect(o.approvedTime, unittest.equals('foo')); unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.channelName, unittest.equals('foo')); - checkUnnamed3429(o.countries); + checkUnnamed3243(o.countries); unittest.expect(o.customId, unittest.equals('foo')); unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); unittest.expect(o.episodeName, unittest.equals('foo')); @@ -631,40 +631,40 @@ buildCounterOrder--; } -buildUnnamed3430() { +buildUnnamed3244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3430(core.List<core.String> o) { +checkUnnamed3244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3431() { +buildUnnamed3245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3431(core.List<core.String> o) { +checkUnnamed3245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3432() { +buildUnnamed3246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3432(core.List<core.String> o) { +checkUnnamed3246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -675,7 +675,7 @@ var o = new api.StoreInfo(); buildCounterStoreInfo++; if (buildCounterStoreInfo < 3) { - o.audioTracks = buildUnnamed3430(); + o.audioTracks = buildUnnamed3244(); o.country = "foo"; o.editLevelEidr = "foo"; o.episodeNumber = "foo"; @@ -688,14 +688,14 @@ o.liveTime = "foo"; o.mid = "foo"; o.name = "foo"; - o.pphNames = buildUnnamed3431(); + o.pphNames = buildUnnamed3245(); o.seasonId = "foo"; o.seasonName = "foo"; o.seasonNumber = "foo"; o.showId = "foo"; o.showName = "foo"; o.studioName = "foo"; - o.subtitles = buildUnnamed3432(); + o.subtitles = buildUnnamed3246(); o.titleLevelEidr = "foo"; o.trailerId = "foo"; o.type = "foo"; @@ -708,7 +708,7 @@ checkStoreInfo(api.StoreInfo o) { buildCounterStoreInfo++; if (buildCounterStoreInfo < 3) { - checkUnnamed3430(o.audioTracks); + checkUnnamed3244(o.audioTracks); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.editLevelEidr, unittest.equals('foo')); unittest.expect(o.episodeNumber, unittest.equals('foo')); @@ -721,14 +721,14 @@ unittest.expect(o.liveTime, unittest.equals('foo')); unittest.expect(o.mid, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3431(o.pphNames); + checkUnnamed3245(o.pphNames); unittest.expect(o.seasonId, unittest.equals('foo')); unittest.expect(o.seasonName, unittest.equals('foo')); unittest.expect(o.seasonNumber, unittest.equals('foo')); unittest.expect(o.showId, unittest.equals('foo')); unittest.expect(o.showName, unittest.equals('foo')); unittest.expect(o.studioName, unittest.equals('foo')); - checkUnnamed3432(o.subtitles); + checkUnnamed3246(o.subtitles); unittest.expect(o.titleLevelEidr, unittest.equals('foo')); unittest.expect(o.trailerId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -737,274 +737,274 @@ buildCounterStoreInfo--; } -buildUnnamed3433() { +buildUnnamed3247() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3433(core.List<core.String> o) { +checkUnnamed3247(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3434() { +buildUnnamed3248() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3434(core.List<core.String> o) { +checkUnnamed3248(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3435() { +buildUnnamed3249() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3435(core.List<core.String> o) { +checkUnnamed3249(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3436() { +buildUnnamed3250() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3436(core.List<core.String> o) { +checkUnnamed3250(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3437() { +buildUnnamed3251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3437(core.List<core.String> o) { +checkUnnamed3251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3438() { +buildUnnamed3252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3438(core.List<core.String> o) { +checkUnnamed3252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3439() { +buildUnnamed3253() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3439(core.List<core.String> o) { +checkUnnamed3253(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3440() { +buildUnnamed3254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3440(core.List<core.String> o) { +checkUnnamed3254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3441() { +buildUnnamed3255() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3441(core.List<core.String> o) { +checkUnnamed3255(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3442() { +buildUnnamed3256() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3442(core.List<core.String> o) { +checkUnnamed3256(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3443() { +buildUnnamed3257() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3443(core.List<core.String> o) { +checkUnnamed3257(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3444() { +buildUnnamed3258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3444(core.List<core.String> o) { +checkUnnamed3258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3445() { +buildUnnamed3259() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3445(core.List<core.String> o) { +checkUnnamed3259(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3446() { +buildUnnamed3260() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3446(core.List<core.String> o) { +checkUnnamed3260(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3447() { +buildUnnamed3261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3447(core.List<core.String> o) { +checkUnnamed3261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3448() { +buildUnnamed3262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3448(core.List<core.String> o) { +checkUnnamed3262(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3449() { +buildUnnamed3263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3449(core.List<core.String> o) { +checkUnnamed3263(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3450() { +buildUnnamed3264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3450(core.List<core.String> o) { +checkUnnamed3264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3451() { +buildUnnamed3265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3451(core.List<core.String> o) { +checkUnnamed3265(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3452() { +buildUnnamed3266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3452(core.List<core.String> o) { +checkUnnamed3266(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3453() { +buildUnnamed3267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3453(core.List<core.String> o) { +checkUnnamed3267(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1165,13 +1165,13 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3433(); - var arg_studioNames = buildUnnamed3434(); + var arg_pphNames = buildUnnamed3247(); + var arg_studioNames = buildUnnamed3248(); var arg_title = "foo"; - var arg_territories = buildUnnamed3435(); + var arg_territories = buildUnnamed3249(); var arg_altId = "foo"; - var arg_videoIds = buildUnnamed3436(); - var arg_altIds = buildUnnamed3437(); + var arg_videoIds = buildUnnamed3250(); + var arg_altIds = buildUnnamed3251(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1238,11 +1238,11 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3438(); - var arg_studioNames = buildUnnamed3439(); + var arg_pphNames = buildUnnamed3252(); + var arg_studioNames = buildUnnamed3253(); var arg_titleLevelEidr = "foo"; var arg_editLevelEidr = "foo"; - var arg_status = buildUnnamed3440(); + var arg_status = buildUnnamed3254(); var arg_customId = "foo"; var arg_inventoryId = "foo"; var arg_presentationId = "foo"; @@ -1443,11 +1443,11 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3441(); - var arg_studioNames = buildUnnamed3442(); + var arg_pphNames = buildUnnamed3255(); + var arg_studioNames = buildUnnamed3256(); var arg_titleLevelEidr = "foo"; var arg_editLevelEidr = "foo"; - var arg_status = buildUnnamed3443(); + var arg_status = buildUnnamed3257(); var arg_customId = "foo"; var arg_altCutId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -1571,12 +1571,12 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3444(); - var arg_studioNames = buildUnnamed3445(); + var arg_pphNames = buildUnnamed3258(); + var arg_studioNames = buildUnnamed3259(); var arg_name = "foo"; - var arg_status = buildUnnamed3446(); + var arg_status = buildUnnamed3260(); var arg_customId = "foo"; - var arg_videoIds = buildUnnamed3447(); + var arg_videoIds = buildUnnamed3261(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1642,14 +1642,14 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3448(); - var arg_studioNames = buildUnnamed3449(); + var arg_pphNames = buildUnnamed3262(); + var arg_studioNames = buildUnnamed3263(); var arg_videoId = "foo"; - var arg_countries = buildUnnamed3450(); + var arg_countries = buildUnnamed3264(); var arg_name = "foo"; - var arg_videoIds = buildUnnamed3451(); - var arg_mids = buildUnnamed3452(); - var arg_seasonIds = buildUnnamed3453(); + var arg_videoIds = buildUnnamed3265(); + var arg_mids = buildUnnamed3266(); + var arg_seasonIds = buildUnnamed3267(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/plusdomains/v1_test.dart b/generated/googleapis/test/plusdomains/v1_test.dart index ef24665..c438be0 100644 --- a/generated/googleapis/test/plusdomains/v1_test.dart +++ b/generated/googleapis/test/plusdomains/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1147() { +buildUnnamed1173() { var o = new core.List<api.PlusDomainsAclentryResource>(); o.add(buildPlusDomainsAclentryResource()); o.add(buildPlusDomainsAclentryResource()); return o; } -checkUnnamed1147(core.List<api.PlusDomainsAclentryResource> o) { +checkUnnamed1173(core.List<api.PlusDomainsAclentryResource> o) { unittest.expect(o, unittest.hasLength(2)); checkPlusDomainsAclentryResource(o[0]); checkPlusDomainsAclentryResource(o[1]); @@ -71,7 +71,7 @@ if (buildCounterAcl < 3) { o.description = "foo"; o.domainRestricted = true; - o.items = buildUnnamed1147(); + o.items = buildUnnamed1173(); o.kind = "foo"; } buildCounterAcl--; @@ -83,7 +83,7 @@ if (buildCounterAcl < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.domainRestricted, unittest.isTrue); - checkUnnamed1147(o.items); + checkUnnamed1173(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAcl--; @@ -412,14 +412,14 @@ buildCounterActivityObjectAttachmentsPreviewThumbnails--; } -buildUnnamed1148() { +buildUnnamed1174() { var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); return o; } -checkUnnamed1148(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { +checkUnnamed1174(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsPreviewThumbnails(o[0]); checkActivityObjectAttachmentsPreviewThumbnails(o[1]); @@ -473,14 +473,14 @@ buildCounterActivityObjectAttachmentsThumbnails--; } -buildUnnamed1149() { +buildUnnamed1175() { var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); o.add(buildActivityObjectAttachmentsThumbnails()); o.add(buildActivityObjectAttachmentsThumbnails()); return o; } -checkUnnamed1149(core.List<api.ActivityObjectAttachmentsThumbnails> o) { +checkUnnamed1175(core.List<api.ActivityObjectAttachmentsThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsThumbnails(o[0]); checkActivityObjectAttachmentsThumbnails(o[1]); @@ -498,8 +498,8 @@ o.id = "foo"; o.image = buildActivityObjectAttachmentsImage(); o.objectType = "foo"; - o.previewThumbnails = buildUnnamed1148(); - o.thumbnails = buildUnnamed1149(); + o.previewThumbnails = buildUnnamed1174(); + o.thumbnails = buildUnnamed1175(); o.url = "foo"; } buildCounterActivityObjectAttachments--; @@ -516,21 +516,21 @@ unittest.expect(o.id, unittest.equals('foo')); checkActivityObjectAttachmentsImage(o.image); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed1148(o.previewThumbnails); - checkUnnamed1149(o.thumbnails); + checkUnnamed1174(o.previewThumbnails); + checkUnnamed1175(o.thumbnails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterActivityObjectAttachments--; } -buildUnnamed1150() { +buildUnnamed1176() { var o = new core.List<api.ActivityObjectAttachments>(); o.add(buildActivityObjectAttachments()); o.add(buildActivityObjectAttachments()); return o; } -checkUnnamed1150(core.List<api.ActivityObjectAttachments> o) { +checkUnnamed1176(core.List<api.ActivityObjectAttachments> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachments(o[0]); checkActivityObjectAttachments(o[1]); @@ -632,7 +632,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { o.actor = buildActivityObjectActor(); - o.attachments = buildUnnamed1150(); + o.attachments = buildUnnamed1176(); o.content = "foo"; o.id = "foo"; o.objectType = "foo"; @@ -651,7 +651,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { checkActivityObjectActor(o.actor); - checkUnnamed1150(o.attachments); + checkUnnamed1176(o.attachments); unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); @@ -741,14 +741,14 @@ buildCounterActivity--; } -buildUnnamed1151() { +buildUnnamed1177() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1151(core.List<api.Activity> o) { +checkUnnamed1177(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -761,7 +761,7 @@ if (buildCounterActivityFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed1151(); + o.items = buildUnnamed1177(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -778,7 +778,7 @@ if (buildCounterActivityFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1151(o.items); + checkUnnamed1177(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -816,14 +816,14 @@ buildCounterAudience--; } -buildUnnamed1152() { +buildUnnamed1178() { var o = new core.List<api.Audience>(); o.add(buildAudience()); o.add(buildAudience()); return o; } -checkUnnamed1152(core.List<api.Audience> o) { +checkUnnamed1178(core.List<api.Audience> o) { unittest.expect(o, unittest.hasLength(2)); checkAudience(o[0]); checkAudience(o[1]); @@ -835,7 +835,7 @@ buildCounterAudiencesFeed++; if (buildCounterAudiencesFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed1152(); + o.items = buildUnnamed1178(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -848,7 +848,7 @@ buildCounterAudiencesFeed++; if (buildCounterAudiencesFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1152(o.items); + checkUnnamed1178(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -906,14 +906,14 @@ buildCounterCircle--; } -buildUnnamed1153() { +buildUnnamed1179() { var o = new core.List<api.Circle>(); o.add(buildCircle()); o.add(buildCircle()); return o; } -checkUnnamed1153(core.List<api.Circle> o) { +checkUnnamed1179(core.List<api.Circle> o) { unittest.expect(o, unittest.hasLength(2)); checkCircle(o[0]); checkCircle(o[1]); @@ -925,7 +925,7 @@ buildCounterCircleFeed++; if (buildCounterCircleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed1153(); + o.items = buildUnnamed1179(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -941,7 +941,7 @@ buildCounterCircleFeed++; if (buildCounterCircleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1153(o.items); + checkUnnamed1179(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1078,14 +1078,14 @@ buildCounterCommentInReplyTo--; } -buildUnnamed1154() { +buildUnnamed1180() { var o = new core.List<api.CommentInReplyTo>(); o.add(buildCommentInReplyTo()); o.add(buildCommentInReplyTo()); return o; } -checkUnnamed1154(core.List<api.CommentInReplyTo> o) { +checkUnnamed1180(core.List<api.CommentInReplyTo> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentInReplyTo(o[0]); checkCommentInReplyTo(o[1]); @@ -1141,7 +1141,7 @@ o.actor = buildCommentActor(); o.etag = "foo"; o.id = "foo"; - o.inReplyTo = buildUnnamed1154(); + o.inReplyTo = buildUnnamed1180(); o.kind = "foo"; o.object = buildCommentObject(); o.plusoners = buildCommentPlusoners(); @@ -1160,7 +1160,7 @@ checkCommentActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1154(o.inReplyTo); + checkUnnamed1180(o.inReplyTo); unittest.expect(o.kind, unittest.equals('foo')); checkCommentObject(o.object); checkCommentPlusoners(o.plusoners); @@ -1172,14 +1172,14 @@ buildCounterComment--; } -buildUnnamed1155() { +buildUnnamed1181() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1155(core.List<api.Comment> o) { +checkUnnamed1181(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1192,7 +1192,7 @@ if (buildCounterCommentFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed1155(); + o.items = buildUnnamed1181(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1208,7 +1208,7 @@ if (buildCounterCommentFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1155(o.items); + checkUnnamed1181(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1281,14 +1281,14 @@ buildCounterMediaExif--; } -buildUnnamed1156() { +buildUnnamed1182() { var o = new core.List<api.Videostream>(); o.add(buildVideostream()); o.add(buildVideostream()); return o; } -checkUnnamed1156(core.List<api.Videostream> o) { +checkUnnamed1182(core.List<api.Videostream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideostream(o[0]); checkVideostream(o[1]); @@ -1310,7 +1310,7 @@ o.mediaUrl = "foo"; o.published = core.DateTime.parse("2002-02-27T14:01:02"); o.sizeBytes = "foo"; - o.streams = buildUnnamed1156(); + o.streams = buildUnnamed1182(); o.summary = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.url = "foo"; @@ -1336,7 +1336,7 @@ unittest.expect(o.mediaUrl, unittest.equals('foo')); unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.sizeBytes, unittest.equals('foo')); - checkUnnamed1156(o.streams); + checkUnnamed1182(o.streams); unittest.expect(o.summary, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.url, unittest.equals('foo')); @@ -1347,14 +1347,14 @@ buildCounterMedia--; } -buildUnnamed1157() { +buildUnnamed1183() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed1157(core.List<api.Person> o) { +checkUnnamed1183(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -1366,7 +1366,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed1157(); + o.items = buildUnnamed1183(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1381,7 +1381,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1157(o.items); + checkUnnamed1183(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1479,14 +1479,14 @@ buildCounterPersonEmails--; } -buildUnnamed1158() { +buildUnnamed1184() { var o = new core.List<api.PersonEmails>(); o.add(buildPersonEmails()); o.add(buildPersonEmails()); return o; } -checkUnnamed1158(core.List<api.PersonEmails> o) { +checkUnnamed1184(core.List<api.PersonEmails> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonEmails(o[0]); checkPersonEmails(o[1]); @@ -1577,14 +1577,14 @@ buildCounterPersonOrganizations--; } -buildUnnamed1159() { +buildUnnamed1185() { var o = new core.List<api.PersonOrganizations>(); o.add(buildPersonOrganizations()); o.add(buildPersonOrganizations()); return o; } -checkUnnamed1159(core.List<api.PersonOrganizations> o) { +checkUnnamed1185(core.List<api.PersonOrganizations> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonOrganizations(o[0]); checkPersonOrganizations(o[1]); @@ -1611,14 +1611,14 @@ buildCounterPersonPlacesLived--; } -buildUnnamed1160() { +buildUnnamed1186() { var o = new core.List<api.PersonPlacesLived>(); o.add(buildPersonPlacesLived()); o.add(buildPersonPlacesLived()); return o; } -checkUnnamed1160(core.List<api.PersonPlacesLived> o) { +checkUnnamed1186(core.List<api.PersonPlacesLived> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonPlacesLived(o[0]); checkPersonPlacesLived(o[1]); @@ -1647,14 +1647,14 @@ buildCounterPersonUrls--; } -buildUnnamed1161() { +buildUnnamed1187() { var o = new core.List<api.PersonUrls>(); o.add(buildPersonUrls()); o.add(buildPersonUrls()); return o; } -checkUnnamed1161(core.List<api.PersonUrls> o) { +checkUnnamed1187(core.List<api.PersonUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonUrls(o[0]); checkPersonUrls(o[1]); @@ -1673,7 +1673,7 @@ o.currentLocation = "foo"; o.displayName = "foo"; o.domain = "foo"; - o.emails = buildUnnamed1158(); + o.emails = buildUnnamed1184(); o.etag = "foo"; o.gender = "foo"; o.id = "foo"; @@ -1684,14 +1684,14 @@ o.nickname = "foo"; o.objectType = "foo"; o.occupation = "foo"; - o.organizations = buildUnnamed1159(); - o.placesLived = buildUnnamed1160(); + o.organizations = buildUnnamed1185(); + o.placesLived = buildUnnamed1186(); o.plusOneCount = 42; o.relationshipStatus = "foo"; o.skills = "foo"; o.tagline = "foo"; o.url = "foo"; - o.urls = buildUnnamed1161(); + o.urls = buildUnnamed1187(); o.verified = true; } buildCounterPerson--; @@ -1709,7 +1709,7 @@ unittest.expect(o.currentLocation, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); - checkUnnamed1158(o.emails); + checkUnnamed1184(o.emails); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1720,14 +1720,14 @@ unittest.expect(o.nickname, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.occupation, unittest.equals('foo')); - checkUnnamed1159(o.organizations); - checkUnnamed1160(o.placesLived); + checkUnnamed1185(o.organizations); + checkUnnamed1186(o.placesLived); unittest.expect(o.plusOneCount, unittest.equals(42)); unittest.expect(o.relationshipStatus, unittest.equals('foo')); unittest.expect(o.skills, unittest.equals('foo')); unittest.expect(o.tagline, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed1161(o.urls); + checkUnnamed1187(o.urls); unittest.expect(o.verified, unittest.isTrue); } buildCounterPerson--; @@ -1848,53 +1848,53 @@ buildCounterVideostream--; } -buildUnnamed1162() { +buildUnnamed1188() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1162(core.List<core.String> o) { +checkUnnamed1188(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1163() { +buildUnnamed1189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1163(core.List<core.String> o) { +checkUnnamed1189(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1164() { +buildUnnamed1190() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1164(core.List<core.String> o) { +checkUnnamed1190(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1165() { +buildUnnamed1191() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1165(core.List<core.String> o) { +checkUnnamed1191(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2700,8 +2700,8 @@ var mock = new HttpServerMock(); api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; var arg_circleId = "foo"; - var arg_email = buildUnnamed1162(); - var arg_userId = buildUnnamed1163(); + var arg_email = buildUnnamed1188(); + var arg_userId = buildUnnamed1189(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3020,8 +3020,8 @@ var mock = new HttpServerMock(); api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; var arg_circleId = "foo"; - var arg_email = buildUnnamed1164(); - var arg_userId = buildUnnamed1165(); + var arg_email = buildUnnamed1190(); + var arg_userId = buildUnnamed1191(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/prediction/v1_6_test.dart b/generated/googleapis/test/prediction/v1_6_test.dart index 3dbfa09..324f4d5 100644 --- a/generated/googleapis/test/prediction/v1_6_test.dart +++ b/generated/googleapis/test/prediction/v1_6_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; } -buildUnnamed2197() { +buildUnnamed1951() { var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); return o; } -checkUnnamed2197(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { +checkUnnamed1951(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[1]); @@ -91,7 +91,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { o.count = "foo"; - o.values = buildUnnamed2197(); + o.values = buildUnnamed1951(); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; return o; @@ -101,7 +101,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed2197(o.values); + checkUnnamed1951(o.values); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; } @@ -173,14 +173,14 @@ buildCounterAnalyzeDataDescriptionFeatures--; } -buildUnnamed2198() { +buildUnnamed1952() { var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); o.add(buildAnalyzeDataDescriptionFeatures()); o.add(buildAnalyzeDataDescriptionFeatures()); return o; } -checkUnnamed2198(core.List<api.AnalyzeDataDescriptionFeatures> o) { +checkUnnamed1952(core.List<api.AnalyzeDataDescriptionFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeatures(o[0]); checkAnalyzeDataDescriptionFeatures(o[1]); @@ -230,14 +230,14 @@ buildCounterAnalyzeDataDescriptionOutputFeatureText--; } -buildUnnamed2199() { +buildUnnamed1953() { var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); return o; } -checkUnnamed2199(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { +checkUnnamed1953(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionOutputFeatureText(o[0]); checkAnalyzeDataDescriptionOutputFeatureText(o[1]); @@ -249,7 +249,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); - o.text = buildUnnamed2199(); + o.text = buildUnnamed1953(); } buildCounterAnalyzeDataDescriptionOutputFeature--; return o; @@ -259,7 +259,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); - checkUnnamed2199(o.text); + checkUnnamed1953(o.text); } buildCounterAnalyzeDataDescriptionOutputFeature--; } @@ -269,7 +269,7 @@ var o = new api.AnalyzeDataDescription(); buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - o.features = buildUnnamed2198(); + o.features = buildUnnamed1952(); o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); } buildCounterAnalyzeDataDescription--; @@ -279,72 +279,72 @@ checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - checkUnnamed2198(o.features); + checkUnnamed1952(o.features); checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); } buildCounterAnalyzeDataDescription--; } -buildUnnamed2200() { +buildUnnamed1954() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2200(core.Map<core.String, core.String> o) { +checkUnnamed1954(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2201() { +buildUnnamed1955() { var o = new core.List<core.Map<core.String, core.String>>(); - o.add(buildUnnamed2200()); - o.add(buildUnnamed2200()); + o.add(buildUnnamed1954()); + o.add(buildUnnamed1954()); return o; } -checkUnnamed2201(core.List<core.Map<core.String, core.String>> o) { +checkUnnamed1955(core.List<core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2200(o[0]); - checkUnnamed2200(o[1]); + checkUnnamed1954(o[0]); + checkUnnamed1954(o[1]); } -buildUnnamed2202() { +buildUnnamed1956() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2202(core.Map<core.String, core.String> o) { +checkUnnamed1956(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2203() { +buildUnnamed1957() { var o = new core.Map<core.String, core.Map<core.String, core.String>>(); - o["x"] = buildUnnamed2202(); - o["y"] = buildUnnamed2202(); + o["x"] = buildUnnamed1956(); + o["y"] = buildUnnamed1956(); return o; } -checkUnnamed2203(core.Map<core.String, core.Map<core.String, core.String>> o) { +checkUnnamed1957(core.Map<core.String, core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2202(o["x"]); - checkUnnamed2202(o["y"]); + checkUnnamed1956(o["x"]); + checkUnnamed1956(o["y"]); } -buildUnnamed2204() { +buildUnnamed1958() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2204(core.Map<core.String, core.String> o) { +checkUnnamed1958(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -355,8 +355,8 @@ var o = new api.AnalyzeModelDescription(); buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - o.confusionMatrix = buildUnnamed2203(); - o.confusionMatrixRowTotals = buildUnnamed2204(); + o.confusionMatrix = buildUnnamed1957(); + o.confusionMatrixRowTotals = buildUnnamed1958(); o.modelinfo = buildInsert2(); } buildCounterAnalyzeModelDescription--; @@ -366,8 +366,8 @@ checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - checkUnnamed2203(o.confusionMatrix); - checkUnnamed2204(o.confusionMatrixRowTotals); + checkUnnamed1957(o.confusionMatrix); + checkUnnamed1958(o.confusionMatrixRowTotals); checkInsert2(o.modelinfo); } buildCounterAnalyzeModelDescription--; @@ -379,7 +379,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { o.dataDescription = buildAnalyzeDataDescription(); - o.errors = buildUnnamed2201(); + o.errors = buildUnnamed1955(); o.id = "foo"; o.kind = "foo"; o.modelDescription = buildAnalyzeModelDescription(); @@ -393,7 +393,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { checkAnalyzeDataDescription(o.dataDescription); - checkUnnamed2201(o.errors); + checkUnnamed1955(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkAnalyzeModelDescription(o.modelDescription); @@ -402,14 +402,14 @@ buildCounterAnalyze--; } -buildUnnamed2205() { +buildUnnamed1959() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2205(core.List<core.Object> o) { +checkUnnamed1959(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -420,7 +420,7 @@ var o = new api.InputInput(); buildCounterInputInput++; if (buildCounterInputInput < 3) { - o.csvInstance = buildUnnamed2205(); + o.csvInstance = buildUnnamed1959(); } buildCounterInputInput--; return o; @@ -429,7 +429,7 @@ checkInputInput(api.InputInput o) { buildCounterInputInput++; if (buildCounterInputInput < 3) { - checkUnnamed2205(o.csvInstance); + checkUnnamed1959(o.csvInstance); } buildCounterInputInput--; } @@ -453,14 +453,14 @@ buildCounterInput--; } -buildUnnamed2206() { +buildUnnamed1960() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2206(core.List<core.Object> o) { +checkUnnamed1960(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -471,7 +471,7 @@ var o = new api.InsertTrainingInstances(); buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - o.csvInstance = buildUnnamed2206(); + o.csvInstance = buildUnnamed1960(); o.output = "foo"; } buildCounterInsertTrainingInstances--; @@ -481,49 +481,49 @@ checkInsertTrainingInstances(api.InsertTrainingInstances o) { buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - checkUnnamed2206(o.csvInstance); + checkUnnamed1960(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterInsertTrainingInstances--; } -buildUnnamed2207() { +buildUnnamed1961() { var o = new core.List<api.InsertTrainingInstances>(); o.add(buildInsertTrainingInstances()); o.add(buildInsertTrainingInstances()); return o; } -checkUnnamed2207(core.List<api.InsertTrainingInstances> o) { +checkUnnamed1961(core.List<api.InsertTrainingInstances> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertTrainingInstances(o[0]); checkInsertTrainingInstances(o[1]); } -buildUnnamed2208() { +buildUnnamed1962() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed2208(core.Map<core.String, core.double> o) { +checkUnnamed1962(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); } -buildUnnamed2209() { +buildUnnamed1963() { var o = new core.List<core.Map<core.String, core.double>>(); - o.add(buildUnnamed2208()); - o.add(buildUnnamed2208()); + o.add(buildUnnamed1962()); + o.add(buildUnnamed1962()); return o; } -checkUnnamed2209(core.List<core.Map<core.String, core.double>> o) { +checkUnnamed1963(core.List<core.Map<core.String, core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2208(o[0]); - checkUnnamed2208(o[1]); + checkUnnamed1962(o[0]); + checkUnnamed1962(o[1]); } core.int buildCounterInsert = 0; @@ -537,8 +537,8 @@ o.storageDataLocation = "foo"; o.storagePMMLLocation = "foo"; o.storagePMMLModelLocation = "foo"; - o.trainingInstances = buildUnnamed2207(); - o.utility = buildUnnamed2209(); + o.trainingInstances = buildUnnamed1961(); + o.utility = buildUnnamed1963(); } buildCounterInsert--; return o; @@ -553,8 +553,8 @@ unittest.expect(o.storageDataLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); - checkUnnamed2207(o.trainingInstances); - checkUnnamed2209(o.utility); + checkUnnamed1961(o.trainingInstances); + checkUnnamed1963(o.utility); } buildCounterInsert--; } @@ -627,14 +627,14 @@ buildCounterInsert2--; } -buildUnnamed2210() { +buildUnnamed1964() { var o = new core.List<api.Insert2>(); o.add(buildInsert2()); o.add(buildInsert2()); return o; } -checkUnnamed2210(core.List<api.Insert2> o) { +checkUnnamed1964(core.List<api.Insert2> o) { unittest.expect(o, unittest.hasLength(2)); checkInsert2(o[0]); checkInsert2(o[1]); @@ -645,7 +645,7 @@ var o = new api.List(); buildCounterList++; if (buildCounterList < 3) { - o.items = buildUnnamed2210(); + o.items = buildUnnamed1964(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -657,7 +657,7 @@ checkList(api.List o) { buildCounterList++; if (buildCounterList < 3) { - checkUnnamed2210(o.items); + checkUnnamed1964(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -686,14 +686,14 @@ buildCounterOutputOutputMulti--; } -buildUnnamed2211() { +buildUnnamed1965() { var o = new core.List<api.OutputOutputMulti>(); o.add(buildOutputOutputMulti()); o.add(buildOutputOutputMulti()); return o; } -checkUnnamed2211(core.List<api.OutputOutputMulti> o) { +checkUnnamed1965(core.List<api.OutputOutputMulti> o) { unittest.expect(o, unittest.hasLength(2)); checkOutputOutputMulti(o[0]); checkOutputOutputMulti(o[1]); @@ -707,7 +707,7 @@ o.id = "foo"; o.kind = "foo"; o.outputLabel = "foo"; - o.outputMulti = buildUnnamed2211(); + o.outputMulti = buildUnnamed1965(); o.outputValue = "foo"; o.selfLink = "foo"; } @@ -721,21 +721,21 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.outputLabel, unittest.equals('foo')); - checkUnnamed2211(o.outputMulti); + checkUnnamed1965(o.outputMulti); unittest.expect(o.outputValue, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterOutput--; } -buildUnnamed2212() { +buildUnnamed1966() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2212(core.List<core.Object> o) { +checkUnnamed1966(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -746,7 +746,7 @@ var o = new api.Update(); buildCounterUpdate++; if (buildCounterUpdate < 3) { - o.csvInstance = buildUnnamed2212(); + o.csvInstance = buildUnnamed1966(); o.output = "foo"; } buildCounterUpdate--; @@ -756,7 +756,7 @@ checkUpdate(api.Update o) { buildCounterUpdate++; if (buildCounterUpdate < 3) { - checkUnnamed2212(o.csvInstance); + checkUnnamed1966(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterUpdate--;
diff --git a/generated/googleapis/test/pubsub/v1_test.dart b/generated/googleapis/test/pubsub/v1_test.dart index ffcde49..357842c 100644 --- a/generated/googleapis/test/pubsub/v1_test.dart +++ b/generated/googleapis/test/pubsub/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1340() { +buildUnnamed1362() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1340(core.List<core.String> o) { +checkUnnamed1362(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed1340(); + o.ackIds = buildUnnamed1362(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed1340(o.ackIds); + checkUnnamed1362(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed1341() { +buildUnnamed1363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1341(core.List<core.String> o) { +checkUnnamed1363(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -101,7 +101,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1341(); + o.members = buildUnnamed1363(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1341(o.members); + checkUnnamed1363(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed1342() { +buildUnnamed1364() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1342(core.List<api.Subscription> o) { +checkUnnamed1364(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -153,7 +153,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1342(); + o.subscriptions = buildUnnamed1364(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1342(o.subscriptions); + checkUnnamed1364(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed1343() { +buildUnnamed1365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1343(core.List<core.String> o) { +checkUnnamed1365(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1343(); + o.subscriptions = buildUnnamed1365(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1343(o.subscriptions); + checkUnnamed1365(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed1344() { +buildUnnamed1366() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed1344(core.List<api.Topic> o) { +checkUnnamed1366(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -221,7 +221,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed1344(); + o.topics = buildUnnamed1366(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1344(o.topics); + checkUnnamed1366(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed1345() { +buildUnnamed1367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1345(core.List<core.String> o) { +checkUnnamed1367(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -255,7 +255,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; - o.ackIds = buildUnnamed1345(); + o.ackIds = buildUnnamed1367(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -265,7 +265,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); - checkUnnamed1345(o.ackIds); + checkUnnamed1367(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -289,14 +289,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed1346() { +buildUnnamed1368() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1346(core.List<api.Binding> o) { +checkUnnamed1368(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -307,7 +307,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1346(); + o.bindings = buildUnnamed1368(); o.etag = "foo"; o.version = 42; } @@ -318,21 +318,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1346(o.bindings); + checkUnnamed1368(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1347() { +buildUnnamed1369() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed1347(core.List<api.PubsubMessage> o) { +checkUnnamed1369(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -343,7 +343,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed1347(); + o.messages = buildUnnamed1369(); } buildCounterPublishRequest--; return o; @@ -352,19 +352,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed1347(o.messages); + checkUnnamed1369(o.messages); } buildCounterPublishRequest--; } -buildUnnamed1348() { +buildUnnamed1370() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1348(core.List<core.String> o) { +checkUnnamed1370(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -375,7 +375,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed1348(); + o.messageIds = buildUnnamed1370(); } buildCounterPublishResponse--; return o; @@ -384,19 +384,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed1348(o.messageIds); + checkUnnamed1370(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed1349() { +buildUnnamed1371() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1349(core.Map<core.String, core.String> o) { +checkUnnamed1371(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -407,7 +407,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed1349(); + o.attributes = buildUnnamed1371(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -419,7 +419,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed1349(o.attributes); + checkUnnamed1371(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -448,14 +448,14 @@ buildCounterPullRequest--; } -buildUnnamed1350() { +buildUnnamed1372() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed1350(core.List<api.ReceivedMessage> o) { +checkUnnamed1372(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -466,7 +466,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed1350(); + o.receivedMessages = buildUnnamed1372(); } buildCounterPullResponse--; return o; @@ -475,19 +475,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed1350(o.receivedMessages); + checkUnnamed1372(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed1351() { +buildUnnamed1373() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1351(core.Map<core.String, core.String> o) { +checkUnnamed1373(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -498,7 +498,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed1351(); + o.attributes = buildUnnamed1373(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -508,7 +508,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed1351(o.attributes); + checkUnnamed1373(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -579,14 +579,14 @@ buildCounterSubscription--; } -buildUnnamed1352() { +buildUnnamed1374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1352(core.List<core.String> o) { +checkUnnamed1374(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -597,7 +597,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1352(); + o.permissions = buildUnnamed1374(); } buildCounterTestIamPermissionsRequest--; return o; @@ -606,19 +606,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1352(o.permissions); + checkUnnamed1374(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1353() { +buildUnnamed1375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1353(core.List<core.String> o) { +checkUnnamed1375(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -629,7 +629,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1353(); + o.permissions = buildUnnamed1375(); } buildCounterTestIamPermissionsResponse--; return o; @@ -638,7 +638,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1353(o.permissions); + checkUnnamed1375(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -853,6 +853,153 @@ }); + unittest.group("resource-ProjectsSnapshotsResourceApi", () { + unittest.test("method--getIamPolicy", () { + + var mock = new HttpServerMock(); + api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--setIamPolicy", () { + + var mock = new HttpServerMock(); + api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; + var arg_request = buildSetIamPolicyRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SetIamPolicyRequest.fromJson(json); + checkSetIamPolicyRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + + var mock = new HttpServerMock(); + api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; + var arg_request = buildTestIamPermissionsRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TestIamPermissionsRequest.fromJson(json); + checkTestIamPermissionsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + checkTestIamPermissionsResponse(response); + }))); + }); + + }); + + unittest.group("resource-ProjectsSubscriptionsResourceApi", () { unittest.test("method--acknowledge", () {
diff --git a/generated/googleapis/test/reseller/v1_test.dart b/generated/googleapis/test/reseller/v1_test.dart index d5f256e..197d9aa 100644 --- a/generated/googleapis/test/reseller/v1_test.dart +++ b/generated/googleapis/test/reseller/v1_test.dart
@@ -238,14 +238,14 @@ buildCounterSubscriptionPlan--; } -buildUnnamed2582() { +buildUnnamed2376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2582(core.List<core.String> o) { +checkUnnamed2376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -312,7 +312,7 @@ o.skuId = "foo"; o.status = "foo"; o.subscriptionId = "foo"; - o.suspensionReasons = buildUnnamed2582(); + o.suspensionReasons = buildUnnamed2376(); o.transferInfo = buildSubscriptionTransferInfo(); o.trialSettings = buildSubscriptionTrialSettings(); } @@ -337,21 +337,21 @@ unittest.expect(o.skuId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subscriptionId, unittest.equals('foo')); - checkUnnamed2582(o.suspensionReasons); + checkUnnamed2376(o.suspensionReasons); checkSubscriptionTransferInfo(o.transferInfo); checkSubscriptionTrialSettings(o.trialSettings); } buildCounterSubscription--; } -buildUnnamed2583() { +buildUnnamed2377() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed2583(core.List<api.Subscription> o) { +checkUnnamed2377(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -364,7 +364,7 @@ if (buildCounterSubscriptions < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed2583(); + o.subscriptions = buildUnnamed2377(); } buildCounterSubscriptions--; return o; @@ -375,7 +375,7 @@ if (buildCounterSubscriptions < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2583(o.subscriptions); + checkUnnamed2377(o.subscriptions); } buildCounterSubscriptions--; }
diff --git a/generated/googleapis/test/runtimeconfig/v1_test.dart b/generated/googleapis/test/runtimeconfig/v1_test.dart new file mode 100644 index 0000000..5ecc0b4 --- /dev/null +++ b/generated/googleapis/test/runtimeconfig/v1_test.dart
@@ -0,0 +1,421 @@ +library googleapis.runtimeconfig.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:unittest/unittest.dart' as unittest; + +import 'package:googleapis/runtimeconfig/v1.dart' as api; + +class HttpServerMock extends http.BaseClient { + core.Function _callback; + core.bool _expectJson; + + void register(core.Function callback, core.bool expectJson) { + _callback = callback; + _expectJson = expectJson; + } + + async.Future<http.StreamedResponse> send(http.BaseRequest request) { + if (_expectJson) { + return request.finalize() + .transform(convert.UTF8.decoder) + .join('') + .then((core.String jsonString) { + if (jsonString.isEmpty) { + return _callback(request, null); + } else { + return _callback(request, convert.JSON.decode(jsonString)); + } + }); + } else { + var stream = request.finalize(); + if (stream == null) { + return _callback(request, []); + } else { + return stream.toBytes().then((data) { + return _callback(request, data); + }); + } + } + } +} + +http.StreamedResponse stringResponse( + core.int status, core.Map headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +core.int buildCounterCancelOperationRequest = 0; +buildCancelOperationRequest() { + var o = new api.CancelOperationRequest(); + buildCounterCancelOperationRequest++; + if (buildCounterCancelOperationRequest < 3) { + } + buildCounterCancelOperationRequest--; + return o; +} + +checkCancelOperationRequest(api.CancelOperationRequest o) { + buildCounterCancelOperationRequest++; + if (buildCounterCancelOperationRequest < 3) { + } + buildCounterCancelOperationRequest--; +} + +core.int buildCounterEmpty = 0; +buildEmpty() { + var o = new api.Empty(); + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; + return o; +} + +checkEmpty(api.Empty o) { + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; +} + +buildUnnamed2011() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed2011(core.List<api.Operation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOperation(o[0]); + checkOperation(o[1]); +} + +core.int buildCounterListOperationsResponse = 0; +buildListOperationsResponse() { + var o = new api.ListOperationsResponse(); + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + o.nextPageToken = "foo"; + o.operations = buildUnnamed2011(); + } + buildCounterListOperationsResponse--; + return o; +} + +checkListOperationsResponse(api.ListOperationsResponse o) { + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed2011(o.operations); + } + buildCounterListOperationsResponse--; +} + +buildUnnamed2012() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed2012(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); + var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); +} + +buildUnnamed2013() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed2013(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); + var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); +} + +core.int buildCounterOperation = 0; +buildOperation() { + var o = new api.Operation(); + buildCounterOperation++; + if (buildCounterOperation < 3) { + o.done = true; + o.error = buildStatus(); + o.metadata = buildUnnamed2012(); + o.name = "foo"; + o.response = buildUnnamed2013(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkStatus(o.error); + checkUnnamed2012(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed2013(o.response); + } + buildCounterOperation--; +} + +buildUnnamed2014() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed2014(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); + var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); +} + +buildUnnamed2015() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed2014()); + o.add(buildUnnamed2014()); + return o; +} + +checkUnnamed2015(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed2014(o[0]); + checkUnnamed2014(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed2015(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed2015(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + + +main() { + unittest.group("obj-schema-CancelOperationRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCancelOperationRequest(); + var od = new api.CancelOperationRequest.fromJson(o.toJson()); + checkCancelOperationRequest(od); + }); + }); + + + unittest.group("obj-schema-Empty", () { + unittest.test("to-json--from-json", () { + var o = buildEmpty(); + var od = new api.Empty.fromJson(o.toJson()); + checkEmpty(od); + }); + }); + + + unittest.group("obj-schema-ListOperationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListOperationsResponse(); + var od = new api.ListOperationsResponse.fromJson(o.toJson()); + checkListOperationsResponse(od); + }); + }); + + + unittest.group("obj-schema-Operation", () { + unittest.test("to-json--from-json", () { + var o = buildOperation(); + var od = new api.Operation.fromJson(o.toJson()); + checkOperation(od); + }); + }); + + + unittest.group("obj-schema-Status", () { + unittest.test("to-json--from-json", () { + var o = buildStatus(); + var od = new api.Status.fromJson(o.toJson()); + checkStatus(od); + }); + }); + + + unittest.group("resource-OperationsResourceApi", () { + unittest.test("method--cancel", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.RuntimeconfigApi(mock).operations; + var arg_request = buildCancelOperationRequest(); + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.CancelOperationRequest.fromJson(json); + checkCancelOperationRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.RuntimeconfigApi(mock).operations; + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.RuntimeconfigApi(mock).operations; + var arg_name = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListOperationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { + checkListOperationsResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart index 632ef2d..cbc80d6 100644 --- a/generated/googleapis/test/safebrowsing/v4_test.dart +++ b/generated/googleapis/test/safebrowsing/v4_test.dart
@@ -91,14 +91,14 @@ buildCounterClientInfo--; } -buildUnnamed1169() { +buildUnnamed1195() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1169(core.List<core.String> o) { +checkUnnamed1195(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -112,7 +112,7 @@ o.maxDatabaseEntries = 42; o.maxUpdateEntries = 42; o.region = "foo"; - o.supportedCompressions = buildUnnamed1169(); + o.supportedCompressions = buildUnnamed1195(); } buildCounterConstraints--; return o; @@ -124,19 +124,19 @@ unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); unittest.expect(o.maxUpdateEntries, unittest.equals(42)); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1169(o.supportedCompressions); + checkUnnamed1195(o.supportedCompressions); } buildCounterConstraints--; } -buildUnnamed1170() { +buildUnnamed1196() { var o = new core.List<api.ListUpdateRequest>(); o.add(buildListUpdateRequest()); o.add(buildListUpdateRequest()); return o; } -checkUnnamed1170(core.List<api.ListUpdateRequest> o) { +checkUnnamed1196(core.List<api.ListUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateRequest(o[0]); checkListUpdateRequest(o[1]); @@ -148,7 +148,7 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { o.client = buildClientInfo(); - o.listUpdateRequests = buildUnnamed1170(); + o.listUpdateRequests = buildUnnamed1196(); } buildCounterFetchThreatListUpdatesRequest--; return o; @@ -158,19 +158,19 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1170(o.listUpdateRequests); + checkUnnamed1196(o.listUpdateRequests); } buildCounterFetchThreatListUpdatesRequest--; } -buildUnnamed1171() { +buildUnnamed1197() { var o = new core.List<api.ListUpdateResponse>(); o.add(buildListUpdateResponse()); o.add(buildListUpdateResponse()); return o; } -checkUnnamed1171(core.List<api.ListUpdateResponse> o) { +checkUnnamed1197(core.List<api.ListUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateResponse(o[0]); checkListUpdateResponse(o[1]); @@ -181,7 +181,7 @@ var o = new api.FetchThreatListUpdatesResponse(); buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - o.listUpdateResponses = buildUnnamed1171(); + o.listUpdateResponses = buildUnnamed1197(); o.minimumWaitDuration = "foo"; } buildCounterFetchThreatListUpdatesResponse--; @@ -191,20 +191,20 @@ checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - checkUnnamed1171(o.listUpdateResponses); + checkUnnamed1197(o.listUpdateResponses); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); } buildCounterFetchThreatListUpdatesResponse--; } -buildUnnamed1172() { +buildUnnamed1198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1172(core.List<core.String> o) { +checkUnnamed1198(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -216,7 +216,7 @@ buildCounterFindFullHashesRequest++; if (buildCounterFindFullHashesRequest < 3) { o.client = buildClientInfo(); - o.clientStates = buildUnnamed1172(); + o.clientStates = buildUnnamed1198(); o.threatInfo = buildThreatInfo(); } buildCounterFindFullHashesRequest--; @@ -227,20 +227,20 @@ buildCounterFindFullHashesRequest++; if (buildCounterFindFullHashesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1172(o.clientStates); + checkUnnamed1198(o.clientStates); checkThreatInfo(o.threatInfo); } buildCounterFindFullHashesRequest--; } -buildUnnamed1173() { +buildUnnamed1199() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1173(core.List<api.ThreatMatch> o) { +checkUnnamed1199(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -251,7 +251,7 @@ var o = new api.FindFullHashesResponse(); buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - o.matches = buildUnnamed1173(); + o.matches = buildUnnamed1199(); o.minimumWaitDuration = "foo"; o.negativeCacheDuration = "foo"; } @@ -262,7 +262,7 @@ checkFindFullHashesResponse(api.FindFullHashesResponse o) { buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - checkUnnamed1173(o.matches); + checkUnnamed1199(o.matches); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); } @@ -290,14 +290,14 @@ buildCounterFindThreatMatchesRequest--; } -buildUnnamed1174() { +buildUnnamed1200() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1174(core.List<api.ThreatMatch> o) { +checkUnnamed1200(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -308,7 +308,7 @@ var o = new api.FindThreatMatchesResponse(); buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - o.matches = buildUnnamed1174(); + o.matches = buildUnnamed1200(); } buildCounterFindThreatMatchesResponse--; return o; @@ -317,19 +317,19 @@ checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - checkUnnamed1174(o.matches); + checkUnnamed1200(o.matches); } buildCounterFindThreatMatchesResponse--; } -buildUnnamed1175() { +buildUnnamed1201() { var o = new core.List<api.ThreatListDescriptor>(); o.add(buildThreatListDescriptor()); o.add(buildThreatListDescriptor()); return o; } -checkUnnamed1175(core.List<api.ThreatListDescriptor> o) { +checkUnnamed1201(core.List<api.ThreatListDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatListDescriptor(o[0]); checkThreatListDescriptor(o[1]); @@ -340,7 +340,7 @@ var o = new api.ListThreatListsResponse(); buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - o.threatLists = buildUnnamed1175(); + o.threatLists = buildUnnamed1201(); } buildCounterListThreatListsResponse--; return o; @@ -349,7 +349,7 @@ checkListThreatListsResponse(api.ListThreatListsResponse o) { buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - checkUnnamed1175(o.threatLists); + checkUnnamed1201(o.threatLists); } buildCounterListThreatListsResponse--; } @@ -381,27 +381,27 @@ buildCounterListUpdateRequest--; } -buildUnnamed1176() { +buildUnnamed1202() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1176(core.List<api.ThreatEntrySet> o) { +checkUnnamed1202(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); } -buildUnnamed1177() { +buildUnnamed1203() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1177(core.List<api.ThreatEntrySet> o) { +checkUnnamed1203(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); @@ -412,11 +412,11 @@ var o = new api.ListUpdateResponse(); buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - o.additions = buildUnnamed1176(); + o.additions = buildUnnamed1202(); o.checksum = buildChecksum(); o.newClientState = "foo"; o.platformType = "foo"; - o.removals = buildUnnamed1177(); + o.removals = buildUnnamed1203(); o.responseType = "foo"; o.threatEntryType = "foo"; o.threatType = "foo"; @@ -428,11 +428,11 @@ checkListUpdateResponse(api.ListUpdateResponse o) { buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - checkUnnamed1176(o.additions); + checkUnnamed1202(o.additions); checkChecksum(o.checksum); unittest.expect(o.newClientState, unittest.equals('foo')); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed1177(o.removals); + checkUnnamed1203(o.removals); unittest.expect(o.responseType, unittest.equals('foo')); unittest.expect(o.threatEntryType, unittest.equals('foo')); unittest.expect(o.threatType, unittest.equals('foo')); @@ -482,14 +482,14 @@ buildCounterRawHashes--; } -buildUnnamed1178() { +buildUnnamed1204() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1178(core.List<core.int> o) { +checkUnnamed1204(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -500,7 +500,7 @@ var o = new api.RawIndices(); buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - o.indices = buildUnnamed1178(); + o.indices = buildUnnamed1204(); } buildCounterRawIndices--; return o; @@ -509,7 +509,7 @@ checkRawIndices(api.RawIndices o) { buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - checkUnnamed1178(o.indices); + checkUnnamed1204(o.indices); } buildCounterRawIndices--; } @@ -562,14 +562,14 @@ buildCounterThreatEntry--; } -buildUnnamed1179() { +buildUnnamed1205() { var o = new core.List<api.MetadataEntry>(); o.add(buildMetadataEntry()); o.add(buildMetadataEntry()); return o; } -checkUnnamed1179(core.List<api.MetadataEntry> o) { +checkUnnamed1205(core.List<api.MetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataEntry(o[0]); checkMetadataEntry(o[1]); @@ -580,7 +580,7 @@ var o = new api.ThreatEntryMetadata(); buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - o.entries = buildUnnamed1179(); + o.entries = buildUnnamed1205(); } buildCounterThreatEntryMetadata--; return o; @@ -589,7 +589,7 @@ checkThreatEntryMetadata(api.ThreatEntryMetadata o) { buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - checkUnnamed1179(o.entries); + checkUnnamed1205(o.entries); } buildCounterThreatEntryMetadata--; } @@ -621,53 +621,53 @@ buildCounterThreatEntrySet--; } -buildUnnamed1180() { +buildUnnamed1206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1180(core.List<core.String> o) { +checkUnnamed1206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1181() { +buildUnnamed1207() { var o = new core.List<api.ThreatEntry>(); o.add(buildThreatEntry()); o.add(buildThreatEntry()); return o; } -checkUnnamed1181(core.List<api.ThreatEntry> o) { +checkUnnamed1207(core.List<api.ThreatEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntry(o[0]); checkThreatEntry(o[1]); } -buildUnnamed1182() { +buildUnnamed1208() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1182(core.List<core.String> o) { +checkUnnamed1208(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1183() { +buildUnnamed1209() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1183(core.List<core.String> o) { +checkUnnamed1209(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -678,10 +678,10 @@ var o = new api.ThreatInfo(); buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - o.platformTypes = buildUnnamed1180(); - o.threatEntries = buildUnnamed1181(); - o.threatEntryTypes = buildUnnamed1182(); - o.threatTypes = buildUnnamed1183(); + o.platformTypes = buildUnnamed1206(); + o.threatEntries = buildUnnamed1207(); + o.threatEntryTypes = buildUnnamed1208(); + o.threatTypes = buildUnnamed1209(); } buildCounterThreatInfo--; return o; @@ -690,10 +690,10 @@ checkThreatInfo(api.ThreatInfo o) { buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - checkUnnamed1180(o.platformTypes); - checkUnnamed1181(o.threatEntries); - checkUnnamed1182(o.threatEntryTypes); - checkUnnamed1183(o.threatTypes); + checkUnnamed1206(o.platformTypes); + checkUnnamed1207(o.threatEntries); + checkUnnamed1208(o.threatEntryTypes); + checkUnnamed1209(o.threatTypes); } buildCounterThreatInfo--; }
diff --git a/generated/googleapis/test/script/v1_test.dart b/generated/googleapis/test/script/v1_test.dart index 3d81a9e..4d71ab9 100644 --- a/generated/googleapis/test/script/v1_test.dart +++ b/generated/googleapis/test/script/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed910() { +buildUnnamed935() { var o = new core.List<api.ScriptStackTraceElement>(); o.add(buildScriptStackTraceElement()); o.add(buildScriptStackTraceElement()); return o; } -checkUnnamed910(core.List<api.ScriptStackTraceElement> o) { +checkUnnamed935(core.List<api.ScriptStackTraceElement> o) { unittest.expect(o, unittest.hasLength(2)); checkScriptStackTraceElement(o[0]); checkScriptStackTraceElement(o[1]); @@ -71,7 +71,7 @@ if (buildCounterExecutionError < 3) { o.errorMessage = "foo"; o.errorType = "foo"; - o.scriptStackTraceElements = buildUnnamed910(); + o.scriptStackTraceElements = buildUnnamed935(); } buildCounterExecutionError--; return o; @@ -82,19 +82,19 @@ if (buildCounterExecutionError < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.errorType, unittest.equals('foo')); - checkUnnamed910(o.scriptStackTraceElements); + checkUnnamed935(o.scriptStackTraceElements); } buildCounterExecutionError--; } -buildUnnamed911() { +buildUnnamed936() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed911(core.List<core.Object> o) { +checkUnnamed936(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -107,7 +107,7 @@ if (buildCounterExecutionRequest < 3) { o.devMode = true; o.function = "foo"; - o.parameters = buildUnnamed911(); + o.parameters = buildUnnamed936(); o.sessionState = "foo"; } buildCounterExecutionRequest--; @@ -119,7 +119,7 @@ if (buildCounterExecutionRequest < 3) { unittest.expect(o.devMode, unittest.isTrue); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed911(o.parameters); + checkUnnamed936(o.parameters); unittest.expect(o.sessionState, unittest.equals('foo')); } buildCounterExecutionRequest--; @@ -146,27 +146,27 @@ buildCounterExecutionResponse--; } -buildUnnamed912() { +buildUnnamed937() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed912(core.Map<core.String, core.Object> o) { +checkUnnamed937(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o["x"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o["y"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed913() { +buildUnnamed938() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed913(core.Map<core.String, core.Object> o) { +checkUnnamed938(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted6 = (o["x"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); @@ -179,9 +179,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed912(); + o.metadata = buildUnnamed937(); o.name = "foo"; - o.response = buildUnnamed913(); + o.response = buildUnnamed938(); } buildCounterOperation--; return o; @@ -192,9 +192,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed912(o.metadata); + checkUnnamed937(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed913(o.response); + checkUnnamed938(o.response); } buildCounterOperation--; } @@ -220,30 +220,30 @@ buildCounterScriptStackTraceElement--; } -buildUnnamed914() { +buildUnnamed939() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed914(core.Map<core.String, core.Object> o) { +checkUnnamed939(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); } -buildUnnamed915() { +buildUnnamed940() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed914()); - o.add(buildUnnamed914()); + o.add(buildUnnamed939()); + o.add(buildUnnamed939()); return o; } -checkUnnamed915(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed940(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed914(o[0]); - checkUnnamed914(o[1]); + checkUnnamed939(o[0]); + checkUnnamed939(o[1]); } core.int buildCounterStatus = 0; @@ -252,7 +252,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed915(); + o.details = buildUnnamed940(); o.message = "foo"; } buildCounterStatus--; @@ -263,7 +263,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed915(o.details); + checkUnnamed940(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/servicecontrol/v1_test.dart b/generated/googleapis/test/servicecontrol/v1_test.dart index a22e28c..b850d2c 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart
@@ -78,6 +78,7 @@ buildCounterCheckRequest++; if (buildCounterCheckRequest < 3) { o.operation = buildOperation(); + o.serviceConfigId = "foo"; } buildCounterCheckRequest--; return o; @@ -87,18 +88,19 @@ buildCounterCheckRequest++; if (buildCounterCheckRequest < 3) { checkOperation(o.operation); + unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterCheckRequest--; } -buildUnnamed1874() { +buildUnnamed1889() { var o = new core.List<api.CheckError>(); o.add(buildCheckError()); o.add(buildCheckError()); return o; } -checkUnnamed1874(core.List<api.CheckError> o) { +checkUnnamed1889(core.List<api.CheckError> o) { unittest.expect(o, unittest.hasLength(2)); checkCheckError(o[0]); checkCheckError(o[1]); @@ -109,7 +111,7 @@ var o = new api.CheckResponse(); buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - o.checkErrors = buildUnnamed1874(); + o.checkErrors = buildUnnamed1889(); o.operationId = "foo"; o.serviceConfigId = "foo"; } @@ -120,21 +122,21 @@ checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - checkUnnamed1874(o.checkErrors); + checkUnnamed1889(o.checkErrors); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterCheckResponse--; } -buildUnnamed1875() { +buildUnnamed1890() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1875(core.List<core.String> o) { +checkUnnamed1890(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -145,7 +147,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1875(); + o.bucketCounts = buildUnnamed1890(); o.count = "foo"; o.explicitBuckets = buildExplicitBuckets(); o.exponentialBuckets = buildExponentialBuckets(); @@ -162,7 +164,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1875(o.bucketCounts); + checkUnnamed1890(o.bucketCounts); unittest.expect(o.count, unittest.equals('foo')); checkExplicitBuckets(o.explicitBuckets); checkExponentialBuckets(o.exponentialBuckets); @@ -175,14 +177,14 @@ buildCounterDistribution--; } -buildUnnamed1876() { +buildUnnamed1891() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1876(core.List<core.double> o) { +checkUnnamed1891(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -193,7 +195,7 @@ var o = new api.ExplicitBuckets(); buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - o.bounds = buildUnnamed1876(); + o.bounds = buildUnnamed1891(); } buildCounterExplicitBuckets--; return o; @@ -202,7 +204,7 @@ checkExplicitBuckets(api.ExplicitBuckets o) { buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - checkUnnamed1876(o.bounds); + checkUnnamed1891(o.bounds); } buildCounterExplicitBuckets--; } @@ -253,40 +255,40 @@ buildCounterLinearBuckets--; } -buildUnnamed1877() { +buildUnnamed1892() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1877(core.Map<core.String, core.String> o) { +checkUnnamed1892(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1878() { +buildUnnamed1893() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1878(core.Map<core.String, core.Object> o) { +checkUnnamed1893(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1879() { +buildUnnamed1894() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1879(core.Map<core.String, core.Object> o) { +checkUnnamed1894(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -298,11 +300,11 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { o.insertId = "foo"; - o.labels = buildUnnamed1877(); + o.labels = buildUnnamed1892(); o.name = "foo"; - o.protoPayload = buildUnnamed1878(); + o.protoPayload = buildUnnamed1893(); o.severity = "foo"; - o.structPayload = buildUnnamed1879(); + o.structPayload = buildUnnamed1894(); o.textPayload = "foo"; o.timestamp = "foo"; } @@ -314,25 +316,25 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed1877(o.labels); + checkUnnamed1892(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1878(o.protoPayload); + checkUnnamed1893(o.protoPayload); unittest.expect(o.severity, unittest.equals('foo')); - checkUnnamed1879(o.structPayload); + checkUnnamed1894(o.structPayload); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); } buildCounterLogEntry--; } -buildUnnamed1880() { +buildUnnamed1895() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1880(core.Map<core.String, core.String> o) { +checkUnnamed1895(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -348,7 +350,7 @@ o.doubleValue = 42.0; o.endTime = "foo"; o.int64Value = "foo"; - o.labels = buildUnnamed1880(); + o.labels = buildUnnamed1895(); o.startTime = "foo"; o.stringValue = "foo"; } @@ -364,21 +366,21 @@ unittest.expect(o.doubleValue, unittest.equals(42.0)); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.int64Value, unittest.equals('foo')); - checkUnnamed1880(o.labels); + checkUnnamed1895(o.labels); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterMetricValue--; } -buildUnnamed1881() { +buildUnnamed1896() { var o = new core.List<api.MetricValue>(); o.add(buildMetricValue()); o.add(buildMetricValue()); return o; } -checkUnnamed1881(core.List<api.MetricValue> o) { +checkUnnamed1896(core.List<api.MetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValue(o[0]); checkMetricValue(o[1]); @@ -390,7 +392,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { o.metricName = "foo"; - o.metricValues = buildUnnamed1881(); + o.metricValues = buildUnnamed1896(); } buildCounterMetricValueSet--; return o; @@ -400,45 +402,45 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { unittest.expect(o.metricName, unittest.equals('foo')); - checkUnnamed1881(o.metricValues); + checkUnnamed1896(o.metricValues); } buildCounterMetricValueSet--; } -buildUnnamed1882() { +buildUnnamed1897() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1882(core.Map<core.String, core.String> o) { +checkUnnamed1897(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1883() { +buildUnnamed1898() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed1883(core.List<api.LogEntry> o) { +checkUnnamed1898(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed1884() { +buildUnnamed1899() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1884(core.List<api.MetricValueSet> o) { +checkUnnamed1899(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -452,9 +454,9 @@ o.consumerId = "foo"; o.endTime = "foo"; o.importance = "foo"; - o.labels = buildUnnamed1882(); - o.logEntries = buildUnnamed1883(); - o.metricValueSets = buildUnnamed1884(); + o.labels = buildUnnamed1897(); + o.logEntries = buildUnnamed1898(); + o.metricValueSets = buildUnnamed1899(); o.operationId = "foo"; o.operationName = "foo"; o.startTime = "foo"; @@ -469,9 +471,9 @@ unittest.expect(o.consumerId, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.importance, unittest.equals('foo')); - checkUnnamed1882(o.labels); - checkUnnamed1883(o.logEntries); - checkUnnamed1884(o.metricValueSets); + checkUnnamed1897(o.labels); + checkUnnamed1898(o.logEntries); + checkUnnamed1899(o.metricValueSets); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.operationName, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -500,14 +502,14 @@ buildCounterReportError--; } -buildUnnamed1885() { +buildUnnamed1900() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1885(core.List<api.Operation> o) { +checkUnnamed1900(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -518,7 +520,8 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.operations = buildUnnamed1885(); + o.operations = buildUnnamed1900(); + o.serviceConfigId = "foo"; } buildCounterReportRequest--; return o; @@ -527,19 +530,20 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1885(o.operations); + checkUnnamed1900(o.operations); + unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed1886() { +buildUnnamed1901() { var o = new core.List<api.ReportError>(); o.add(buildReportError()); o.add(buildReportError()); return o; } -checkUnnamed1886(core.List<api.ReportError> o) { +checkUnnamed1901(core.List<api.ReportError> o) { unittest.expect(o, unittest.hasLength(2)); checkReportError(o[0]); checkReportError(o[1]); @@ -550,7 +554,7 @@ var o = new api.ReportResponse(); buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - o.reportErrors = buildUnnamed1886(); + o.reportErrors = buildUnnamed1901(); o.serviceConfigId = "foo"; } buildCounterReportResponse--; @@ -560,36 +564,36 @@ checkReportResponse(api.ReportResponse o) { buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - checkUnnamed1886(o.reportErrors); + checkUnnamed1901(o.reportErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportResponse--; } -buildUnnamed1887() { +buildUnnamed1902() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1887(core.Map<core.String, core.Object> o) { +checkUnnamed1902(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1888() { +buildUnnamed1903() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1887()); - o.add(buildUnnamed1887()); + o.add(buildUnnamed1902()); + o.add(buildUnnamed1902()); return o; } -checkUnnamed1888(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1903(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1887(o[0]); - checkUnnamed1887(o[1]); + checkUnnamed1902(o[0]); + checkUnnamed1902(o[1]); } core.int buildCounterStatus = 0; @@ -598,7 +602,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1888(); + o.details = buildUnnamed1903(); o.message = "foo"; } buildCounterStatus--; @@ -609,7 +613,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1888(o.details); + checkUnnamed1903(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/servicemanagement/v1_test.dart b/generated/googleapis/test/servicemanagement/v1_test.dart index 26a9c83..06a8d96 100644 --- a/generated/googleapis/test/servicemanagement/v1_test.dart +++ b/generated/googleapis/test/servicemanagement/v1_test.dart
@@ -70,40 +70,40 @@ buildCounterAdvice--; } -buildUnnamed1220() { +buildUnnamed1246() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed1220(core.List<api.Method> o) { +checkUnnamed1246(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed1221() { +buildUnnamed1247() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed1221(core.List<api.Mixin> o) { +checkUnnamed1247(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed1222() { +buildUnnamed1248() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1222(core.List<api.Option> o) { +checkUnnamed1248(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -114,10 +114,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed1220(); - o.mixins = buildUnnamed1221(); + o.methods = buildUnnamed1246(); + o.mixins = buildUnnamed1247(); o.name = "foo"; - o.options = buildUnnamed1222(); + o.options = buildUnnamed1248(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -129,10 +129,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed1220(o.methods); - checkUnnamed1221(o.mixins); + checkUnnamed1246(o.methods); + checkUnnamed1247(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1222(o.options); + checkUnnamed1248(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -140,14 +140,14 @@ buildCounterApi--; } -buildUnnamed1223() { +buildUnnamed1249() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1223(core.List<core.String> o) { +checkUnnamed1249(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -158,7 +158,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.exemptedMembers = buildUnnamed1223(); + o.exemptedMembers = buildUnnamed1249(); o.service = "foo"; } buildCounterAuditConfig--; @@ -168,7 +168,7 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1223(o.exemptedMembers); + checkUnnamed1249(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; @@ -179,6 +179,7 @@ var o = new api.AuthProvider(); buildCounterAuthProvider++; if (buildCounterAuthProvider < 3) { + o.audiences = "foo"; o.id = "foo"; o.issuer = "foo"; o.jwksUri = "foo"; @@ -190,6 +191,7 @@ checkAuthProvider(api.AuthProvider o) { buildCounterAuthProvider++; if (buildCounterAuthProvider < 3) { + unittest.expect(o.audiences, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.issuer, unittest.equals('foo')); unittest.expect(o.jwksUri, unittest.equals('foo')); @@ -218,27 +220,27 @@ buildCounterAuthRequirement--; } -buildUnnamed1224() { +buildUnnamed1250() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed1224(core.List<api.AuthProvider> o) { +checkUnnamed1250(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed1225() { +buildUnnamed1251() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed1225(core.List<api.AuthenticationRule> o) { +checkUnnamed1251(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -249,8 +251,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed1224(); - o.rules = buildUnnamed1225(); + o.providers = buildUnnamed1250(); + o.rules = buildUnnamed1251(); } buildCounterAuthentication--; return o; @@ -259,20 +261,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed1224(o.providers); - checkUnnamed1225(o.rules); + checkUnnamed1250(o.providers); + checkUnnamed1251(o.rules); } buildCounterAuthentication--; } -buildUnnamed1226() { +buildUnnamed1252() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed1226(core.List<api.AuthRequirement> o) { +checkUnnamed1252(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -285,7 +287,7 @@ if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed1226(); + o.requirements = buildUnnamed1252(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -297,20 +299,20 @@ if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkOAuthRequirements(o.oauth); - checkUnnamed1226(o.requirements); + checkUnnamed1252(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; } -buildUnnamed1227() { +buildUnnamed1253() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed1227(core.List<api.BackendRule> o) { +checkUnnamed1253(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -321,7 +323,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed1227(); + o.rules = buildUnnamed1253(); } buildCounterBackend--; return o; @@ -330,7 +332,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed1227(o.rules); + checkUnnamed1253(o.rules); } buildCounterBackend--; } @@ -358,14 +360,14 @@ buildCounterBackendRule--; } -buildUnnamed1228() { +buildUnnamed1254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1228(core.List<core.String> o) { +checkUnnamed1254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -376,7 +378,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1228(); + o.members = buildUnnamed1254(); o.role = "foo"; } buildCounterBinding--; @@ -386,20 +388,20 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1228(o.members); + checkUnnamed1254(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed1229() { +buildUnnamed1255() { var o = new core.List<api.ConfigChange>(); o.add(buildConfigChange()); o.add(buildConfigChange()); return o; } -checkUnnamed1229(core.List<api.ConfigChange> o) { +checkUnnamed1255(core.List<api.ConfigChange> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigChange(o[0]); checkConfigChange(o[1]); @@ -410,7 +412,7 @@ var o = new api.ChangeReport(); buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - o.configChanges = buildUnnamed1229(); + o.configChanges = buildUnnamed1255(); } buildCounterChangeReport--; return o; @@ -419,7 +421,7 @@ checkChangeReport(api.ChangeReport o) { buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - checkUnnamed1229(o.configChanges); + checkUnnamed1255(o.configChanges); } buildCounterChangeReport--; } @@ -441,14 +443,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed1230() { +buildUnnamed1256() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1230(core.List<core.String> o) { +checkUnnamed1256(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -464,7 +466,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1230(); + o.values = buildUnnamed1256(); } buildCounterCondition--; return o; @@ -478,19 +480,19 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1230(o.values); + checkUnnamed1256(o.values); } buildCounterCondition--; } -buildUnnamed1231() { +buildUnnamed1257() { var o = new core.List<api.Advice>(); o.add(buildAdvice()); o.add(buildAdvice()); return o; } -checkUnnamed1231(core.List<api.Advice> o) { +checkUnnamed1257(core.List<api.Advice> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvice(o[0]); checkAdvice(o[1]); @@ -501,7 +503,7 @@ var o = new api.ConfigChange(); buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - o.advices = buildUnnamed1231(); + o.advices = buildUnnamed1257(); o.changeType = "foo"; o.element = "foo"; o.newValue = "foo"; @@ -514,7 +516,7 @@ checkConfigChange(api.ConfigChange o) { buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - checkUnnamed1231(o.advices); + checkUnnamed1257(o.advices); unittest.expect(o.changeType, unittest.equals('foo')); unittest.expect(o.element, unittest.equals('foo')); unittest.expect(o.newValue, unittest.equals('foo')); @@ -565,14 +567,14 @@ buildCounterConfigRef--; } -buildUnnamed1232() { +buildUnnamed1258() { var o = new core.List<api.ConfigFile>(); o.add(buildConfigFile()); o.add(buildConfigFile()); return o; } -checkUnnamed1232(core.List<api.ConfigFile> o) { +checkUnnamed1258(core.List<api.ConfigFile> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigFile(o[0]); checkConfigFile(o[1]); @@ -583,7 +585,7 @@ var o = new api.ConfigSource(); buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - o.files = buildUnnamed1232(); + o.files = buildUnnamed1258(); o.id = "foo"; } buildCounterConfigSource--; @@ -593,20 +595,20 @@ checkConfigSource(api.ConfigSource o) { buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - checkUnnamed1232(o.files); + checkUnnamed1258(o.files); unittest.expect(o.id, unittest.equals('foo')); } buildCounterConfigSource--; } -buildUnnamed1233() { +buildUnnamed1259() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed1233(core.List<api.ContextRule> o) { +checkUnnamed1259(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -617,7 +619,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed1233(); + o.rules = buildUnnamed1259(); } buildCounterContext--; return o; @@ -626,32 +628,32 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1233(o.rules); + checkUnnamed1259(o.rules); } buildCounterContext--; } -buildUnnamed1234() { +buildUnnamed1260() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1234(core.List<core.String> o) { +checkUnnamed1260(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1235() { +buildUnnamed1261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1235(core.List<core.String> o) { +checkUnnamed1261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -662,8 +664,8 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed1234(); - o.requested = buildUnnamed1235(); + o.provided = buildUnnamed1260(); + o.requested = buildUnnamed1261(); o.selector = "foo"; } buildCounterContextRule--; @@ -673,8 +675,8 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed1234(o.provided); - checkUnnamed1235(o.requested); + checkUnnamed1260(o.provided); + checkUnnamed1261(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -720,27 +722,27 @@ buildCounterCounterOptions--; } -buildUnnamed1236() { +buildUnnamed1262() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed1236(core.List<api.CustomErrorRule> o) { +checkUnnamed1262(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed1237() { +buildUnnamed1263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1237(core.List<core.String> o) { +checkUnnamed1263(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -751,8 +753,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed1236(); - o.types = buildUnnamed1237(); + o.rules = buildUnnamed1262(); + o.types = buildUnnamed1263(); } buildCounterCustomError--; return o; @@ -761,8 +763,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed1236(o.rules); - checkUnnamed1237(o.types); + checkUnnamed1262(o.rules); + checkUnnamed1263(o.types); } buildCounterCustomError--; } @@ -885,27 +887,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed1238() { +buildUnnamed1264() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1238(core.List<api.Page> o) { +checkUnnamed1264(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1239() { +buildUnnamed1265() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed1239(core.List<api.DocumentationRule> o) { +checkUnnamed1265(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -918,8 +920,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed1238(); - o.rules = buildUnnamed1239(); + o.pages = buildUnnamed1264(); + o.rules = buildUnnamed1265(); o.summary = "foo"; } buildCounterDocumentation--; @@ -931,8 +933,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed1238(o.pages); - checkUnnamed1239(o.rules); + checkUnnamed1264(o.pages); + checkUnnamed1265(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -980,40 +982,40 @@ buildCounterEnableServiceRequest--; } -buildUnnamed1240() { +buildUnnamed1266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1240(core.List<core.String> o) { +checkUnnamed1266(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1241() { +buildUnnamed1267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1241(core.List<core.String> o) { +checkUnnamed1267(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1242() { +buildUnnamed1268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1242(core.List<core.String> o) { +checkUnnamed1268(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1024,10 +1026,10 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed1240(); + o.aliases = buildUnnamed1266(); o.allowCors = true; - o.apis = buildUnnamed1241(); - o.features = buildUnnamed1242(); + o.apis = buildUnnamed1267(); + o.features = buildUnnamed1268(); o.name = "foo"; } buildCounterEndpoint--; @@ -1037,36 +1039,36 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed1240(o.aliases); + checkUnnamed1266(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed1241(o.apis); - checkUnnamed1242(o.features); + checkUnnamed1267(o.apis); + checkUnnamed1268(o.features); unittest.expect(o.name, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed1243() { +buildUnnamed1269() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed1243(core.List<api.EnumValue> o) { +checkUnnamed1269(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed1244() { +buildUnnamed1270() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1244(core.List<api.Option> o) { +checkUnnamed1270(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1077,9 +1079,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed1243(); + o.enumvalue = buildUnnamed1269(); o.name = "foo"; - o.options = buildUnnamed1244(); + o.options = buildUnnamed1270(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1090,23 +1092,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed1243(o.enumvalue); + checkUnnamed1269(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1244(o.options); + checkUnnamed1270(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed1245() { +buildUnnamed1271() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1245(core.List<api.Option> o) { +checkUnnamed1271(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1119,7 +1121,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed1245(); + o.options = buildUnnamed1271(); } buildCounterEnumValue--; return o; @@ -1130,19 +1132,19 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed1245(o.options); + checkUnnamed1271(o.options); } buildCounterEnumValue--; } -buildUnnamed1246() { +buildUnnamed1272() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1246(core.List<api.Option> o) { +checkUnnamed1272(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1160,7 +1162,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1246(); + o.options = buildUnnamed1272(); o.packed = true; o.typeUrl = "foo"; } @@ -1178,34 +1180,34 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1246(o.options); + checkUnnamed1272(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed1247() { +buildUnnamed1273() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1247(core.Map<core.String, core.Object> o) { +checkUnnamed1273(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1248() { +buildUnnamed1274() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1248(core.Map<core.String, core.Object> o) { +checkUnnamed1274(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1216,8 +1218,8 @@ var o = new api.GenerateConfigReportRequest(); buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - o.newConfig = buildUnnamed1247(); - o.oldConfig = buildUnnamed1248(); + o.newConfig = buildUnnamed1273(); + o.oldConfig = buildUnnamed1274(); } buildCounterGenerateConfigReportRequest--; return o; @@ -1226,33 +1228,33 @@ checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - checkUnnamed1247(o.newConfig); - checkUnnamed1248(o.oldConfig); + checkUnnamed1273(o.newConfig); + checkUnnamed1274(o.oldConfig); } buildCounterGenerateConfigReportRequest--; } -buildUnnamed1249() { +buildUnnamed1275() { var o = new core.List<api.ChangeReport>(); o.add(buildChangeReport()); o.add(buildChangeReport()); return o; } -checkUnnamed1249(core.List<api.ChangeReport> o) { +checkUnnamed1275(core.List<api.ChangeReport> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeReport(o[0]); checkChangeReport(o[1]); } -buildUnnamed1250() { +buildUnnamed1276() { var o = new core.List<api.Diagnostic>(); o.add(buildDiagnostic()); o.add(buildDiagnostic()); return o; } -checkUnnamed1250(core.List<api.Diagnostic> o) { +checkUnnamed1276(core.List<api.Diagnostic> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostic(o[0]); checkDiagnostic(o[1]); @@ -1263,8 +1265,8 @@ var o = new api.GenerateConfigReportResponse(); buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - o.changeReports = buildUnnamed1249(); - o.diagnostics = buildUnnamed1250(); + o.changeReports = buildUnnamed1275(); + o.diagnostics = buildUnnamed1276(); o.id = "foo"; o.serviceName = "foo"; } @@ -1275,8 +1277,8 @@ checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - checkUnnamed1249(o.changeReports); - checkUnnamed1250(o.diagnostics); + checkUnnamed1275(o.changeReports); + checkUnnamed1276(o.diagnostics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.serviceName, unittest.equals('foo')); } @@ -1300,14 +1302,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1251() { +buildUnnamed1277() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1251(core.List<api.HttpRule> o) { +checkUnnamed1277(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1318,7 +1320,7 @@ var o = new api.Http(); buildCounterHttp++; if (buildCounterHttp < 3) { - o.rules = buildUnnamed1251(); + o.rules = buildUnnamed1277(); } buildCounterHttp--; return o; @@ -1327,19 +1329,19 @@ checkHttp(api.Http o) { buildCounterHttp++; if (buildCounterHttp < 3) { - checkUnnamed1251(o.rules); + checkUnnamed1277(o.rules); } buildCounterHttp--; } -buildUnnamed1252() { +buildUnnamed1278() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1252(core.List<api.HttpRule> o) { +checkUnnamed1278(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1350,7 +1352,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed1252(); + o.additionalBindings = buildUnnamed1278(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -1370,7 +1372,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed1252(o.additionalBindings); + checkUnnamed1278(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1409,14 +1411,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed1253() { +buildUnnamed1279() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed1253(core.List<api.Service> o) { +checkUnnamed1279(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1428,7 +1430,7 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { o.nextPageToken = "foo"; - o.serviceConfigs = buildUnnamed1253(); + o.serviceConfigs = buildUnnamed1279(); } buildCounterListServiceConfigsResponse--; return o; @@ -1438,19 +1440,19 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1253(o.serviceConfigs); + checkUnnamed1279(o.serviceConfigs); } buildCounterListServiceConfigsResponse--; } -buildUnnamed1254() { +buildUnnamed1280() { var o = new core.List<api.Rollout>(); o.add(buildRollout()); o.add(buildRollout()); return o; } -checkUnnamed1254(core.List<api.Rollout> o) { +checkUnnamed1280(core.List<api.Rollout> o) { unittest.expect(o, unittest.hasLength(2)); checkRollout(o[0]); checkRollout(o[1]); @@ -1462,7 +1464,7 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { o.nextPageToken = "foo"; - o.rollouts = buildUnnamed1254(); + o.rollouts = buildUnnamed1280(); } buildCounterListServiceRolloutsResponse--; return o; @@ -1472,19 +1474,19 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1254(o.rollouts); + checkUnnamed1280(o.rollouts); } buildCounterListServiceRolloutsResponse--; } -buildUnnamed1255() { +buildUnnamed1281() { var o = new core.List<api.ManagedService>(); o.add(buildManagedService()); o.add(buildManagedService()); return o; } -checkUnnamed1255(core.List<api.ManagedService> o) { +checkUnnamed1281(core.List<api.ManagedService> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedService(o[0]); checkManagedService(o[1]); @@ -1496,7 +1498,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1255(); + o.services = buildUnnamed1281(); } buildCounterListServicesResponse--; return o; @@ -1506,7 +1508,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1255(o.services); + checkUnnamed1281(o.services); } buildCounterListServicesResponse--; } @@ -1534,14 +1536,14 @@ buildCounterLogConfig--; } -buildUnnamed1256() { +buildUnnamed1282() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1256(core.List<api.LabelDescriptor> o) { +checkUnnamed1282(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1554,7 +1556,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1256(); + o.labels = buildUnnamed1282(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1566,33 +1568,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1256(o.labels); + checkUnnamed1282(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed1257() { +buildUnnamed1283() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1257(core.List<api.LoggingDestination> o) { +checkUnnamed1283(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed1258() { +buildUnnamed1284() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1258(core.List<api.LoggingDestination> o) { +checkUnnamed1284(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1603,8 +1605,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed1257(); - o.producerDestinations = buildUnnamed1258(); + o.consumerDestinations = buildUnnamed1283(); + o.producerDestinations = buildUnnamed1284(); } buildCounterLogging--; return o; @@ -1613,20 +1615,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed1257(o.consumerDestinations); - checkUnnamed1258(o.producerDestinations); + checkUnnamed1283(o.consumerDestinations); + checkUnnamed1284(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed1259() { +buildUnnamed1285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1259(core.List<core.String> o) { +checkUnnamed1285(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1637,7 +1639,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed1259(); + o.logs = buildUnnamed1285(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1647,7 +1649,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed1259(o.logs); + checkUnnamed1285(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1712,14 +1714,14 @@ buildCounterMediaUpload--; } -buildUnnamed1260() { +buildUnnamed1286() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1260(core.List<api.Option> o) { +checkUnnamed1286(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1731,7 +1733,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed1260(); + o.options = buildUnnamed1286(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1746,7 +1748,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1260(o.options); + checkUnnamed1286(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1756,14 +1758,14 @@ buildCounterMethod--; } -buildUnnamed1261() { +buildUnnamed1287() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1261(core.List<api.LabelDescriptor> o) { +checkUnnamed1287(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1776,7 +1778,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1261(); + o.labels = buildUnnamed1287(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1792,7 +1794,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1261(o.labels); + checkUnnamed1287(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1823,14 +1825,14 @@ buildCounterMixin--; } -buildUnnamed1262() { +buildUnnamed1288() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1262(core.List<api.LabelDescriptor> o) { +checkUnnamed1288(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1843,7 +1845,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1262(); + o.labels = buildUnnamed1288(); o.name = "foo"; o.type = "foo"; } @@ -1856,34 +1858,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1262(o.labels); + checkUnnamed1288(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1263() { +buildUnnamed1289() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1263(core.List<api.MonitoringDestination> o) { +checkUnnamed1289(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed1264() { +buildUnnamed1290() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1264(core.List<api.MonitoringDestination> o) { +checkUnnamed1290(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1894,8 +1896,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed1263(); - o.producerDestinations = buildUnnamed1264(); + o.consumerDestinations = buildUnnamed1289(); + o.producerDestinations = buildUnnamed1290(); } buildCounterMonitoring--; return o; @@ -1904,20 +1906,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed1263(o.consumerDestinations); - checkUnnamed1264(o.producerDestinations); + checkUnnamed1289(o.consumerDestinations); + checkUnnamed1290(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed1265() { +buildUnnamed1291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1265(core.List<core.String> o) { +checkUnnamed1291(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1928,7 +1930,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed1265(); + o.metrics = buildUnnamed1291(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1938,7 +1940,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed1265(o.metrics); + checkUnnamed1291(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1963,27 +1965,27 @@ buildCounterOAuthRequirements--; } -buildUnnamed1266() { +buildUnnamed1292() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1266(core.Map<core.String, core.Object> o) { +checkUnnamed1292(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1267() { +buildUnnamed1293() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1267(core.Map<core.String, core.Object> o) { +checkUnnamed1293(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -1996,9 +1998,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1266(); + o.metadata = buildUnnamed1292(); o.name = "foo"; - o.response = buildUnnamed1267(); + o.response = buildUnnamed1293(); } buildCounterOperation--; return o; @@ -2009,34 +2011,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1266(o.metadata); + checkUnnamed1292(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1267(o.response); + checkUnnamed1293(o.response); } buildCounterOperation--; } -buildUnnamed1268() { +buildUnnamed1294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1268(core.List<core.String> o) { +checkUnnamed1294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1269() { +buildUnnamed1295() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed1269(core.List<api.Step> o) { +checkUnnamed1295(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2048,9 +2050,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed1268(); + o.resourceNames = buildUnnamed1294(); o.startTime = "foo"; - o.steps = buildUnnamed1269(); + o.steps = buildUnnamed1295(); } buildCounterOperationMetadata--; return o; @@ -2060,21 +2062,21 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed1268(o.resourceNames); + checkUnnamed1294(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1269(o.steps); + checkUnnamed1295(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed1270() { +buildUnnamed1296() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1270(core.Map<core.String, core.Object> o) { +checkUnnamed1296(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -2086,7 +2088,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1270(); + o.value = buildUnnamed1296(); } buildCounterOption--; return o; @@ -2096,19 +2098,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1270(o.value); + checkUnnamed1296(o.value); } buildCounterOption--; } -buildUnnamed1271() { +buildUnnamed1297() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1271(core.List<api.Page> o) { +checkUnnamed1297(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2121,7 +2123,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed1271(); + o.subpages = buildUnnamed1297(); } buildCounterPage--; return o; @@ -2132,45 +2134,45 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1271(o.subpages); + checkUnnamed1297(o.subpages); } buildCounterPage--; } -buildUnnamed1272() { +buildUnnamed1298() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1272(core.List<api.AuditConfig> o) { +checkUnnamed1298(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1273() { +buildUnnamed1299() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1273(core.List<api.Binding> o) { +checkUnnamed1299(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1274() { +buildUnnamed1300() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1274(core.List<api.Rule> o) { +checkUnnamed1300(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2181,11 +2183,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1272(); - o.bindings = buildUnnamed1273(); + o.auditConfigs = buildUnnamed1298(); + o.bindings = buildUnnamed1299(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1274(); + o.rules = buildUnnamed1300(); o.version = 42; } buildCounterPolicy--; @@ -2195,11 +2197,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1272(o.auditConfigs); - checkUnnamed1273(o.bindings); + checkUnnamed1298(o.auditConfigs); + checkUnnamed1299(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1274(o.rules); + checkUnnamed1300(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -2236,66 +2238,66 @@ buildCounterRollout--; } -buildUnnamed1275() { +buildUnnamed1301() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1275(core.List<api.Condition> o) { +checkUnnamed1301(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1276() { +buildUnnamed1302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1276(core.List<core.String> o) { +checkUnnamed1302(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1277() { +buildUnnamed1303() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1277(core.List<api.LogConfig> o) { +checkUnnamed1303(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1278() { +buildUnnamed1304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1278(core.List<core.String> o) { +checkUnnamed1304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1279() { +buildUnnamed1305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1279(core.List<core.String> o) { +checkUnnamed1305(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2307,12 +2309,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1275(); + o.conditions = buildUnnamed1301(); o.description = "foo"; - o.in_ = buildUnnamed1276(); - o.logConfig = buildUnnamed1277(); - o.notIn = buildUnnamed1278(); - o.permissions = buildUnnamed1279(); + o.in_ = buildUnnamed1302(); + o.logConfig = buildUnnamed1303(); + o.notIn = buildUnnamed1304(); + o.permissions = buildUnnamed1305(); } buildCounterRule--; return o; @@ -2322,115 +2324,115 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1275(o.conditions); + checkUnnamed1301(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1276(o.in_); - checkUnnamed1277(o.logConfig); - checkUnnamed1278(o.notIn); - checkUnnamed1279(o.permissions); + checkUnnamed1302(o.in_); + checkUnnamed1303(o.logConfig); + checkUnnamed1304(o.notIn); + checkUnnamed1305(o.permissions); } buildCounterRule--; } -buildUnnamed1280() { +buildUnnamed1306() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed1280(core.List<api.Api> o) { +checkUnnamed1306(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed1281() { +buildUnnamed1307() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed1281(core.List<api.Endpoint> o) { +checkUnnamed1307(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed1282() { +buildUnnamed1308() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed1282(core.List<api.Enum> o) { +checkUnnamed1308(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed1283() { +buildUnnamed1309() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed1283(core.List<api.LogDescriptor> o) { +checkUnnamed1309(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed1284() { +buildUnnamed1310() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1284(core.List<api.MetricDescriptor> o) { +checkUnnamed1310(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed1285() { +buildUnnamed1311() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1285(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1311(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed1286() { +buildUnnamed1312() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1286(core.List<api.Type> o) { +checkUnnamed1312(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed1287() { +buildUnnamed1313() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1287(core.List<api.Type> o) { +checkUnnamed1313(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2441,7 +2443,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed1280(); + o.apis = buildUnnamed1306(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.configVersion = 42; @@ -2449,21 +2451,21 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed1281(); - o.enums = buildUnnamed1282(); + o.endpoints = buildUnnamed1307(); + o.enums = buildUnnamed1308(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed1283(); - o.metrics = buildUnnamed1284(); - o.monitoredResources = buildUnnamed1285(); + o.logs = buildUnnamed1309(); + o.metrics = buildUnnamed1310(); + o.monitoredResources = buildUnnamed1311(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed1286(); + o.systemTypes = buildUnnamed1312(); o.title = "foo"; - o.types = buildUnnamed1287(); + o.types = buildUnnamed1313(); o.usage = buildUsage(); o.visibility = buildVisibility(); } @@ -2474,7 +2476,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed1280(o.apis); + checkUnnamed1306(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); unittest.expect(o.configVersion, unittest.equals(42)); @@ -2482,21 +2484,21 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed1281(o.endpoints); - checkUnnamed1282(o.enums); + checkUnnamed1307(o.endpoints); + checkUnnamed1308(o.enums); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed1283(o.logs); - checkUnnamed1284(o.metrics); - checkUnnamed1285(o.monitoredResources); + checkUnnamed1309(o.logs); + checkUnnamed1310(o.metrics); + checkUnnamed1311(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkSystemParameters(o.systemParameters); - checkUnnamed1286(o.systemTypes); + checkUnnamed1312(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1287(o.types); + checkUnnamed1313(o.types); checkUsage(o.usage); checkVisibility(o.visibility); } @@ -2541,30 +2543,30 @@ buildCounterSourceContext--; } -buildUnnamed1288() { +buildUnnamed1314() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1288(core.Map<core.String, core.Object> o) { +checkUnnamed1314(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1289() { +buildUnnamed1315() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1288()); - o.add(buildUnnamed1288()); + o.add(buildUnnamed1314()); + o.add(buildUnnamed1314()); return o; } -checkUnnamed1289(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1315(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1288(o[0]); - checkUnnamed1288(o[1]); + checkUnnamed1314(o[0]); + checkUnnamed1314(o[1]); } core.int buildCounterStatus = 0; @@ -2573,7 +2575,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1289(); + o.details = buildUnnamed1315(); o.message = "foo"; } buildCounterStatus--; @@ -2584,7 +2586,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1289(o.details); + checkUnnamed1315(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2674,14 +2676,14 @@ buildCounterSystemParameter--; } -buildUnnamed1290() { +buildUnnamed1316() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed1290(core.List<api.SystemParameter> o) { +checkUnnamed1316(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2692,7 +2694,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed1290(); + o.parameters = buildUnnamed1316(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2702,20 +2704,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed1290(o.parameters); + checkUnnamed1316(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed1291() { +buildUnnamed1317() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed1291(core.List<api.SystemParameterRule> o) { +checkUnnamed1317(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2726,7 +2728,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed1291(); + o.rules = buildUnnamed1317(); } buildCounterSystemParameters--; return o; @@ -2735,19 +2737,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed1291(o.rules); + checkUnnamed1317(o.rules); } buildCounterSystemParameters--; } -buildUnnamed1292() { +buildUnnamed1318() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1292(core.List<core.String> o) { +checkUnnamed1318(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2758,7 +2760,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1292(); + o.permissions = buildUnnamed1318(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2767,19 +2769,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1292(o.permissions); + checkUnnamed1318(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1293() { +buildUnnamed1319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1293(core.List<core.String> o) { +checkUnnamed1319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2790,7 +2792,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1293(); + o.permissions = buildUnnamed1319(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2799,19 +2801,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1293(o.permissions); + checkUnnamed1319(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1294() { +buildUnnamed1320() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1294(core.Map<core.String, core.double> o) { +checkUnnamed1320(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -2822,7 +2824,7 @@ var o = new api.TrafficPercentStrategy(); buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - o.percentages = buildUnnamed1294(); + o.percentages = buildUnnamed1320(); } buildCounterTrafficPercentStrategy--; return o; @@ -2831,45 +2833,45 @@ checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - checkUnnamed1294(o.percentages); + checkUnnamed1320(o.percentages); } buildCounterTrafficPercentStrategy--; } -buildUnnamed1295() { +buildUnnamed1321() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1295(core.List<api.Field> o) { +checkUnnamed1321(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1296() { +buildUnnamed1322() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1296(core.List<core.String> o) { +checkUnnamed1322(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1297() { +buildUnnamed1323() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1297(core.List<api.Option> o) { +checkUnnamed1323(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2880,10 +2882,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1295(); + o.fields = buildUnnamed1321(); o.name = "foo"; - o.oneofs = buildUnnamed1296(); - o.options = buildUnnamed1297(); + o.oneofs = buildUnnamed1322(); + o.options = buildUnnamed1323(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2894,10 +2896,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1295(o.fields); + checkUnnamed1321(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1296(o.oneofs); - checkUnnamed1297(o.options); + checkUnnamed1322(o.oneofs); + checkUnnamed1323(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -2923,27 +2925,27 @@ buildCounterUndeleteServiceResponse--; } -buildUnnamed1298() { +buildUnnamed1324() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1298(core.List<core.String> o) { +checkUnnamed1324(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1299() { +buildUnnamed1325() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed1299(core.List<api.UsageRule> o) { +checkUnnamed1325(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2954,8 +2956,8 @@ var o = new api.Usage(); buildCounterUsage++; if (buildCounterUsage < 3) { - o.requirements = buildUnnamed1298(); - o.rules = buildUnnamed1299(); + o.requirements = buildUnnamed1324(); + o.rules = buildUnnamed1325(); } buildCounterUsage--; return o; @@ -2964,8 +2966,8 @@ checkUsage(api.Usage o) { buildCounterUsage++; if (buildCounterUsage < 3) { - checkUnnamed1298(o.requirements); - checkUnnamed1299(o.rules); + checkUnnamed1324(o.requirements); + checkUnnamed1325(o.rules); } buildCounterUsage--; } @@ -2991,14 +2993,14 @@ buildCounterUsageRule--; } -buildUnnamed1300() { +buildUnnamed1326() { var o = new core.List<api.VisibilityRule>(); o.add(buildVisibilityRule()); o.add(buildVisibilityRule()); return o; } -checkUnnamed1300(core.List<api.VisibilityRule> o) { +checkUnnamed1326(core.List<api.VisibilityRule> o) { unittest.expect(o, unittest.hasLength(2)); checkVisibilityRule(o[0]); checkVisibilityRule(o[1]); @@ -3009,7 +3011,7 @@ var o = new api.Visibility(); buildCounterVisibility++; if (buildCounterVisibility < 3) { - o.rules = buildUnnamed1300(); + o.rules = buildUnnamed1326(); } buildCounterVisibility--; return o; @@ -3018,7 +3020,7 @@ checkVisibility(api.Visibility o) { buildCounterVisibility++; if (buildCounterVisibility < 3) { - checkUnnamed1300(o.rules); + checkUnnamed1326(o.rules); } buildCounterVisibility--; }
diff --git a/generated/googleapis/test/sheets/v4_test.dart b/generated/googleapis/test/sheets/v4_test.dart index a0239d6..bf95f22 100644 --- a/generated/googleapis/test/sheets/v4_test.dart +++ b/generated/googleapis/test/sheets/v4_test.dart
@@ -51,6 +51,44 @@ return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterAddBandingRequest = 0; +buildAddBandingRequest() { + var o = new api.AddBandingRequest(); + buildCounterAddBandingRequest++; + if (buildCounterAddBandingRequest < 3) { + o.bandedRange = buildBandedRange(); + } + buildCounterAddBandingRequest--; + return o; +} + +checkAddBandingRequest(api.AddBandingRequest o) { + buildCounterAddBandingRequest++; + if (buildCounterAddBandingRequest < 3) { + checkBandedRange(o.bandedRange); + } + buildCounterAddBandingRequest--; +} + +core.int buildCounterAddBandingResponse = 0; +buildAddBandingResponse() { + var o = new api.AddBandingResponse(); + buildCounterAddBandingResponse++; + if (buildCounterAddBandingResponse < 3) { + o.bandedRange = buildBandedRange(); + } + buildCounterAddBandingResponse--; + return o; +} + +checkAddBandingResponse(api.AddBandingResponse o) { + buildCounterAddBandingResponse++; + if (buildCounterAddBandingResponse < 3) { + checkBandedRange(o.bandedRange); + } + buildCounterAddBandingResponse--; +} + core.int buildCounterAddChartRequest = 0; buildAddChartRequest() { var o = new api.AddChartRequest(); @@ -262,14 +300,14 @@ buildCounterAddSheetResponse--; } -buildUnnamed602() { +buildUnnamed617() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed602(core.List<api.RowData> o) { +checkUnnamed617(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -281,7 +319,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { o.fields = "foo"; - o.rows = buildUnnamed602(); + o.rows = buildUnnamed617(); o.sheetId = 42; } buildCounterAppendCellsRequest--; @@ -292,7 +330,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); - checkUnnamed602(o.rows); + checkUnnamed617(o.rows); unittest.expect(o.sheetId, unittest.equals(42)); } buildCounterAppendCellsRequest--; @@ -386,6 +424,56 @@ buildCounterAutoResizeDimensionsRequest--; } +core.int buildCounterBandedRange = 0; +buildBandedRange() { + var o = new api.BandedRange(); + buildCounterBandedRange++; + if (buildCounterBandedRange < 3) { + o.bandedRangeId = 42; + o.columnProperties = buildBandingProperties(); + o.range = buildGridRange(); + o.rowProperties = buildBandingProperties(); + } + buildCounterBandedRange--; + return o; +} + +checkBandedRange(api.BandedRange o) { + buildCounterBandedRange++; + if (buildCounterBandedRange < 3) { + unittest.expect(o.bandedRangeId, unittest.equals(42)); + checkBandingProperties(o.columnProperties); + checkGridRange(o.range); + checkBandingProperties(o.rowProperties); + } + buildCounterBandedRange--; +} + +core.int buildCounterBandingProperties = 0; +buildBandingProperties() { + var o = new api.BandingProperties(); + buildCounterBandingProperties++; + if (buildCounterBandingProperties < 3) { + o.firstBandColor = buildColor(); + o.footerColor = buildColor(); + o.headerColor = buildColor(); + o.secondBandColor = buildColor(); + } + buildCounterBandingProperties--; + return o; +} + +checkBandingProperties(api.BandingProperties o) { + buildCounterBandingProperties++; + if (buildCounterBandingProperties < 3) { + checkColor(o.firstBandColor); + checkColor(o.footerColor); + checkColor(o.headerColor); + checkColor(o.secondBandColor); + } + buildCounterBandingProperties--; +} + core.int buildCounterBasicChartAxis = 0; buildBasicChartAxis() { var o = new api.BasicChartAxis(); @@ -451,40 +539,40 @@ buildCounterBasicChartSeries--; } -buildUnnamed603() { +buildUnnamed618() { var o = new core.List<api.BasicChartAxis>(); o.add(buildBasicChartAxis()); o.add(buildBasicChartAxis()); return o; } -checkUnnamed603(core.List<api.BasicChartAxis> o) { +checkUnnamed618(core.List<api.BasicChartAxis> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartAxis(o[0]); checkBasicChartAxis(o[1]); } -buildUnnamed604() { +buildUnnamed619() { var o = new core.List<api.BasicChartDomain>(); o.add(buildBasicChartDomain()); o.add(buildBasicChartDomain()); return o; } -checkUnnamed604(core.List<api.BasicChartDomain> o) { +checkUnnamed619(core.List<api.BasicChartDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartDomain(o[0]); checkBasicChartDomain(o[1]); } -buildUnnamed605() { +buildUnnamed620() { var o = new core.List<api.BasicChartSeries>(); o.add(buildBasicChartSeries()); o.add(buildBasicChartSeries()); return o; } -checkUnnamed605(core.List<api.BasicChartSeries> o) { +checkUnnamed620(core.List<api.BasicChartSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartSeries(o[0]); checkBasicChartSeries(o[1]); @@ -495,12 +583,12 @@ var o = new api.BasicChartSpec(); buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - o.axis = buildUnnamed603(); + o.axis = buildUnnamed618(); o.chartType = "foo"; - o.domains = buildUnnamed604(); + o.domains = buildUnnamed619(); o.headerCount = 42; o.legendPosition = "foo"; - o.series = buildUnnamed605(); + o.series = buildUnnamed620(); } buildCounterBasicChartSpec--; return o; @@ -509,37 +597,37 @@ checkBasicChartSpec(api.BasicChartSpec o) { buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - checkUnnamed603(o.axis); + checkUnnamed618(o.axis); unittest.expect(o.chartType, unittest.equals('foo')); - checkUnnamed604(o.domains); + checkUnnamed619(o.domains); unittest.expect(o.headerCount, unittest.equals(42)); unittest.expect(o.legendPosition, unittest.equals('foo')); - checkUnnamed605(o.series); + checkUnnamed620(o.series); } buildCounterBasicChartSpec--; } -buildUnnamed606() { +buildUnnamed621() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed606(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed621(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed607() { +buildUnnamed622() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed607(core.List<api.SortSpec> o) { +checkUnnamed622(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -550,9 +638,9 @@ var o = new api.BasicFilter(); buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - o.criteria = buildUnnamed606(); + o.criteria = buildUnnamed621(); o.range = buildGridRange(); - o.sortSpecs = buildUnnamed607(); + o.sortSpecs = buildUnnamed622(); } buildCounterBasicFilter--; return o; @@ -561,21 +649,87 @@ checkBasicFilter(api.BasicFilter o) { buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - checkUnnamed606(o.criteria); + checkUnnamed621(o.criteria); checkGridRange(o.range); - checkUnnamed607(o.sortSpecs); + checkUnnamed622(o.sortSpecs); } buildCounterBasicFilter--; } -buildUnnamed608() { +buildUnnamed623() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed623(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterBatchClearValuesRequest = 0; +buildBatchClearValuesRequest() { + var o = new api.BatchClearValuesRequest(); + buildCounterBatchClearValuesRequest++; + if (buildCounterBatchClearValuesRequest < 3) { + o.ranges = buildUnnamed623(); + } + buildCounterBatchClearValuesRequest--; + return o; +} + +checkBatchClearValuesRequest(api.BatchClearValuesRequest o) { + buildCounterBatchClearValuesRequest++; + if (buildCounterBatchClearValuesRequest < 3) { + checkUnnamed623(o.ranges); + } + buildCounterBatchClearValuesRequest--; +} + +buildUnnamed624() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed624(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterBatchClearValuesResponse = 0; +buildBatchClearValuesResponse() { + var o = new api.BatchClearValuesResponse(); + buildCounterBatchClearValuesResponse++; + if (buildCounterBatchClearValuesResponse < 3) { + o.clearedRanges = buildUnnamed624(); + o.spreadsheetId = "foo"; + } + buildCounterBatchClearValuesResponse--; + return o; +} + +checkBatchClearValuesResponse(api.BatchClearValuesResponse o) { + buildCounterBatchClearValuesResponse++; + if (buildCounterBatchClearValuesResponse < 3) { + checkUnnamed624(o.clearedRanges); + unittest.expect(o.spreadsheetId, unittest.equals('foo')); + } + buildCounterBatchClearValuesResponse--; +} + +buildUnnamed625() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed608(core.List<api.ValueRange> o) { +checkUnnamed625(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -587,7 +741,7 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { o.spreadsheetId = "foo"; - o.valueRanges = buildUnnamed608(); + o.valueRanges = buildUnnamed625(); } buildCounterBatchGetValuesResponse--; return o; @@ -597,19 +751,19 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { unittest.expect(o.spreadsheetId, unittest.equals('foo')); - checkUnnamed608(o.valueRanges); + checkUnnamed625(o.valueRanges); } buildCounterBatchGetValuesResponse--; } -buildUnnamed609() { +buildUnnamed626() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed609(core.List<api.Request> o) { +checkUnnamed626(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); @@ -620,7 +774,7 @@ var o = new api.BatchUpdateSpreadsheetRequest(); buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { - o.requests = buildUnnamed609(); + o.requests = buildUnnamed626(); } buildCounterBatchUpdateSpreadsheetRequest--; return o; @@ -629,19 +783,19 @@ checkBatchUpdateSpreadsheetRequest(api.BatchUpdateSpreadsheetRequest o) { buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { - checkUnnamed609(o.requests); + checkUnnamed626(o.requests); } buildCounterBatchUpdateSpreadsheetRequest--; } -buildUnnamed610() { +buildUnnamed627() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed610(core.List<api.Response> o) { +checkUnnamed627(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -652,7 +806,7 @@ var o = new api.BatchUpdateSpreadsheetResponse(); buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - o.replies = buildUnnamed610(); + o.replies = buildUnnamed627(); o.spreadsheetId = "foo"; } buildCounterBatchUpdateSpreadsheetResponse--; @@ -662,20 +816,20 @@ checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - checkUnnamed610(o.replies); + checkUnnamed627(o.replies); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterBatchUpdateSpreadsheetResponse--; } -buildUnnamed611() { +buildUnnamed628() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed611(core.List<api.ValueRange> o) { +checkUnnamed628(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -686,7 +840,7 @@ var o = new api.BatchUpdateValuesRequest(); buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - o.data = buildUnnamed611(); + o.data = buildUnnamed628(); o.valueInputOption = "foo"; } buildCounterBatchUpdateValuesRequest--; @@ -696,20 +850,20 @@ checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - checkUnnamed611(o.data); + checkUnnamed628(o.data); unittest.expect(o.valueInputOption, unittest.equals('foo')); } buildCounterBatchUpdateValuesRequest--; } -buildUnnamed612() { +buildUnnamed629() { var o = new core.List<api.UpdateValuesResponse>(); o.add(buildUpdateValuesResponse()); o.add(buildUpdateValuesResponse()); return o; } -checkUnnamed612(core.List<api.UpdateValuesResponse> o) { +checkUnnamed629(core.List<api.UpdateValuesResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateValuesResponse(o[0]); checkUpdateValuesResponse(o[1]); @@ -720,7 +874,7 @@ var o = new api.BatchUpdateValuesResponse(); buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - o.responses = buildUnnamed612(); + o.responses = buildUnnamed629(); o.spreadsheetId = "foo"; o.totalUpdatedCells = 42; o.totalUpdatedColumns = 42; @@ -734,7 +888,7 @@ checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - checkUnnamed612(o.responses); + checkUnnamed629(o.responses); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.totalUpdatedCells, unittest.equals(42)); unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); @@ -744,14 +898,14 @@ buildCounterBatchUpdateValuesResponse--; } -buildUnnamed613() { +buildUnnamed630() { var o = new core.List<api.ConditionValue>(); o.add(buildConditionValue()); o.add(buildConditionValue()); return o; } -checkUnnamed613(core.List<api.ConditionValue> o) { +checkUnnamed630(core.List<api.ConditionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionValue(o[0]); checkConditionValue(o[1]); @@ -763,7 +917,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { o.type = "foo"; - o.values = buildUnnamed613(); + o.values = buildUnnamed630(); } buildCounterBooleanCondition--; return o; @@ -773,7 +927,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed613(o.values); + checkUnnamed630(o.values); } buildCounterBooleanCondition--; } @@ -847,14 +1001,14 @@ buildCounterBorders--; } -buildUnnamed614() { +buildUnnamed631() { var o = new core.List<api.TextFormatRun>(); o.add(buildTextFormatRun()); o.add(buildTextFormatRun()); return o; } -checkUnnamed614(core.List<api.TextFormatRun> o) { +checkUnnamed631(core.List<api.TextFormatRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTextFormatRun(o[0]); checkTextFormatRun(o[1]); @@ -872,7 +1026,7 @@ o.hyperlink = "foo"; o.note = "foo"; o.pivotTable = buildPivotTable(); - o.textFormatRuns = buildUnnamed614(); + o.textFormatRuns = buildUnnamed631(); o.userEnteredFormat = buildCellFormat(); o.userEnteredValue = buildExtendedValue(); } @@ -890,7 +1044,7 @@ unittest.expect(o.hyperlink, unittest.equals('foo')); unittest.expect(o.note, unittest.equals('foo')); checkPivotTable(o.pivotTable); - checkUnnamed614(o.textFormatRuns); + checkUnnamed631(o.textFormatRuns); checkCellFormat(o.userEnteredFormat); checkExtendedValue(o.userEnteredValue); } @@ -953,14 +1107,14 @@ buildCounterChartData--; } -buildUnnamed615() { +buildUnnamed632() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed615(core.List<api.GridRange> o) { +checkUnnamed632(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -971,7 +1125,7 @@ var o = new api.ChartSourceRange(); buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - o.sources = buildUnnamed615(); + o.sources = buildUnnamed632(); } buildCounterChartSourceRange--; return o; @@ -980,7 +1134,7 @@ checkChartSourceRange(api.ChartSourceRange o) { buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - checkUnnamed615(o.sources); + checkUnnamed632(o.sources); } buildCounterChartSourceRange--; } @@ -1029,6 +1183,44 @@ buildCounterClearBasicFilterRequest--; } +core.int buildCounterClearValuesRequest = 0; +buildClearValuesRequest() { + var o = new api.ClearValuesRequest(); + buildCounterClearValuesRequest++; + if (buildCounterClearValuesRequest < 3) { + } + buildCounterClearValuesRequest--; + return o; +} + +checkClearValuesRequest(api.ClearValuesRequest o) { + buildCounterClearValuesRequest++; + if (buildCounterClearValuesRequest < 3) { + } + buildCounterClearValuesRequest--; +} + +core.int buildCounterClearValuesResponse = 0; +buildClearValuesResponse() { + var o = new api.ClearValuesResponse(); + buildCounterClearValuesResponse++; + if (buildCounterClearValuesResponse < 3) { + o.clearedRange = "foo"; + o.spreadsheetId = "foo"; + } + buildCounterClearValuesResponse--; + return o; +} + +checkClearValuesResponse(api.ClearValuesResponse o) { + buildCounterClearValuesResponse++; + if (buildCounterClearValuesResponse < 3) { + unittest.expect(o.clearedRange, unittest.equals('foo')); + unittest.expect(o.spreadsheetId, unittest.equals('foo')); + } + buildCounterClearValuesResponse--; +} + core.int buildCounterColor = 0; buildColor() { var o = new api.Color(); @@ -1075,14 +1267,14 @@ buildCounterConditionValue--; } -buildUnnamed616() { +buildUnnamed633() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed616(core.List<api.GridRange> o) { +checkUnnamed633(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1095,7 +1287,7 @@ if (buildCounterConditionalFormatRule < 3) { o.booleanRule = buildBooleanRule(); o.gradientRule = buildGradientRule(); - o.ranges = buildUnnamed616(); + o.ranges = buildUnnamed633(); } buildCounterConditionalFormatRule--; return o; @@ -1106,7 +1298,7 @@ if (buildCounterConditionalFormatRule < 3) { checkBooleanRule(o.booleanRule); checkGradientRule(o.gradientRule); - checkUnnamed616(o.ranges); + checkUnnamed633(o.ranges); } buildCounterConditionalFormatRule--; } @@ -1203,6 +1395,25 @@ buildCounterDataValidationRule--; } +core.int buildCounterDeleteBandingRequest = 0; +buildDeleteBandingRequest() { + var o = new api.DeleteBandingRequest(); + buildCounterDeleteBandingRequest++; + if (buildCounterDeleteBandingRequest < 3) { + o.bandedRangeId = 42; + } + buildCounterDeleteBandingRequest--; + return o; +} + +checkDeleteBandingRequest(api.DeleteBandingRequest o) { + buildCounterDeleteBandingRequest++; + if (buildCounterDeleteBandingRequest < 3) { + unittest.expect(o.bandedRangeId, unittest.equals(42)); + } + buildCounterDeleteBandingRequest--; +} + core.int buildCounterDeleteConditionalFormatRuleRequest = 0; buildDeleteConditionalFormatRuleRequest() { var o = new api.DeleteConditionalFormatRuleRequest(); @@ -1487,27 +1698,27 @@ buildCounterDuplicateSheetResponse--; } -buildUnnamed617() { +buildUnnamed634() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed617(core.List<core.String> o) { +checkUnnamed634(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed618() { +buildUnnamed635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed618(core.List<core.String> o) { +checkUnnamed635(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1519,8 +1730,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { o.domainUsersCanEdit = true; - o.groups = buildUnnamed617(); - o.users = buildUnnamed618(); + o.groups = buildUnnamed634(); + o.users = buildUnnamed635(); } buildCounterEditors--; return o; @@ -1530,8 +1741,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { unittest.expect(o.domainUsersCanEdit, unittest.isTrue); - checkUnnamed617(o.groups); - checkUnnamed618(o.users); + checkUnnamed634(o.groups); + checkUnnamed635(o.users); } buildCounterEditors--; } @@ -1630,14 +1841,14 @@ buildCounterExtendedValue--; } -buildUnnamed619() { +buildUnnamed636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed619(core.List<core.String> o) { +checkUnnamed636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1649,7 +1860,7 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { o.condition = buildBooleanCondition(); - o.hiddenValues = buildUnnamed619(); + o.hiddenValues = buildUnnamed636(); } buildCounterFilterCriteria--; return o; @@ -1659,32 +1870,32 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { checkBooleanCondition(o.condition); - checkUnnamed619(o.hiddenValues); + checkUnnamed636(o.hiddenValues); } buildCounterFilterCriteria--; } -buildUnnamed620() { +buildUnnamed637() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed620(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed637(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed621() { +buildUnnamed638() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed621(core.List<api.SortSpec> o) { +checkUnnamed638(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -1695,11 +1906,11 @@ var o = new api.FilterView(); buildCounterFilterView++; if (buildCounterFilterView < 3) { - o.criteria = buildUnnamed620(); + o.criteria = buildUnnamed637(); o.filterViewId = 42; o.namedRangeId = "foo"; o.range = buildGridRange(); - o.sortSpecs = buildUnnamed621(); + o.sortSpecs = buildUnnamed638(); o.title = "foo"; } buildCounterFilterView--; @@ -1709,11 +1920,11 @@ checkFilterView(api.FilterView o) { buildCounterFilterView++; if (buildCounterFilterView < 3) { - checkUnnamed620(o.criteria); + checkUnnamed637(o.criteria); unittest.expect(o.filterViewId, unittest.equals(42)); unittest.expect(o.namedRangeId, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed621(o.sortSpecs); + checkUnnamed638(o.sortSpecs); unittest.expect(o.title, unittest.equals('foo')); } buildCounterFilterView--; @@ -1827,40 +2038,40 @@ buildCounterGridCoordinate--; } -buildUnnamed622() { +buildUnnamed639() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed622(core.List<api.DimensionProperties> o) { +checkUnnamed639(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); } -buildUnnamed623() { +buildUnnamed640() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed623(core.List<api.RowData> o) { +checkUnnamed640(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); } -buildUnnamed624() { +buildUnnamed641() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed624(core.List<api.DimensionProperties> o) { +checkUnnamed641(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); @@ -1871,9 +2082,9 @@ var o = new api.GridData(); buildCounterGridData++; if (buildCounterGridData < 3) { - o.columnMetadata = buildUnnamed622(); - o.rowData = buildUnnamed623(); - o.rowMetadata = buildUnnamed624(); + o.columnMetadata = buildUnnamed639(); + o.rowData = buildUnnamed640(); + o.rowMetadata = buildUnnamed641(); o.startColumn = 42; o.startRow = 42; } @@ -1884,9 +2095,9 @@ checkGridData(api.GridData o) { buildCounterGridData++; if (buildCounterGridData < 3) { - checkUnnamed622(o.columnMetadata); - checkUnnamed623(o.rowData); - checkUnnamed624(o.rowMetadata); + checkUnnamed639(o.columnMetadata); + checkUnnamed640(o.rowData); + checkUnnamed641(o.rowMetadata); unittest.expect(o.startColumn, unittest.equals(42)); unittest.expect(o.startRow, unittest.equals(42)); } @@ -2183,14 +2394,14 @@ buildCounterPieChartSpec--; } -buildUnnamed625() { +buildUnnamed642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed625(core.List<core.String> o) { +checkUnnamed642(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2201,7 +2412,7 @@ var o = new api.PivotFilterCriteria(); buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - o.visibleValues = buildUnnamed625(); + o.visibleValues = buildUnnamed642(); } buildCounterPivotFilterCriteria--; return o; @@ -2210,19 +2421,19 @@ checkPivotFilterCriteria(api.PivotFilterCriteria o) { buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - checkUnnamed625(o.visibleValues); + checkUnnamed642(o.visibleValues); } buildCounterPivotFilterCriteria--; } -buildUnnamed626() { +buildUnnamed643() { var o = new core.List<api.PivotGroupValueMetadata>(); o.add(buildPivotGroupValueMetadata()); o.add(buildPivotGroupValueMetadata()); return o; } -checkUnnamed626(core.List<api.PivotGroupValueMetadata> o) { +checkUnnamed643(core.List<api.PivotGroupValueMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroupValueMetadata(o[0]); checkPivotGroupValueMetadata(o[1]); @@ -2237,7 +2448,7 @@ o.sortOrder = "foo"; o.sourceColumnOffset = 42; o.valueBucket = buildPivotGroupSortValueBucket(); - o.valueMetadata = buildUnnamed626(); + o.valueMetadata = buildUnnamed643(); } buildCounterPivotGroup--; return o; @@ -2250,19 +2461,19 @@ unittest.expect(o.sortOrder, unittest.equals('foo')); unittest.expect(o.sourceColumnOffset, unittest.equals(42)); checkPivotGroupSortValueBucket(o.valueBucket); - checkUnnamed626(o.valueMetadata); + checkUnnamed643(o.valueMetadata); } buildCounterPivotGroup--; } -buildUnnamed627() { +buildUnnamed644() { var o = new core.List<api.ExtendedValue>(); o.add(buildExtendedValue()); o.add(buildExtendedValue()); return o; } -checkUnnamed627(core.List<api.ExtendedValue> o) { +checkUnnamed644(core.List<api.ExtendedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedValue(o[0]); checkExtendedValue(o[1]); @@ -2273,7 +2484,7 @@ var o = new api.PivotGroupSortValueBucket(); buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - o.buckets = buildUnnamed627(); + o.buckets = buildUnnamed644(); o.valuesIndex = 42; } buildCounterPivotGroupSortValueBucket--; @@ -2283,7 +2494,7 @@ checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - checkUnnamed627(o.buckets); + checkUnnamed644(o.buckets); unittest.expect(o.valuesIndex, unittest.equals(42)); } buildCounterPivotGroupSortValueBucket--; @@ -2310,53 +2521,53 @@ buildCounterPivotGroupValueMetadata--; } -buildUnnamed628() { +buildUnnamed645() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed628(core.List<api.PivotGroup> o) { +checkUnnamed645(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed629() { +buildUnnamed646() { var o = new core.Map<core.String, api.PivotFilterCriteria>(); o["x"] = buildPivotFilterCriteria(); o["y"] = buildPivotFilterCriteria(); return o; } -checkUnnamed629(core.Map<core.String, api.PivotFilterCriteria> o) { +checkUnnamed646(core.Map<core.String, api.PivotFilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotFilterCriteria(o["x"]); checkPivotFilterCriteria(o["y"]); } -buildUnnamed630() { +buildUnnamed647() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed630(core.List<api.PivotGroup> o) { +checkUnnamed647(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed631() { +buildUnnamed648() { var o = new core.List<api.PivotValue>(); o.add(buildPivotValue()); o.add(buildPivotValue()); return o; } -checkUnnamed631(core.List<api.PivotValue> o) { +checkUnnamed648(core.List<api.PivotValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValue(o[0]); checkPivotValue(o[1]); @@ -2367,12 +2578,12 @@ var o = new api.PivotTable(); buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - o.columns = buildUnnamed628(); - o.criteria = buildUnnamed629(); - o.rows = buildUnnamed630(); + o.columns = buildUnnamed645(); + o.criteria = buildUnnamed646(); + o.rows = buildUnnamed647(); o.source = buildGridRange(); o.valueLayout = "foo"; - o.values = buildUnnamed631(); + o.values = buildUnnamed648(); } buildCounterPivotTable--; return o; @@ -2381,12 +2592,12 @@ checkPivotTable(api.PivotTable o) { buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - checkUnnamed628(o.columns); - checkUnnamed629(o.criteria); - checkUnnamed630(o.rows); + checkUnnamed645(o.columns); + checkUnnamed646(o.criteria); + checkUnnamed647(o.rows); checkGridRange(o.source); unittest.expect(o.valueLayout, unittest.equals('foo')); - checkUnnamed631(o.values); + checkUnnamed648(o.values); } buildCounterPivotTable--; } @@ -2416,14 +2627,14 @@ buildCounterPivotValue--; } -buildUnnamed632() { +buildUnnamed649() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed632(core.List<api.GridRange> o) { +checkUnnamed649(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -2440,7 +2651,7 @@ o.protectedRangeId = 42; o.range = buildGridRange(); o.requestingUserCanEdit = true; - o.unprotectedRanges = buildUnnamed632(); + o.unprotectedRanges = buildUnnamed649(); o.warningOnly = true; } buildCounterProtectedRange--; @@ -2456,7 +2667,7 @@ unittest.expect(o.protectedRangeId, unittest.equals(42)); checkGridRange(o.range); unittest.expect(o.requestingUserCanEdit, unittest.isTrue); - checkUnnamed632(o.unprotectedRanges); + checkUnnamed649(o.unprotectedRanges); unittest.expect(o.warningOnly, unittest.isTrue); } buildCounterProtectedRange--; @@ -2490,6 +2701,7 @@ var o = new api.Request(); buildCounterRequest++; if (buildCounterRequest < 3) { + o.addBanding = buildAddBandingRequest(); o.addChart = buildAddChartRequest(); o.addConditionalFormatRule = buildAddConditionalFormatRuleRequest(); o.addFilterView = buildAddFilterViewRequest(); @@ -2503,6 +2715,7 @@ o.clearBasicFilter = buildClearBasicFilterRequest(); o.copyPaste = buildCopyPasteRequest(); o.cutPaste = buildCutPasteRequest(); + o.deleteBanding = buildDeleteBandingRequest(); o.deleteConditionalFormatRule = buildDeleteConditionalFormatRuleRequest(); o.deleteDimension = buildDeleteDimensionRequest(); o.deleteEmbeddedObject = buildDeleteEmbeddedObjectRequest(); @@ -2523,6 +2736,7 @@ o.sortRange = buildSortRangeRequest(); o.textToColumns = buildTextToColumnsRequest(); o.unmergeCells = buildUnmergeCellsRequest(); + o.updateBanding = buildUpdateBandingRequest(); o.updateBorders = buildUpdateBordersRequest(); o.updateCells = buildUpdateCellsRequest(); o.updateChartSpec = buildUpdateChartSpecRequest(); @@ -2542,6 +2756,7 @@ checkRequest(api.Request o) { buildCounterRequest++; if (buildCounterRequest < 3) { + checkAddBandingRequest(o.addBanding); checkAddChartRequest(o.addChart); checkAddConditionalFormatRuleRequest(o.addConditionalFormatRule); checkAddFilterViewRequest(o.addFilterView); @@ -2555,6 +2770,7 @@ checkClearBasicFilterRequest(o.clearBasicFilter); checkCopyPasteRequest(o.copyPaste); checkCutPasteRequest(o.cutPaste); + checkDeleteBandingRequest(o.deleteBanding); checkDeleteConditionalFormatRuleRequest(o.deleteConditionalFormatRule); checkDeleteDimensionRequest(o.deleteDimension); checkDeleteEmbeddedObjectRequest(o.deleteEmbeddedObject); @@ -2575,6 +2791,7 @@ checkSortRangeRequest(o.sortRange); checkTextToColumnsRequest(o.textToColumns); checkUnmergeCellsRequest(o.unmergeCells); + checkUpdateBandingRequest(o.updateBanding); checkUpdateBordersRequest(o.updateBorders); checkUpdateCellsRequest(o.updateCells); checkUpdateChartSpecRequest(o.updateChartSpec); @@ -2595,6 +2812,7 @@ var o = new api.Response(); buildCounterResponse++; if (buildCounterResponse < 3) { + o.addBanding = buildAddBandingResponse(); o.addChart = buildAddChartResponse(); o.addFilterView = buildAddFilterViewResponse(); o.addNamedRange = buildAddNamedRangeResponse(); @@ -2614,6 +2832,7 @@ checkResponse(api.Response o) { buildCounterResponse++; if (buildCounterResponse < 3) { + checkAddBandingResponse(o.addBanding); checkAddChartResponse(o.addChart); checkAddFilterViewResponse(o.addFilterView); checkAddNamedRangeResponse(o.addNamedRange); @@ -2629,14 +2848,14 @@ buildCounterResponse--; } -buildUnnamed633() { +buildUnnamed650() { var o = new core.List<api.CellData>(); o.add(buildCellData()); o.add(buildCellData()); return o; } -checkUnnamed633(core.List<api.CellData> o) { +checkUnnamed650(core.List<api.CellData> o) { unittest.expect(o, unittest.hasLength(2)); checkCellData(o[0]); checkCellData(o[1]); @@ -2647,7 +2866,7 @@ var o = new api.RowData(); buildCounterRowData++; if (buildCounterRowData < 3) { - o.values = buildUnnamed633(); + o.values = buildUnnamed650(); } buildCounterRowData--; return o; @@ -2656,7 +2875,7 @@ checkRowData(api.RowData o) { buildCounterRowData++; if (buildCounterRowData < 3) { - checkUnnamed633(o.values); + checkUnnamed650(o.values); } buildCounterRowData--; } @@ -2701,79 +2920,92 @@ buildCounterSetDataValidationRequest--; } -buildUnnamed634() { +buildUnnamed651() { + var o = new core.List<api.BandedRange>(); + o.add(buildBandedRange()); + o.add(buildBandedRange()); + return o; +} + +checkUnnamed651(core.List<api.BandedRange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBandedRange(o[0]); + checkBandedRange(o[1]); +} + +buildUnnamed652() { var o = new core.List<api.EmbeddedChart>(); o.add(buildEmbeddedChart()); o.add(buildEmbeddedChart()); return o; } -checkUnnamed634(core.List<api.EmbeddedChart> o) { +checkUnnamed652(core.List<api.EmbeddedChart> o) { unittest.expect(o, unittest.hasLength(2)); checkEmbeddedChart(o[0]); checkEmbeddedChart(o[1]); } -buildUnnamed635() { +buildUnnamed653() { var o = new core.List<api.ConditionalFormatRule>(); o.add(buildConditionalFormatRule()); o.add(buildConditionalFormatRule()); return o; } -checkUnnamed635(core.List<api.ConditionalFormatRule> o) { +checkUnnamed653(core.List<api.ConditionalFormatRule> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionalFormatRule(o[0]); checkConditionalFormatRule(o[1]); } -buildUnnamed636() { +buildUnnamed654() { var o = new core.List<api.GridData>(); o.add(buildGridData()); o.add(buildGridData()); return o; } -checkUnnamed636(core.List<api.GridData> o) { +checkUnnamed654(core.List<api.GridData> o) { unittest.expect(o, unittest.hasLength(2)); checkGridData(o[0]); checkGridData(o[1]); } -buildUnnamed637() { +buildUnnamed655() { var o = new core.List<api.FilterView>(); o.add(buildFilterView()); o.add(buildFilterView()); return o; } -checkUnnamed637(core.List<api.FilterView> o) { +checkUnnamed655(core.List<api.FilterView> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterView(o[0]); checkFilterView(o[1]); } -buildUnnamed638() { +buildUnnamed656() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed638(core.List<api.GridRange> o) { +checkUnnamed656(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); } -buildUnnamed639() { +buildUnnamed657() { var o = new core.List<api.ProtectedRange>(); o.add(buildProtectedRange()); o.add(buildProtectedRange()); return o; } -checkUnnamed639(core.List<api.ProtectedRange> o) { +checkUnnamed657(core.List<api.ProtectedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkProtectedRange(o[0]); checkProtectedRange(o[1]); @@ -2784,14 +3016,15 @@ var o = new api.Sheet(); buildCounterSheet++; if (buildCounterSheet < 3) { + o.bandedRanges = buildUnnamed651(); o.basicFilter = buildBasicFilter(); - o.charts = buildUnnamed634(); - o.conditionalFormats = buildUnnamed635(); - o.data = buildUnnamed636(); - o.filterViews = buildUnnamed637(); - o.merges = buildUnnamed638(); + o.charts = buildUnnamed652(); + o.conditionalFormats = buildUnnamed653(); + o.data = buildUnnamed654(); + o.filterViews = buildUnnamed655(); + o.merges = buildUnnamed656(); o.properties = buildSheetProperties(); - o.protectedRanges = buildUnnamed639(); + o.protectedRanges = buildUnnamed657(); } buildCounterSheet--; return o; @@ -2800,14 +3033,15 @@ checkSheet(api.Sheet o) { buildCounterSheet++; if (buildCounterSheet < 3) { + checkUnnamed651(o.bandedRanges); checkBasicFilter(o.basicFilter); - checkUnnamed634(o.charts); - checkUnnamed635(o.conditionalFormats); - checkUnnamed636(o.data); - checkUnnamed637(o.filterViews); - checkUnnamed638(o.merges); + checkUnnamed652(o.charts); + checkUnnamed653(o.conditionalFormats); + checkUnnamed654(o.data); + checkUnnamed655(o.filterViews); + checkUnnamed656(o.merges); checkSheetProperties(o.properties); - checkUnnamed639(o.protectedRanges); + checkUnnamed657(o.protectedRanges); } buildCounterSheet--; } @@ -2845,14 +3079,14 @@ buildCounterSheetProperties--; } -buildUnnamed640() { +buildUnnamed658() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed640(core.List<api.SortSpec> o) { +checkUnnamed658(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -2864,7 +3098,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { o.range = buildGridRange(); - o.sortSpecs = buildUnnamed640(); + o.sortSpecs = buildUnnamed658(); } buildCounterSortRangeRequest--; return o; @@ -2874,7 +3108,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { checkGridRange(o.range); - checkUnnamed640(o.sortSpecs); + checkUnnamed658(o.sortSpecs); } buildCounterSortRangeRequest--; } @@ -2923,27 +3157,27 @@ buildCounterSourceAndDestination--; } -buildUnnamed641() { +buildUnnamed659() { var o = new core.List<api.NamedRange>(); o.add(buildNamedRange()); o.add(buildNamedRange()); return o; } -checkUnnamed641(core.List<api.NamedRange> o) { +checkUnnamed659(core.List<api.NamedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedRange(o[0]); checkNamedRange(o[1]); } -buildUnnamed642() { +buildUnnamed660() { var o = new core.List<api.Sheet>(); o.add(buildSheet()); o.add(buildSheet()); return o; } -checkUnnamed642(core.List<api.Sheet> o) { +checkUnnamed660(core.List<api.Sheet> o) { unittest.expect(o, unittest.hasLength(2)); checkSheet(o[0]); checkSheet(o[1]); @@ -2954,9 +3188,9 @@ var o = new api.Spreadsheet(); buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - o.namedRanges = buildUnnamed641(); + o.namedRanges = buildUnnamed659(); o.properties = buildSpreadsheetProperties(); - o.sheets = buildUnnamed642(); + o.sheets = buildUnnamed660(); o.spreadsheetId = "foo"; } buildCounterSpreadsheet--; @@ -2966,9 +3200,9 @@ checkSpreadsheet(api.Spreadsheet o) { buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - checkUnnamed641(o.namedRanges); + checkUnnamed659(o.namedRanges); checkSpreadsheetProperties(o.properties); - checkUnnamed642(o.sheets); + checkUnnamed660(o.sheets); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterSpreadsheet--; @@ -3095,6 +3329,27 @@ buildCounterUnmergeCellsRequest--; } +core.int buildCounterUpdateBandingRequest = 0; +buildUpdateBandingRequest() { + var o = new api.UpdateBandingRequest(); + buildCounterUpdateBandingRequest++; + if (buildCounterUpdateBandingRequest < 3) { + o.bandedRange = buildBandedRange(); + o.fields = "foo"; + } + buildCounterUpdateBandingRequest--; + return o; +} + +checkUpdateBandingRequest(api.UpdateBandingRequest o) { + buildCounterUpdateBandingRequest++; + if (buildCounterUpdateBandingRequest < 3) { + checkBandedRange(o.bandedRange); + unittest.expect(o.fields, unittest.equals('foo')); + } + buildCounterUpdateBandingRequest--; +} + core.int buildCounterUpdateBordersRequest = 0; buildUpdateBordersRequest() { var o = new api.UpdateBordersRequest(); @@ -3126,14 +3381,14 @@ buildCounterUpdateBordersRequest--; } -buildUnnamed643() { +buildUnnamed661() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed643(core.List<api.RowData> o) { +checkUnnamed661(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -3146,7 +3401,7 @@ if (buildCounterUpdateCellsRequest < 3) { o.fields = "foo"; o.range = buildGridRange(); - o.rows = buildUnnamed643(); + o.rows = buildUnnamed661(); o.start = buildGridCoordinate(); } buildCounterUpdateCellsRequest--; @@ -3158,7 +3413,7 @@ if (buildCounterUpdateCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed643(o.rows); + checkUnnamed661(o.rows); checkGridCoordinate(o.start); } buildCounterUpdateCellsRequest--; @@ -3432,30 +3687,30 @@ buildCounterUpdateValuesResponse--; } -buildUnnamed644() { +buildUnnamed662() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed644(core.List<core.Object> o) { +checkUnnamed662(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed645() { +buildUnnamed663() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed644()); - o.add(buildUnnamed644()); + o.add(buildUnnamed662()); + o.add(buildUnnamed662()); return o; } -checkUnnamed645(core.List<core.List<core.Object>> o) { +checkUnnamed663(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed644(o[0]); - checkUnnamed644(o[1]); + checkUnnamed662(o[0]); + checkUnnamed662(o[1]); } core.int buildCounterValueRange = 0; @@ -3465,7 +3720,7 @@ if (buildCounterValueRange < 3) { o.majorDimension = "foo"; o.range = "foo"; - o.values = buildUnnamed645(); + o.values = buildUnnamed663(); } buildCounterValueRange--; return o; @@ -3476,32 +3731,32 @@ if (buildCounterValueRange < 3) { unittest.expect(o.majorDimension, unittest.equals('foo')); unittest.expect(o.range, unittest.equals('foo')); - checkUnnamed645(o.values); + checkUnnamed663(o.values); } buildCounterValueRange--; } -buildUnnamed646() { +buildUnnamed664() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed646(core.List<core.String> o) { +checkUnnamed664(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed647() { +buildUnnamed665() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed647(core.List<core.String> o) { +checkUnnamed665(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3509,6 +3764,24 @@ main() { + unittest.group("obj-schema-AddBandingRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddBandingRequest(); + var od = new api.AddBandingRequest.fromJson(o.toJson()); + checkAddBandingRequest(od); + }); + }); + + + unittest.group("obj-schema-AddBandingResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAddBandingResponse(); + var od = new api.AddBandingResponse.fromJson(o.toJson()); + checkAddBandingResponse(od); + }); + }); + + unittest.group("obj-schema-AddChartRequest", () { unittest.test("to-json--from-json", () { var o = buildAddChartRequest(); @@ -3653,6 +3926,24 @@ }); + unittest.group("obj-schema-BandedRange", () { + unittest.test("to-json--from-json", () { + var o = buildBandedRange(); + var od = new api.BandedRange.fromJson(o.toJson()); + checkBandedRange(od); + }); + }); + + + unittest.group("obj-schema-BandingProperties", () { + unittest.test("to-json--from-json", () { + var o = buildBandingProperties(); + var od = new api.BandingProperties.fromJson(o.toJson()); + checkBandingProperties(od); + }); + }); + + unittest.group("obj-schema-BasicChartAxis", () { unittest.test("to-json--from-json", () { var o = buildBasicChartAxis(); @@ -3698,6 +3989,24 @@ }); + unittest.group("obj-schema-BatchClearValuesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBatchClearValuesRequest(); + var od = new api.BatchClearValuesRequest.fromJson(o.toJson()); + checkBatchClearValuesRequest(od); + }); + }); + + + unittest.group("obj-schema-BatchClearValuesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBatchClearValuesResponse(); + var od = new api.BatchClearValuesResponse.fromJson(o.toJson()); + checkBatchClearValuesResponse(od); + }); + }); + + unittest.group("obj-schema-BatchGetValuesResponse", () { unittest.test("to-json--from-json", () { var o = buildBatchGetValuesResponse(); @@ -3833,6 +4142,24 @@ }); + unittest.group("obj-schema-ClearValuesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildClearValuesRequest(); + var od = new api.ClearValuesRequest.fromJson(o.toJson()); + checkClearValuesRequest(od); + }); + }); + + + unittest.group("obj-schema-ClearValuesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildClearValuesResponse(); + var od = new api.ClearValuesResponse.fromJson(o.toJson()); + checkClearValuesResponse(od); + }); + }); + + unittest.group("obj-schema-Color", () { unittest.test("to-json--from-json", () { var o = buildColor(); @@ -3896,6 +4223,15 @@ }); + unittest.group("obj-schema-DeleteBandingRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteBandingRequest(); + var od = new api.DeleteBandingRequest.fromJson(o.toJson()); + checkDeleteBandingRequest(od); + }); + }); + + unittest.group("obj-schema-DeleteConditionalFormatRuleRequest", () { unittest.test("to-json--from-json", () { var o = buildDeleteConditionalFormatRuleRequest(); @@ -4454,6 +4790,15 @@ }); + unittest.group("obj-schema-UpdateBandingRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateBandingRequest(); + var od = new api.UpdateBandingRequest.fromJson(o.toJson()); + checkUpdateBandingRequest(od); + }); + }); + + unittest.group("obj-schema-UpdateBordersRequest", () { unittest.test("to-json--from-json", () { var o = buildUpdateBordersRequest(); @@ -4697,7 +5042,7 @@ var mock = new HttpServerMock(); api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed646(); + var arg_ranges = buildUnnamed664(); var arg_includeGridData = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -4881,12 +5226,67 @@ }))); }); + unittest.test("method--batchClear", () { + + var mock = new HttpServerMock(); + api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; + var arg_request = buildBatchClearValuesRequest(); + var arg_spreadsheetId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.BatchClearValuesRequest.fromJson(json); + checkBatchClearValuesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("v4/spreadsheets/")); + pathOffset += 16; + index = path.indexOf("/values:batchClear", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_spreadsheetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/values:batchClear")); + pathOffset += 18; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildBatchClearValuesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.batchClear(arg_request, arg_spreadsheetId).then(unittest.expectAsync(((api.BatchClearValuesResponse response) { + checkBatchClearValuesResponse(response); + }))); + }); + unittest.test("method--batchGet", () { var mock = new HttpServerMock(); api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed647(); + var arg_ranges = buildUnnamed665(); var arg_valueRenderOption = "foo"; var arg_dateTimeRenderOption = "foo"; var arg_majorDimension = "foo"; @@ -4995,6 +5395,69 @@ }))); }); + unittest.test("method--clear", () { + + var mock = new HttpServerMock(); + api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; + var arg_request = buildClearValuesRequest(); + var arg_spreadsheetId = "foo"; + var arg_range = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ClearValuesRequest.fromJson(json); + checkClearValuesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("v4/spreadsheets/")); + pathOffset += 16; + index = path.indexOf("/values/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_spreadsheetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/values/")); + pathOffset += 8; + index = path.indexOf(":clear", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_range")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals(":clear")); + pathOffset += 6; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildClearValuesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.clear(arg_request, arg_spreadsheetId, arg_range).then(unittest.expectAsync(((api.ClearValuesResponse response) { + checkClearValuesResponse(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/storage/v1_test.dart b/generated/googleapis/test/storage/v1_test.dart index fa02d78..07610b1 100644 --- a/generated/googleapis/test/storage/v1_test.dart +++ b/generated/googleapis/test/storage/v1_test.dart
@@ -51,53 +51,53 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed956() { +buildUnnamed981() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed956(core.List<api.BucketAccessControl> o) { +checkUnnamed981(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); } -buildUnnamed957() { +buildUnnamed982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed957(core.List<core.String> o) { +checkUnnamed982(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed958() { +buildUnnamed983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed958(core.List<core.String> o) { +checkUnnamed983(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed959() { +buildUnnamed984() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed959(core.List<core.String> o) { +checkUnnamed984(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -109,9 +109,9 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { o.maxAgeSeconds = 42; - o.method = buildUnnamed957(); - o.origin = buildUnnamed958(); - o.responseHeader = buildUnnamed959(); + o.method = buildUnnamed982(); + o.origin = buildUnnamed983(); + o.responseHeader = buildUnnamed984(); } buildCounterBucketCors--; return o; @@ -121,63 +121,45 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { unittest.expect(o.maxAgeSeconds, unittest.equals(42)); - checkUnnamed957(o.method); - checkUnnamed958(o.origin); - checkUnnamed959(o.responseHeader); + checkUnnamed982(o.method); + checkUnnamed983(o.origin); + checkUnnamed984(o.responseHeader); } buildCounterBucketCors--; } -buildUnnamed960() { +buildUnnamed985() { var o = new core.List<api.BucketCors>(); o.add(buildBucketCors()); o.add(buildBucketCors()); return o; } -checkUnnamed960(core.List<api.BucketCors> o) { +checkUnnamed985(core.List<api.BucketCors> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketCors(o[0]); checkBucketCors(o[1]); } -buildUnnamed961() { +buildUnnamed986() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed961(core.List<api.ObjectAccessControl> o) { +checkUnnamed986(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); } -core.int buildCounterBucketEncryption = 0; -buildBucketEncryption() { - var o = new api.BucketEncryption(); - buildCounterBucketEncryption++; - if (buildCounterBucketEncryption < 3) { - o.defaultKmsKeyName = "foo"; - } - buildCounterBucketEncryption--; - return o; -} - -checkBucketEncryption(api.BucketEncryption o) { - buildCounterBucketEncryption++; - if (buildCounterBucketEncryption < 3) { - unittest.expect(o.defaultKmsKeyName, unittest.equals('foo')); - } - buildCounterBucketEncryption--; -} - core.int buildCounterBucketLifecycleRuleAction = 0; buildBucketLifecycleRuleAction() { var o = new api.BucketLifecycleRuleAction(); buildCounterBucketLifecycleRuleAction++; if (buildCounterBucketLifecycleRuleAction < 3) { + o.storageClass = "foo"; o.type = "foo"; } buildCounterBucketLifecycleRuleAction--; @@ -187,11 +169,25 @@ checkBucketLifecycleRuleAction(api.BucketLifecycleRuleAction o) { buildCounterBucketLifecycleRuleAction++; if (buildCounterBucketLifecycleRuleAction < 3) { + unittest.expect(o.storageClass, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterBucketLifecycleRuleAction--; } +buildUnnamed987() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed987(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterBucketLifecycleRuleCondition = 0; buildBucketLifecycleRuleCondition() { var o = new api.BucketLifecycleRuleCondition(); @@ -200,6 +196,7 @@ o.age = 42; o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); o.isLive = true; + o.matchesStorageClass = buildUnnamed987(); o.numNewerVersions = 42; } buildCounterBucketLifecycleRuleCondition--; @@ -212,6 +209,7 @@ unittest.expect(o.age, unittest.equals(42)); unittest.expect(o.createdBefore, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.isLive, unittest.isTrue); + checkUnnamed987(o.matchesStorageClass); unittest.expect(o.numNewerVersions, unittest.equals(42)); } buildCounterBucketLifecycleRuleCondition--; @@ -238,14 +236,14 @@ buildCounterBucketLifecycleRule--; } -buildUnnamed962() { +buildUnnamed988() { var o = new core.List<api.BucketLifecycleRule>(); o.add(buildBucketLifecycleRule()); o.add(buildBucketLifecycleRule()); return o; } -checkUnnamed962(core.List<api.BucketLifecycleRule> o) { +checkUnnamed988(core.List<api.BucketLifecycleRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketLifecycleRule(o[0]); checkBucketLifecycleRule(o[1]); @@ -256,7 +254,7 @@ var o = new api.BucketLifecycle(); buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - o.rule = buildUnnamed962(); + o.rule = buildUnnamed988(); } buildCounterBucketLifecycle--; return o; @@ -265,7 +263,7 @@ checkBucketLifecycle(api.BucketLifecycle o) { buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - checkUnnamed962(o.rule); + checkUnnamed988(o.rule); } buildCounterBucketLifecycle--; } @@ -357,10 +355,9 @@ var o = new api.Bucket(); buildCounterBucket++; if (buildCounterBucket < 3) { - o.acl = buildUnnamed956(); - o.cors = buildUnnamed960(); - o.defaultObjectAcl = buildUnnamed961(); - o.encryption = buildBucketEncryption(); + o.acl = buildUnnamed981(); + o.cors = buildUnnamed985(); + o.defaultObjectAcl = buildUnnamed986(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; @@ -385,10 +382,9 @@ checkBucket(api.Bucket o) { buildCounterBucket++; if (buildCounterBucket < 3) { - checkUnnamed956(o.acl); - checkUnnamed960(o.cors); - checkUnnamed961(o.defaultObjectAcl); - checkBucketEncryption(o.encryption); + checkUnnamed981(o.acl); + checkUnnamed985(o.cors); + checkUnnamed986(o.defaultObjectAcl); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -469,14 +465,14 @@ buildCounterBucketAccessControl--; } -buildUnnamed963() { +buildUnnamed989() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed963(core.List<api.BucketAccessControl> o) { +checkUnnamed989(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); @@ -487,7 +483,7 @@ var o = new api.BucketAccessControls(); buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - o.items = buildUnnamed963(); + o.items = buildUnnamed989(); o.kind = "foo"; } buildCounterBucketAccessControls--; @@ -497,20 +493,20 @@ checkBucketAccessControls(api.BucketAccessControls o) { buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - checkUnnamed963(o.items); + checkUnnamed989(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBucketAccessControls--; } -buildUnnamed964() { +buildUnnamed990() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed964(core.List<api.Bucket> o) { +checkUnnamed990(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -521,7 +517,7 @@ var o = new api.Buckets(); buildCounterBuckets++; if (buildCounterBuckets < 3) { - o.items = buildUnnamed964(); + o.items = buildUnnamed990(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -532,21 +528,21 @@ checkBuckets(api.Buckets o) { buildCounterBuckets++; if (buildCounterBuckets < 3) { - checkUnnamed964(o.items); + checkUnnamed990(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterBuckets--; } -buildUnnamed965() { +buildUnnamed991() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed965(core.Map<core.String, core.String> o) { +checkUnnamed991(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -561,7 +557,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed965(); + o.params = buildUnnamed991(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -579,7 +575,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed965(o.params); + checkUnnamed991(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -631,14 +627,14 @@ buildCounterComposeRequestSourceObjects--; } -buildUnnamed966() { +buildUnnamed992() { var o = new core.List<api.ComposeRequestSourceObjects>(); o.add(buildComposeRequestSourceObjects()); o.add(buildComposeRequestSourceObjects()); return o; } -checkUnnamed966(core.List<api.ComposeRequestSourceObjects> o) { +checkUnnamed992(core.List<api.ComposeRequestSourceObjects> o) { unittest.expect(o, unittest.hasLength(2)); checkComposeRequestSourceObjects(o[0]); checkComposeRequestSourceObjects(o[1]); @@ -651,7 +647,7 @@ if (buildCounterComposeRequest < 3) { o.destination = buildObject(); o.kind = "foo"; - o.sourceObjects = buildUnnamed966(); + o.sourceObjects = buildUnnamed992(); } buildCounterComposeRequest--; return o; @@ -662,19 +658,19 @@ if (buildCounterComposeRequest < 3) { checkObject(o.destination); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed966(o.sourceObjects); + checkUnnamed992(o.sourceObjects); } buildCounterComposeRequest--; } -buildUnnamed967() { +buildUnnamed993() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed967(core.List<api.ObjectAccessControl> o) { +checkUnnamed993(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -701,14 +697,14 @@ buildCounterObjectCustomerEncryption--; } -buildUnnamed968() { +buildUnnamed994() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed968(core.Map<core.String, core.String> o) { +checkUnnamed994(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -740,7 +736,7 @@ var o = new api.Object(); buildCounterObject++; if (buildCounterObject < 3) { - o.acl = buildUnnamed967(); + o.acl = buildUnnamed993(); o.bucket = "foo"; o.cacheControl = "foo"; o.componentCount = 42; @@ -754,10 +750,9 @@ o.generation = "foo"; o.id = "foo"; o.kind = "foo"; - o.kmsKeyName = "foo"; o.md5Hash = "foo"; o.mediaLink = "foo"; - o.metadata = buildUnnamed968(); + o.metadata = buildUnnamed994(); o.metageneration = "foo"; o.name = "foo"; o.owner = buildObjectOwner(); @@ -775,7 +770,7 @@ checkObject(api.Object o) { buildCounterObject++; if (buildCounterObject < 3) { - checkUnnamed967(o.acl); + checkUnnamed993(o.acl); unittest.expect(o.bucket, unittest.equals('foo')); unittest.expect(o.cacheControl, unittest.equals('foo')); unittest.expect(o.componentCount, unittest.equals(42)); @@ -789,10 +784,9 @@ unittest.expect(o.generation, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.kmsKeyName, unittest.equals('foo')); unittest.expect(o.md5Hash, unittest.equals('foo')); unittest.expect(o.mediaLink, unittest.equals('foo')); - checkUnnamed968(o.metadata); + checkUnnamed994(o.metadata); unittest.expect(o.metageneration, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkObjectOwner(o.owner); @@ -870,17 +864,17 @@ buildCounterObjectAccessControl--; } -buildUnnamed969() { - var o = new core.List<core.Object>(); - o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); - o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); +buildUnnamed995() { + var o = new core.List<api.ObjectAccessControl>(); + o.add(buildObjectAccessControl()); + o.add(buildObjectAccessControl()); return o; } -checkUnnamed969(core.List<core.Object> o) { +checkUnnamed995(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); - var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); + checkObjectAccessControl(o[0]); + checkObjectAccessControl(o[1]); } core.int buildCounterObjectAccessControls = 0; @@ -888,7 +882,7 @@ var o = new api.ObjectAccessControls(); buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - o.items = buildUnnamed969(); + o.items = buildUnnamed995(); o.kind = "foo"; } buildCounterObjectAccessControls--; @@ -898,33 +892,33 @@ checkObjectAccessControls(api.ObjectAccessControls o) { buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - checkUnnamed969(o.items); + checkUnnamed995(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterObjectAccessControls--; } -buildUnnamed970() { +buildUnnamed996() { var o = new core.List<api.Object>(); o.add(buildObject()); o.add(buildObject()); return o; } -checkUnnamed970(core.List<api.Object> o) { +checkUnnamed996(core.List<api.Object> o) { unittest.expect(o, unittest.hasLength(2)); checkObject(o[0]); checkObject(o[1]); } -buildUnnamed971() { +buildUnnamed997() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed971(core.List<core.String> o) { +checkUnnamed997(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -935,10 +929,10 @@ var o = new api.Objects(); buildCounterObjects++; if (buildCounterObjects < 3) { - o.items = buildUnnamed970(); + o.items = buildUnnamed996(); o.kind = "foo"; o.nextPageToken = "foo"; - o.prefixes = buildUnnamed971(); + o.prefixes = buildUnnamed997(); } buildCounterObjects--; return o; @@ -947,10 +941,10 @@ checkObjects(api.Objects o) { buildCounterObjects++; if (buildCounterObjects < 3) { - checkUnnamed970(o.items); + checkUnnamed996(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed971(o.prefixes); + checkUnnamed997(o.prefixes); } buildCounterObjects--; } @@ -995,15 +989,6 @@ }); - unittest.group("obj-schema-BucketEncryption", () { - unittest.test("to-json--from-json", () { - var o = buildBucketEncryption(); - var od = new api.BucketEncryption.fromJson(o.toJson()); - checkBucketEncryption(od); - }); - }); - - unittest.group("obj-schema-BucketLifecycleRuleAction", () { unittest.test("to-json--from-json", () { var o = buildBucketLifecycleRuleAction(); @@ -2749,7 +2734,6 @@ var arg_destinationPredefinedAcl = "foo"; var arg_ifGenerationMatch = "foo"; var arg_ifMetagenerationMatch = "foo"; - var arg_kmsKeyName = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.ComposeRequest.fromJson(json); checkComposeRequest(obj); @@ -2798,7 +2782,6 @@ unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equals(arg_destinationPredefinedAcl)); unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg_ifGenerationMatch)); unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals(arg_ifMetagenerationMatch)); - unittest.expect(queryMap["kmsKeyName"].first, unittest.equals(arg_kmsKeyName)); var h = { @@ -2807,7 +2790,7 @@ var resp = convert.JSON.encode(buildObject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.compose(arg_request, arg_destinationBucket, arg_destinationObject, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, kmsKeyName: arg_kmsKeyName).then(unittest.expectAsync(((api.Object response) { + res.compose(arg_request, arg_destinationBucket, arg_destinationObject, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch).then(unittest.expectAsync(((api.Object response) { checkObject(response); }))); }); @@ -3062,7 +3045,6 @@ var arg_ifGenerationNotMatch = "foo"; var arg_ifMetagenerationMatch = "foo"; var arg_ifMetagenerationNotMatch = "foo"; - var arg_kmsKeyName = "foo"; var arg_name = "foo"; var arg_predefinedAcl = "foo"; var arg_projection = "foo"; @@ -3109,7 +3091,6 @@ unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals(arg_ifGenerationNotMatch)); unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals(arg_ifMetagenerationMatch)); unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equals(arg_ifMetagenerationNotMatch)); - unittest.expect(queryMap["kmsKeyName"].first, unittest.equals(arg_kmsKeyName)); unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_predefinedAcl)); unittest.expect(queryMap["projection"].first, unittest.equals(arg_projection)); @@ -3121,7 +3102,7 @@ var resp = convert.JSON.encode(buildObject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_bucket, contentEncoding: arg_contentEncoding, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, kmsKeyName: arg_kmsKeyName, name: arg_name, predefinedAcl: arg_predefinedAcl, projection: arg_projection).then(unittest.expectAsync(((api.Object response) { + res.insert(arg_request, arg_bucket, contentEncoding: arg_contentEncoding, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, name: arg_name, predefinedAcl: arg_predefinedAcl, projection: arg_projection).then(unittest.expectAsync(((api.Object response) { checkObject(response); }))); }); @@ -3275,7 +3256,6 @@ var arg_sourceObject = "foo"; var arg_destinationBucket = "foo"; var arg_destinationObject = "foo"; - var arg_destinationKmsKeyName = "foo"; var arg_destinationPredefinedAcl = "foo"; var arg_ifGenerationMatch = "foo"; var arg_ifGenerationNotMatch = "foo"; @@ -3344,7 +3324,6 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["destinationKmsKeyName"].first, unittest.equals(arg_destinationKmsKeyName)); unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equals(arg_destinationPredefinedAcl)); unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg_ifGenerationMatch)); unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals(arg_ifGenerationNotMatch)); @@ -3366,7 +3345,7 @@ var resp = convert.JSON.encode(buildRewriteResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rewrite(arg_request, arg_sourceBucket, arg_sourceObject, arg_destinationBucket, arg_destinationObject, destinationKmsKeyName: arg_destinationKmsKeyName, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, ifSourceGenerationMatch: arg_ifSourceGenerationMatch, ifSourceGenerationNotMatch: arg_ifSourceGenerationNotMatch, ifSourceMetagenerationMatch: arg_ifSourceMetagenerationMatch, ifSourceMetagenerationNotMatch: arg_ifSourceMetagenerationNotMatch, maxBytesRewrittenPerCall: arg_maxBytesRewrittenPerCall, projection: arg_projection, rewriteToken: arg_rewriteToken, sourceGeneration: arg_sourceGeneration).then(unittest.expectAsync(((api.RewriteResponse response) { + res.rewrite(arg_request, arg_sourceBucket, arg_sourceObject, arg_destinationBucket, arg_destinationObject, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, ifSourceGenerationMatch: arg_ifSourceGenerationMatch, ifSourceGenerationNotMatch: arg_ifSourceGenerationNotMatch, ifSourceMetagenerationMatch: arg_ifSourceMetagenerationMatch, ifSourceMetagenerationNotMatch: arg_ifSourceMetagenerationNotMatch, maxBytesRewrittenPerCall: arg_maxBytesRewrittenPerCall, projection: arg_projection, rewriteToken: arg_rewriteToken, sourceGeneration: arg_sourceGeneration).then(unittest.expectAsync(((api.RewriteResponse response) { checkRewriteResponse(response); }))); });
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart index fb1cfde..e58f24d 100644 --- a/generated/googleapis/test/storagetransfer/v1_test.dart +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
@@ -133,14 +133,14 @@ buildCounterEmpty--; } -buildUnnamed1401() { +buildUnnamed1411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1401(core.List<core.String> o) { +checkUnnamed1411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ var o = new api.ErrorLogEntry(); buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - o.errorDetails = buildUnnamed1401(); + o.errorDetails = buildUnnamed1411(); o.url = "foo"; } buildCounterErrorLogEntry--; @@ -161,20 +161,20 @@ checkErrorLogEntry(api.ErrorLogEntry o) { buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - checkUnnamed1401(o.errorDetails); + checkUnnamed1411(o.errorDetails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterErrorLogEntry--; } -buildUnnamed1402() { +buildUnnamed1412() { var o = new core.List<api.ErrorLogEntry>(); o.add(buildErrorLogEntry()); o.add(buildErrorLogEntry()); return o; } -checkUnnamed1402(core.List<api.ErrorLogEntry> o) { +checkUnnamed1412(core.List<api.ErrorLogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorLogEntry(o[0]); checkErrorLogEntry(o[1]); @@ -187,7 +187,7 @@ if (buildCounterErrorSummary < 3) { o.errorCode = "foo"; o.errorCount = "foo"; - o.errorLogEntries = buildUnnamed1402(); + o.errorLogEntries = buildUnnamed1412(); } buildCounterErrorSummary--; return o; @@ -198,7 +198,7 @@ if (buildCounterErrorSummary < 3) { unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.errorCount, unittest.equals('foo')); - checkUnnamed1402(o.errorLogEntries); + checkUnnamed1412(o.errorLogEntries); } buildCounterErrorSummary--; } @@ -260,14 +260,14 @@ buildCounterHttpData--; } -buildUnnamed1403() { +buildUnnamed1413() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1403(core.List<api.Operation> o) { +checkUnnamed1413(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -279,7 +279,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1403(); + o.operations = buildUnnamed1413(); } buildCounterListOperationsResponse--; return o; @@ -289,19 +289,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1403(o.operations); + checkUnnamed1413(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1404() { +buildUnnamed1414() { var o = new core.List<api.TransferJob>(); o.add(buildTransferJob()); o.add(buildTransferJob()); return o; } -checkUnnamed1404(core.List<api.TransferJob> o) { +checkUnnamed1414(core.List<api.TransferJob> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferJob(o[0]); checkTransferJob(o[1]); @@ -313,7 +313,7 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { o.nextPageToken = "foo"; - o.transferJobs = buildUnnamed1404(); + o.transferJobs = buildUnnamed1414(); } buildCounterListTransferJobsResponse--; return o; @@ -323,32 +323,32 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1404(o.transferJobs); + checkUnnamed1414(o.transferJobs); } buildCounterListTransferJobsResponse--; } -buildUnnamed1405() { +buildUnnamed1415() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1405(core.List<core.String> o) { +checkUnnamed1415(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1406() { +buildUnnamed1416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1406(core.List<core.String> o) { +checkUnnamed1416(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -359,8 +359,8 @@ var o = new api.ObjectConditions(); buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - o.excludePrefixes = buildUnnamed1405(); - o.includePrefixes = buildUnnamed1406(); + o.excludePrefixes = buildUnnamed1415(); + o.includePrefixes = buildUnnamed1416(); o.maxTimeElapsedSinceLastModification = "foo"; o.minTimeElapsedSinceLastModification = "foo"; } @@ -371,35 +371,35 @@ checkObjectConditions(api.ObjectConditions o) { buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - checkUnnamed1405(o.excludePrefixes); - checkUnnamed1406(o.includePrefixes); + checkUnnamed1415(o.excludePrefixes); + checkUnnamed1416(o.includePrefixes); unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo')); } buildCounterObjectConditions--; } -buildUnnamed1407() { +buildUnnamed1417() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1407(core.Map<core.String, core.Object> o) { +checkUnnamed1417(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1408() { +buildUnnamed1418() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1408(core.Map<core.String, core.Object> o) { +checkUnnamed1418(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -412,9 +412,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1407(); + o.metadata = buildUnnamed1417(); o.name = "foo"; - o.response = buildUnnamed1408(); + o.response = buildUnnamed1418(); } buildCounterOperation--; return o; @@ -425,9 +425,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1407(o.metadata); + checkUnnamed1417(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1408(o.response); + checkUnnamed1418(o.response); } buildCounterOperation--; } @@ -489,30 +489,30 @@ buildCounterSchedule--; } -buildUnnamed1409() { +buildUnnamed1419() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1409(core.Map<core.String, core.Object> o) { +checkUnnamed1419(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1410() { +buildUnnamed1420() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1409()); - o.add(buildUnnamed1409()); + o.add(buildUnnamed1419()); + o.add(buildUnnamed1419()); return o; } -checkUnnamed1410(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1420(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1409(o[0]); - checkUnnamed1409(o[1]); + checkUnnamed1419(o[0]); + checkUnnamed1419(o[1]); } core.int buildCounterStatus = 0; @@ -521,7 +521,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1410(); + o.details = buildUnnamed1420(); o.message = "foo"; } buildCounterStatus--; @@ -532,7 +532,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1410(o.details); + checkUnnamed1420(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -647,14 +647,14 @@ buildCounterTransferJob--; } -buildUnnamed1411() { +buildUnnamed1421() { var o = new core.List<api.ErrorSummary>(); o.add(buildErrorSummary()); o.add(buildErrorSummary()); return o; } -checkUnnamed1411(core.List<api.ErrorSummary> o) { +checkUnnamed1421(core.List<api.ErrorSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorSummary(o[0]); checkErrorSummary(o[1]); @@ -667,7 +667,7 @@ if (buildCounterTransferOperation < 3) { o.counters = buildTransferCounters(); o.endTime = "foo"; - o.errorBreakdowns = buildUnnamed1411(); + o.errorBreakdowns = buildUnnamed1421(); o.name = "foo"; o.projectId = "foo"; o.startTime = "foo"; @@ -684,7 +684,7 @@ if (buildCounterTransferOperation < 3) { checkTransferCounters(o.counters); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1411(o.errorBreakdowns); + checkUnnamed1421(o.errorBreakdowns); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo'));
diff --git a/generated/googleapis/test/surveys/v2_test.dart b/generated/googleapis/test/surveys/v2_test.dart new file mode 100644 index 0000000..3f1b29c --- /dev/null +++ b/generated/googleapis/test/surveys/v2_test.dart
@@ -0,0 +1,1459 @@ +library googleapis.surveys.v2.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:unittest/unittest.dart' as unittest; + +import 'package:googleapis/surveys/v2.dart' as api; + +class HttpServerMock extends http.BaseClient { + core.Function _callback; + core.bool _expectJson; + + void register(core.Function callback, core.bool expectJson) { + _callback = callback; + _expectJson = expectJson; + } + + async.Future<http.StreamedResponse> send(http.BaseRequest request) { + if (_expectJson) { + return request.finalize() + .transform(convert.UTF8.decoder) + .join('') + .then((core.String jsonString) { + if (jsonString.isEmpty) { + return _callback(request, null); + } else { + return _callback(request, convert.JSON.decode(jsonString)); + } + }); + } else { + var stream = request.finalize(); + if (stream == null) { + return _callback(request, []); + } else { + return stream.toBytes().then((data) { + return _callback(request, data); + }); + } + } + } +} + +http.StreamedResponse stringResponse( + core.int status, core.Map headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +buildUnnamed2202() { + var o = new core.List<api.FieldMask>(); + o.add(buildFieldMask()); + o.add(buildFieldMask()); + return o; +} + +checkUnnamed2202(core.List<api.FieldMask> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFieldMask(o[0]); + checkFieldMask(o[1]); +} + +core.int buildCounterFieldMask = 0; +buildFieldMask() { + var o = new api.FieldMask(); + buildCounterFieldMask++; + if (buildCounterFieldMask < 3) { + o.fields = buildUnnamed2202(); + o.id = 42; + } + buildCounterFieldMask--; + return o; +} + +checkFieldMask(api.FieldMask o) { + buildCounterFieldMask++; + if (buildCounterFieldMask < 3) { + checkUnnamed2202(o.fields); + unittest.expect(o.id, unittest.equals(42)); + } + buildCounterFieldMask--; +} + +buildUnnamed2203() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2203(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterMobileAppPanel = 0; +buildMobileAppPanel() { + var o = new api.MobileAppPanel(); + buildCounterMobileAppPanel++; + if (buildCounterMobileAppPanel < 3) { + o.country = "foo"; + o.isPublicPanel = true; + o.language = "foo"; + o.mobileAppPanelId = "foo"; + o.name = "foo"; + o.owners = buildUnnamed2203(); + } + buildCounterMobileAppPanel--; + return o; +} + +checkMobileAppPanel(api.MobileAppPanel o) { + buildCounterMobileAppPanel++; + if (buildCounterMobileAppPanel < 3) { + unittest.expect(o.country, unittest.equals('foo')); + unittest.expect(o.isPublicPanel, unittest.isTrue); + unittest.expect(o.language, unittest.equals('foo')); + unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed2203(o.owners); + } + buildCounterMobileAppPanel--; +} + +buildUnnamed2204() { + var o = new core.List<api.MobileAppPanel>(); + o.add(buildMobileAppPanel()); + o.add(buildMobileAppPanel()); + return o; +} + +checkUnnamed2204(core.List<api.MobileAppPanel> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMobileAppPanel(o[0]); + checkMobileAppPanel(o[1]); +} + +core.int buildCounterMobileAppPanelsListResponse = 0; +buildMobileAppPanelsListResponse() { + var o = new api.MobileAppPanelsListResponse(); + buildCounterMobileAppPanelsListResponse++; + if (buildCounterMobileAppPanelsListResponse < 3) { + o.pageInfo = buildPageInfo(); + o.requestId = "foo"; + o.resources = buildUnnamed2204(); + o.tokenPagination = buildTokenPagination(); + } + buildCounterMobileAppPanelsListResponse--; + return o; +} + +checkMobileAppPanelsListResponse(api.MobileAppPanelsListResponse o) { + buildCounterMobileAppPanelsListResponse++; + if (buildCounterMobileAppPanelsListResponse < 3) { + checkPageInfo(o.pageInfo); + unittest.expect(o.requestId, unittest.equals('foo')); + checkUnnamed2204(o.resources); + checkTokenPagination(o.tokenPagination); + } + buildCounterMobileAppPanelsListResponse--; +} + +core.int buildCounterPageInfo = 0; +buildPageInfo() { + var o = new api.PageInfo(); + buildCounterPageInfo++; + if (buildCounterPageInfo < 3) { + o.resultPerPage = 42; + o.startIndex = 42; + o.totalResults = 42; + } + buildCounterPageInfo--; + return o; +} + +checkPageInfo(api.PageInfo o) { + buildCounterPageInfo++; + if (buildCounterPageInfo < 3) { + unittest.expect(o.resultPerPage, unittest.equals(42)); + unittest.expect(o.startIndex, unittest.equals(42)); + unittest.expect(o.totalResults, unittest.equals(42)); + } + buildCounterPageInfo--; +} + +core.int buildCounterResultsGetRequest = 0; +buildResultsGetRequest() { + var o = new api.ResultsGetRequest(); + buildCounterResultsGetRequest++; + if (buildCounterResultsGetRequest < 3) { + o.resultMask = buildResultsMask(); + } + buildCounterResultsGetRequest--; + return o; +} + +checkResultsGetRequest(api.ResultsGetRequest o) { + buildCounterResultsGetRequest++; + if (buildCounterResultsGetRequest < 3) { + checkResultsMask(o.resultMask); + } + buildCounterResultsGetRequest--; +} + +buildUnnamed2205() { + var o = new core.List<api.FieldMask>(); + o.add(buildFieldMask()); + o.add(buildFieldMask()); + return o; +} + +checkUnnamed2205(core.List<api.FieldMask> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFieldMask(o[0]); + checkFieldMask(o[1]); +} + +core.int buildCounterResultsMask = 0; +buildResultsMask() { + var o = new api.ResultsMask(); + buildCounterResultsMask++; + if (buildCounterResultsMask < 3) { + o.fields = buildUnnamed2205(); + o.projection = "foo"; + } + buildCounterResultsMask--; + return o; +} + +checkResultsMask(api.ResultsMask o) { + buildCounterResultsMask++; + if (buildCounterResultsMask < 3) { + checkUnnamed2205(o.fields); + unittest.expect(o.projection, unittest.equals('foo')); + } + buildCounterResultsMask--; +} + +buildUnnamed2206() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2206(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2207() { + var o = new core.List<api.SurveyQuestion>(); + o.add(buildSurveyQuestion()); + o.add(buildSurveyQuestion()); + return o; +} + +checkUnnamed2207(core.List<api.SurveyQuestion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSurveyQuestion(o[0]); + checkSurveyQuestion(o[1]); +} + +core.int buildCounterSurvey = 0; +buildSurvey() { + var o = new api.Survey(); + buildCounterSurvey++; + if (buildCounterSurvey < 3) { + o.audience = buildSurveyAudience(); + o.cost = buildSurveyCost(); + o.customerData = "foo"; + o.description = "foo"; + o.owners = buildUnnamed2206(); + o.questions = buildUnnamed2207(); + o.rejectionReason = buildSurveyRejection(); + o.state = "foo"; + o.surveyUrlId = "foo"; + o.title = "foo"; + o.wantedResponseCount = 42; + } + buildCounterSurvey--; + return o; +} + +checkSurvey(api.Survey o) { + buildCounterSurvey++; + if (buildCounterSurvey < 3) { + checkSurveyAudience(o.audience); + checkSurveyCost(o.cost); + unittest.expect(o.customerData, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed2206(o.owners); + checkUnnamed2207(o.questions); + checkSurveyRejection(o.rejectionReason); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.surveyUrlId, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.wantedResponseCount, unittest.equals(42)); + } + buildCounterSurvey--; +} + +buildUnnamed2208() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2208(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2209() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2209(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterSurveyAudience = 0; +buildSurveyAudience() { + var o = new api.SurveyAudience(); + buildCounterSurveyAudience++; + if (buildCounterSurveyAudience < 3) { + o.ages = buildUnnamed2208(); + o.country = "foo"; + o.countrySubdivision = "foo"; + o.gender = "foo"; + o.languages = buildUnnamed2209(); + o.mobileAppPanelId = "foo"; + o.populationSource = "foo"; + } + buildCounterSurveyAudience--; + return o; +} + +checkSurveyAudience(api.SurveyAudience o) { + buildCounterSurveyAudience++; + if (buildCounterSurveyAudience < 3) { + checkUnnamed2208(o.ages); + unittest.expect(o.country, unittest.equals('foo')); + unittest.expect(o.countrySubdivision, unittest.equals('foo')); + unittest.expect(o.gender, unittest.equals('foo')); + checkUnnamed2209(o.languages); + unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); + unittest.expect(o.populationSource, unittest.equals('foo')); + } + buildCounterSurveyAudience--; +} + +core.int buildCounterSurveyCost = 0; +buildSurveyCost() { + var o = new api.SurveyCost(); + buildCounterSurveyCost++; + if (buildCounterSurveyCost < 3) { + o.costPerResponseNanos = "foo"; + o.currencyCode = "foo"; + o.maxCostPerResponseNanos = "foo"; + o.nanos = "foo"; + } + buildCounterSurveyCost--; + return o; +} + +checkSurveyCost(api.SurveyCost o) { + buildCounterSurveyCost++; + if (buildCounterSurveyCost < 3) { + unittest.expect(o.costPerResponseNanos, unittest.equals('foo')); + unittest.expect(o.currencyCode, unittest.equals('foo')); + unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo')); + unittest.expect(o.nanos, unittest.equals('foo')); + } + buildCounterSurveyCost--; +} + +buildUnnamed2210() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2210(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2211() { + var o = new core.List<api.SurveyQuestionImage>(); + o.add(buildSurveyQuestionImage()); + o.add(buildSurveyQuestionImage()); + return o; +} + +checkUnnamed2211(core.List<api.SurveyQuestionImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSurveyQuestionImage(o[0]); + checkSurveyQuestionImage(o[1]); +} + +buildUnnamed2212() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2212(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2213() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2213(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterSurveyQuestion = 0; +buildSurveyQuestion() { + var o = new api.SurveyQuestion(); + buildCounterSurveyQuestion++; + if (buildCounterSurveyQuestion < 3) { + o.answerOrder = "foo"; + o.answers = buildUnnamed2210(); + o.hasOther = true; + o.highValueLabel = "foo"; + o.images = buildUnnamed2211(); + o.lastAnswerPositionPinned = true; + o.lowValueLabel = "foo"; + o.mustPickSuggestion = true; + o.numStars = "foo"; + o.openTextPlaceholder = "foo"; + o.openTextSuggestions = buildUnnamed2212(); + o.question = "foo"; + o.sentimentText = "foo"; + o.singleLineResponse = true; + o.thresholdAnswers = buildUnnamed2213(); + o.type = "foo"; + o.unitOfMeasurementLabel = "foo"; + o.videoId = "foo"; + } + buildCounterSurveyQuestion--; + return o; +} + +checkSurveyQuestion(api.SurveyQuestion o) { + buildCounterSurveyQuestion++; + if (buildCounterSurveyQuestion < 3) { + unittest.expect(o.answerOrder, unittest.equals('foo')); + checkUnnamed2210(o.answers); + unittest.expect(o.hasOther, unittest.isTrue); + unittest.expect(o.highValueLabel, unittest.equals('foo')); + checkUnnamed2211(o.images); + unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue); + unittest.expect(o.lowValueLabel, unittest.equals('foo')); + unittest.expect(o.mustPickSuggestion, unittest.isTrue); + unittest.expect(o.numStars, unittest.equals('foo')); + unittest.expect(o.openTextPlaceholder, unittest.equals('foo')); + checkUnnamed2212(o.openTextSuggestions); + unittest.expect(o.question, unittest.equals('foo')); + unittest.expect(o.sentimentText, unittest.equals('foo')); + unittest.expect(o.singleLineResponse, unittest.isTrue); + checkUnnamed2213(o.thresholdAnswers); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); + unittest.expect(o.videoId, unittest.equals('foo')); + } + buildCounterSurveyQuestion--; +} + +core.int buildCounterSurveyQuestionImage = 0; +buildSurveyQuestionImage() { + var o = new api.SurveyQuestionImage(); + buildCounterSurveyQuestionImage++; + if (buildCounterSurveyQuestionImage < 3) { + o.altText = "foo"; + o.data = "foo"; + o.url = "foo"; + } + buildCounterSurveyQuestionImage--; + return o; +} + +checkSurveyQuestionImage(api.SurveyQuestionImage o) { + buildCounterSurveyQuestionImage++; + if (buildCounterSurveyQuestionImage < 3) { + unittest.expect(o.altText, unittest.equals('foo')); + unittest.expect(o.data, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterSurveyQuestionImage--; +} + +core.int buildCounterSurveyRejection = 0; +buildSurveyRejection() { + var o = new api.SurveyRejection(); + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + o.explanation = "foo"; + o.type = "foo"; + } + buildCounterSurveyRejection--; + return o; +} + +checkSurveyRejection(api.SurveyRejection o) { + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + unittest.expect(o.explanation, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterSurveyRejection--; +} + +core.int buildCounterSurveyResults = 0; +buildSurveyResults() { + var o = new api.SurveyResults(); + buildCounterSurveyResults++; + if (buildCounterSurveyResults < 3) { + o.status = "foo"; + o.surveyUrlId = "foo"; + } + buildCounterSurveyResults--; + return o; +} + +checkSurveyResults(api.SurveyResults o) { + buildCounterSurveyResults++; + if (buildCounterSurveyResults < 3) { + unittest.expect(o.status, unittest.equals('foo')); + unittest.expect(o.surveyUrlId, unittest.equals('foo')); + } + buildCounterSurveyResults--; +} + +core.int buildCounterSurveysDeleteResponse = 0; +buildSurveysDeleteResponse() { + var o = new api.SurveysDeleteResponse(); + buildCounterSurveysDeleteResponse++; + if (buildCounterSurveysDeleteResponse < 3) { + o.requestId = "foo"; + } + buildCounterSurveysDeleteResponse--; + return o; +} + +checkSurveysDeleteResponse(api.SurveysDeleteResponse o) { + buildCounterSurveysDeleteResponse++; + if (buildCounterSurveysDeleteResponse < 3) { + unittest.expect(o.requestId, unittest.equals('foo')); + } + buildCounterSurveysDeleteResponse--; +} + +buildUnnamed2214() { + var o = new core.List<api.Survey>(); + o.add(buildSurvey()); + o.add(buildSurvey()); + return o; +} + +checkUnnamed2214(core.List<api.Survey> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSurvey(o[0]); + checkSurvey(o[1]); +} + +core.int buildCounterSurveysListResponse = 0; +buildSurveysListResponse() { + var o = new api.SurveysListResponse(); + buildCounterSurveysListResponse++; + if (buildCounterSurveysListResponse < 3) { + o.pageInfo = buildPageInfo(); + o.requestId = "foo"; + o.resources = buildUnnamed2214(); + o.tokenPagination = buildTokenPagination(); + } + buildCounterSurveysListResponse--; + return o; +} + +checkSurveysListResponse(api.SurveysListResponse o) { + buildCounterSurveysListResponse++; + if (buildCounterSurveysListResponse < 3) { + checkPageInfo(o.pageInfo); + unittest.expect(o.requestId, unittest.equals('foo')); + checkUnnamed2214(o.resources); + checkTokenPagination(o.tokenPagination); + } + buildCounterSurveysListResponse--; +} + +core.int buildCounterSurveysStartRequest = 0; +buildSurveysStartRequest() { + var o = new api.SurveysStartRequest(); + buildCounterSurveysStartRequest++; + if (buildCounterSurveysStartRequest < 3) { + o.maxCostPerResponseNanos = "foo"; + } + buildCounterSurveysStartRequest--; + return o; +} + +checkSurveysStartRequest(api.SurveysStartRequest o) { + buildCounterSurveysStartRequest++; + if (buildCounterSurveysStartRequest < 3) { + unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo')); + } + buildCounterSurveysStartRequest--; +} + +core.int buildCounterSurveysStartResponse = 0; +buildSurveysStartResponse() { + var o = new api.SurveysStartResponse(); + buildCounterSurveysStartResponse++; + if (buildCounterSurveysStartResponse < 3) { + o.requestId = "foo"; + o.resource = buildSurvey(); + } + buildCounterSurveysStartResponse--; + return o; +} + +checkSurveysStartResponse(api.SurveysStartResponse o) { + buildCounterSurveysStartResponse++; + if (buildCounterSurveysStartResponse < 3) { + unittest.expect(o.requestId, unittest.equals('foo')); + checkSurvey(o.resource); + } + buildCounterSurveysStartResponse--; +} + +core.int buildCounterSurveysStopResponse = 0; +buildSurveysStopResponse() { + var o = new api.SurveysStopResponse(); + buildCounterSurveysStopResponse++; + if (buildCounterSurveysStopResponse < 3) { + o.requestId = "foo"; + o.resource = buildSurvey(); + } + buildCounterSurveysStopResponse--; + return o; +} + +checkSurveysStopResponse(api.SurveysStopResponse o) { + buildCounterSurveysStopResponse++; + if (buildCounterSurveysStopResponse < 3) { + unittest.expect(o.requestId, unittest.equals('foo')); + checkSurvey(o.resource); + } + buildCounterSurveysStopResponse--; +} + +core.int buildCounterTokenPagination = 0; +buildTokenPagination() { + var o = new api.TokenPagination(); + buildCounterTokenPagination++; + if (buildCounterTokenPagination < 3) { + o.nextPageToken = "foo"; + o.previousPageToken = "foo"; + } + buildCounterTokenPagination--; + return o; +} + +checkTokenPagination(api.TokenPagination o) { + buildCounterTokenPagination++; + if (buildCounterTokenPagination < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.previousPageToken, unittest.equals('foo')); + } + buildCounterTokenPagination--; +} + + +main() { + unittest.group("obj-schema-FieldMask", () { + unittest.test("to-json--from-json", () { + var o = buildFieldMask(); + var od = new api.FieldMask.fromJson(o.toJson()); + checkFieldMask(od); + }); + }); + + + unittest.group("obj-schema-MobileAppPanel", () { + unittest.test("to-json--from-json", () { + var o = buildMobileAppPanel(); + var od = new api.MobileAppPanel.fromJson(o.toJson()); + checkMobileAppPanel(od); + }); + }); + + + unittest.group("obj-schema-MobileAppPanelsListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildMobileAppPanelsListResponse(); + var od = new api.MobileAppPanelsListResponse.fromJson(o.toJson()); + checkMobileAppPanelsListResponse(od); + }); + }); + + + unittest.group("obj-schema-PageInfo", () { + unittest.test("to-json--from-json", () { + var o = buildPageInfo(); + var od = new api.PageInfo.fromJson(o.toJson()); + checkPageInfo(od); + }); + }); + + + unittest.group("obj-schema-ResultsGetRequest", () { + unittest.test("to-json--from-json", () { + var o = buildResultsGetRequest(); + var od = new api.ResultsGetRequest.fromJson(o.toJson()); + checkResultsGetRequest(od); + }); + }); + + + unittest.group("obj-schema-ResultsMask", () { + unittest.test("to-json--from-json", () { + var o = buildResultsMask(); + var od = new api.ResultsMask.fromJson(o.toJson()); + checkResultsMask(od); + }); + }); + + + unittest.group("obj-schema-Survey", () { + unittest.test("to-json--from-json", () { + var o = buildSurvey(); + var od = new api.Survey.fromJson(o.toJson()); + checkSurvey(od); + }); + }); + + + unittest.group("obj-schema-SurveyAudience", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyAudience(); + var od = new api.SurveyAudience.fromJson(o.toJson()); + checkSurveyAudience(od); + }); + }); + + + unittest.group("obj-schema-SurveyCost", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyCost(); + var od = new api.SurveyCost.fromJson(o.toJson()); + checkSurveyCost(od); + }); + }); + + + unittest.group("obj-schema-SurveyQuestion", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyQuestion(); + var od = new api.SurveyQuestion.fromJson(o.toJson()); + checkSurveyQuestion(od); + }); + }); + + + unittest.group("obj-schema-SurveyQuestionImage", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyQuestionImage(); + var od = new api.SurveyQuestionImage.fromJson(o.toJson()); + checkSurveyQuestionImage(od); + }); + }); + + + unittest.group("obj-schema-SurveyRejection", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyRejection(); + var od = new api.SurveyRejection.fromJson(o.toJson()); + checkSurveyRejection(od); + }); + }); + + + unittest.group("obj-schema-SurveyResults", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyResults(); + var od = new api.SurveyResults.fromJson(o.toJson()); + checkSurveyResults(od); + }); + }); + + + unittest.group("obj-schema-SurveysDeleteResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysDeleteResponse(); + var od = new api.SurveysDeleteResponse.fromJson(o.toJson()); + checkSurveysDeleteResponse(od); + }); + }); + + + unittest.group("obj-schema-SurveysListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysListResponse(); + var od = new api.SurveysListResponse.fromJson(o.toJson()); + checkSurveysListResponse(od); + }); + }); + + + unittest.group("obj-schema-SurveysStartRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysStartRequest(); + var od = new api.SurveysStartRequest.fromJson(o.toJson()); + checkSurveysStartRequest(od); + }); + }); + + + unittest.group("obj-schema-SurveysStartResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysStartResponse(); + var od = new api.SurveysStartResponse.fromJson(o.toJson()); + checkSurveysStartResponse(od); + }); + }); + + + unittest.group("obj-schema-SurveysStopResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysStopResponse(); + var od = new api.SurveysStopResponse.fromJson(o.toJson()); + checkSurveysStopResponse(od); + }); + }); + + + unittest.group("obj-schema-TokenPagination", () { + unittest.test("to-json--from-json", () { + var o = buildTokenPagination(); + var od = new api.TokenPagination.fromJson(o.toJson()); + checkTokenPagination(od); + }); + }); + + + unittest.group("resource-MobileapppanelsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; + var arg_panelId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("mobileAppPanels/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_panelId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMobileAppPanel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + checkMobileAppPanel(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; + var arg_maxResults = 42; + var arg_startIndex = 42; + var arg_token = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("mobileAppPanels")); + pathOffset += 15; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); + unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMobileAppPanelsListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.MobileAppPanelsListResponse response) { + checkMobileAppPanelsListResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; + var arg_request = buildMobileAppPanel(); + var arg_panelId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.MobileAppPanel.fromJson(json); + checkMobileAppPanel(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("mobileAppPanels/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_panelId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMobileAppPanel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + checkMobileAppPanel(response); + }))); + }); + + }); + + + unittest.group("resource-ResultsResourceApi", () { + unittest.test("method--get", () { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + + var mock = new HttpServerMock(); + api.ResultsResourceApi res = new api.SurveysApi(mock).results; + var arg_request = buildResultsGetRequest(); + var arg_surveyUrlId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ResultsGetRequest.fromJson(json); + checkResultsGetRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + index = path.indexOf("/results", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/results")); + pathOffset += 8; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurveyResults()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.SurveyResults response) { + checkSurveyResults(response); + }))); + }); + + }); + + + unittest.group("resource-SurveysResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_surveyUrlId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurveysDeleteResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_surveyUrlId).then(unittest.expectAsync(((api.SurveysDeleteResponse response) { + checkSurveysDeleteResponse(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_surveyUrlId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurvey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + checkSurvey(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_request = buildSurvey(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Survey.fromJson(json); + checkSurvey(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("surveys")); + pathOffset += 7; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurvey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request).then(unittest.expectAsync(((api.Survey response) { + checkSurvey(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_maxResults = 42; + var arg_startIndex = 42; + var arg_token = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("surveys")); + pathOffset += 7; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); + unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurveysListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.SurveysListResponse response) { + checkSurveysListResponse(response); + }))); + }); + + unittest.test("method--start", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_request = buildSurveysStartRequest(); + var arg_resourceId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SurveysStartRequest.fromJson(json); + checkSurveysStartRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + index = path.indexOf("/start", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_resourceId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/start")); + pathOffset += 6; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurveysStartResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.start(arg_request, arg_resourceId).then(unittest.expectAsync(((api.SurveysStartResponse response) { + checkSurveysStartResponse(response); + }))); + }); + + unittest.test("method--stop", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_resourceId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + index = path.indexOf("/stop", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_resourceId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/stop")); + pathOffset += 5; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurveysStopResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.stop(arg_resourceId).then(unittest.expectAsync(((api.SurveysStopResponse response) { + checkSurveysStopResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_request = buildSurvey(); + var arg_surveyUrlId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Survey.fromJson(json); + checkSurvey(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurvey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + checkSurvey(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/tagmanager/v1_test.dart b/generated/googleapis/test/tagmanager/v1_test.dart index 7ab270c..297f8f3 100644 --- a/generated/googleapis/test/tagmanager/v1_test.dart +++ b/generated/googleapis/test/tagmanager/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccount--; } -buildUnnamed1822() { +buildUnnamed1837() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1822(core.List<core.String> o) { +checkUnnamed1837(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -94,7 +94,7 @@ var o = new api.AccountAccess(); buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - o.permission = buildUnnamed1822(); + o.permission = buildUnnamed1837(); } buildCounterAccountAccess--; return o; @@ -103,19 +103,19 @@ checkAccountAccess(api.AccountAccess o) { buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - checkUnnamed1822(o.permission); + checkUnnamed1837(o.permission); } buildCounterAccountAccess--; } -buildUnnamed1823() { +buildUnnamed1838() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1823(core.List<api.Parameter> o) { +checkUnnamed1838(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -126,7 +126,7 @@ var o = new api.Condition(); buildCounterCondition++; if (buildCounterCondition < 3) { - o.parameter = buildUnnamed1823(); + o.parameter = buildUnnamed1838(); o.type = "foo"; } buildCounterCondition--; @@ -136,46 +136,46 @@ checkCondition(api.Condition o) { buildCounterCondition++; if (buildCounterCondition < 3) { - checkUnnamed1823(o.parameter); + checkUnnamed1838(o.parameter); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCondition--; } -buildUnnamed1824() { +buildUnnamed1839() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1824(core.List<core.String> o) { +checkUnnamed1839(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1825() { +buildUnnamed1840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1825(core.List<core.String> o) { +checkUnnamed1840(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1826() { +buildUnnamed1841() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1826(core.List<core.String> o) { +checkUnnamed1841(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -188,15 +188,15 @@ if (buildCounterContainer < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.domainName = buildUnnamed1824(); - o.enabledBuiltInVariable = buildUnnamed1825(); + o.domainName = buildUnnamed1839(); + o.enabledBuiltInVariable = buildUnnamed1840(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; o.publicId = "foo"; o.timeZoneCountryId = "foo"; o.timeZoneId = "foo"; - o.usageContext = buildUnnamed1826(); + o.usageContext = buildUnnamed1841(); } buildCounterContainer--; return o; @@ -207,27 +207,27 @@ if (buildCounterContainer < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1824(o.domainName); - checkUnnamed1825(o.enabledBuiltInVariable); + checkUnnamed1839(o.domainName); + checkUnnamed1840(o.enabledBuiltInVariable); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.publicId, unittest.equals('foo')); unittest.expect(o.timeZoneCountryId, unittest.equals('foo')); unittest.expect(o.timeZoneId, unittest.equals('foo')); - checkUnnamed1826(o.usageContext); + checkUnnamed1841(o.usageContext); } buildCounterContainer--; } -buildUnnamed1827() { +buildUnnamed1842() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1827(core.List<core.String> o) { +checkUnnamed1842(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -239,7 +239,7 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { o.containerId = "foo"; - o.permission = buildUnnamed1827(); + o.permission = buildUnnamed1842(); } buildCounterContainerAccess--; return o; @@ -249,84 +249,84 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1827(o.permission); + checkUnnamed1842(o.permission); } buildCounterContainerAccess--; } -buildUnnamed1828() { +buildUnnamed1843() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed1828(core.List<api.Folder> o) { +checkUnnamed1843(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); } -buildUnnamed1829() { +buildUnnamed1844() { var o = new core.List<api.Macro>(); o.add(buildMacro()); o.add(buildMacro()); return o; } -checkUnnamed1829(core.List<api.Macro> o) { +checkUnnamed1844(core.List<api.Macro> o) { unittest.expect(o, unittest.hasLength(2)); checkMacro(o[0]); checkMacro(o[1]); } -buildUnnamed1830() { +buildUnnamed1845() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1830(core.List<api.Rule> o) { +checkUnnamed1845(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); } -buildUnnamed1831() { +buildUnnamed1846() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1831(core.List<api.Tag> o) { +checkUnnamed1846(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed1832() { +buildUnnamed1847() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1832(core.List<api.Trigger> o) { +checkUnnamed1847(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed1833() { +buildUnnamed1848() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1833(core.List<api.Variable> o) { +checkUnnamed1848(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -343,14 +343,14 @@ o.containerVersionId = "foo"; o.deleted = true; o.fingerprint = "foo"; - o.folder = buildUnnamed1828(); - o.macro = buildUnnamed1829(); + o.folder = buildUnnamed1843(); + o.macro = buildUnnamed1844(); o.name = "foo"; o.notes = "foo"; - o.rule = buildUnnamed1830(); - o.tag = buildUnnamed1831(); - o.trigger = buildUnnamed1832(); - o.variable = buildUnnamed1833(); + o.rule = buildUnnamed1845(); + o.tag = buildUnnamed1846(); + o.trigger = buildUnnamed1847(); + o.variable = buildUnnamed1848(); } buildCounterContainerVersion--; return o; @@ -365,14 +365,14 @@ unittest.expect(o.containerVersionId, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1828(o.folder); - checkUnnamed1829(o.macro); + checkUnnamed1843(o.folder); + checkUnnamed1844(o.macro); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1830(o.rule); - checkUnnamed1831(o.tag); - checkUnnamed1832(o.trigger); - checkUnnamed1833(o.variable); + checkUnnamed1845(o.rule); + checkUnnamed1846(o.tag); + checkUnnamed1847(o.trigger); + checkUnnamed1848(o.variable); } buildCounterContainerVersion--; } @@ -526,40 +526,40 @@ buildCounterFolder--; } -buildUnnamed1834() { +buildUnnamed1849() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1834(core.List<api.Tag> o) { +checkUnnamed1849(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed1835() { +buildUnnamed1850() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1835(core.List<api.Trigger> o) { +checkUnnamed1850(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed1836() { +buildUnnamed1851() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1836(core.List<api.Variable> o) { +checkUnnamed1851(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -570,9 +570,9 @@ var o = new api.FolderEntities(); buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { - o.tag = buildUnnamed1834(); - o.trigger = buildUnnamed1835(); - o.variable = buildUnnamed1836(); + o.tag = buildUnnamed1849(); + o.trigger = buildUnnamed1850(); + o.variable = buildUnnamed1851(); } buildCounterFolderEntities--; return o; @@ -581,21 +581,21 @@ checkFolderEntities(api.FolderEntities o) { buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { - checkUnnamed1834(o.tag); - checkUnnamed1835(o.trigger); - checkUnnamed1836(o.variable); + checkUnnamed1849(o.tag); + checkUnnamed1850(o.trigger); + checkUnnamed1851(o.variable); } buildCounterFolderEntities--; } -buildUnnamed1837() { +buildUnnamed1852() { var o = new core.List<api.UserAccess>(); o.add(buildUserAccess()); o.add(buildUserAccess()); return o; } -checkUnnamed1837(core.List<api.UserAccess> o) { +checkUnnamed1852(core.List<api.UserAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkUserAccess(o[0]); checkUserAccess(o[1]); @@ -606,7 +606,7 @@ var o = new api.ListAccountUsersResponse(); buildCounterListAccountUsersResponse++; if (buildCounterListAccountUsersResponse < 3) { - o.userAccess = buildUnnamed1837(); + o.userAccess = buildUnnamed1852(); } buildCounterListAccountUsersResponse--; return o; @@ -615,19 +615,19 @@ checkListAccountUsersResponse(api.ListAccountUsersResponse o) { buildCounterListAccountUsersResponse++; if (buildCounterListAccountUsersResponse < 3) { - checkUnnamed1837(o.userAccess); + checkUnnamed1852(o.userAccess); } buildCounterListAccountUsersResponse--; } -buildUnnamed1838() { +buildUnnamed1853() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1838(core.List<api.Account> o) { +checkUnnamed1853(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -638,7 +638,7 @@ var o = new api.ListAccountsResponse(); buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - o.accounts = buildUnnamed1838(); + o.accounts = buildUnnamed1853(); } buildCounterListAccountsResponse--; return o; @@ -647,32 +647,32 @@ checkListAccountsResponse(api.ListAccountsResponse o) { buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - checkUnnamed1838(o.accounts); + checkUnnamed1853(o.accounts); } buildCounterListAccountsResponse--; } -buildUnnamed1839() { +buildUnnamed1854() { var o = new core.List<api.ContainerVersion>(); o.add(buildContainerVersion()); o.add(buildContainerVersion()); return o; } -checkUnnamed1839(core.List<api.ContainerVersion> o) { +checkUnnamed1854(core.List<api.ContainerVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersion(o[0]); checkContainerVersion(o[1]); } -buildUnnamed1840() { +buildUnnamed1855() { var o = new core.List<api.ContainerVersionHeader>(); o.add(buildContainerVersionHeader()); o.add(buildContainerVersionHeader()); return o; } -checkUnnamed1840(core.List<api.ContainerVersionHeader> o) { +checkUnnamed1855(core.List<api.ContainerVersionHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersionHeader(o[0]); checkContainerVersionHeader(o[1]); @@ -683,8 +683,8 @@ var o = new api.ListContainerVersionsResponse(); buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - o.containerVersion = buildUnnamed1839(); - o.containerVersionHeader = buildUnnamed1840(); + o.containerVersion = buildUnnamed1854(); + o.containerVersionHeader = buildUnnamed1855(); } buildCounterListContainerVersionsResponse--; return o; @@ -693,20 +693,20 @@ checkListContainerVersionsResponse(api.ListContainerVersionsResponse o) { buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - checkUnnamed1839(o.containerVersion); - checkUnnamed1840(o.containerVersionHeader); + checkUnnamed1854(o.containerVersion); + checkUnnamed1855(o.containerVersionHeader); } buildCounterListContainerVersionsResponse--; } -buildUnnamed1841() { +buildUnnamed1856() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed1841(core.List<api.Container> o) { +checkUnnamed1856(core.List<api.Container> o) { unittest.expect(o, unittest.hasLength(2)); checkContainer(o[0]); checkContainer(o[1]); @@ -717,7 +717,7 @@ var o = new api.ListContainersResponse(); buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - o.containers = buildUnnamed1841(); + o.containers = buildUnnamed1856(); } buildCounterListContainersResponse--; return o; @@ -726,19 +726,19 @@ checkListContainersResponse(api.ListContainersResponse o) { buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - checkUnnamed1841(o.containers); + checkUnnamed1856(o.containers); } buildCounterListContainersResponse--; } -buildUnnamed1842() { +buildUnnamed1857() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed1842(core.List<api.Environment> o) { +checkUnnamed1857(core.List<api.Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvironment(o[0]); checkEnvironment(o[1]); @@ -749,7 +749,7 @@ var o = new api.ListEnvironmentsResponse(); buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - o.environments = buildUnnamed1842(); + o.environments = buildUnnamed1857(); } buildCounterListEnvironmentsResponse--; return o; @@ -758,19 +758,19 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed1842(o.environments); + checkUnnamed1857(o.environments); } buildCounterListEnvironmentsResponse--; } -buildUnnamed1843() { +buildUnnamed1858() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed1843(core.List<api.Folder> o) { +checkUnnamed1858(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -781,7 +781,7 @@ var o = new api.ListFoldersResponse(); buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - o.folders = buildUnnamed1843(); + o.folders = buildUnnamed1858(); } buildCounterListFoldersResponse--; return o; @@ -790,19 +790,19 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed1843(o.folders); + checkUnnamed1858(o.folders); } buildCounterListFoldersResponse--; } -buildUnnamed1844() { +buildUnnamed1859() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1844(core.List<api.Tag> o) { +checkUnnamed1859(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); @@ -813,7 +813,7 @@ var o = new api.ListTagsResponse(); buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { - o.tags = buildUnnamed1844(); + o.tags = buildUnnamed1859(); } buildCounterListTagsResponse--; return o; @@ -822,19 +822,19 @@ checkListTagsResponse(api.ListTagsResponse o) { buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { - checkUnnamed1844(o.tags); + checkUnnamed1859(o.tags); } buildCounterListTagsResponse--; } -buildUnnamed1845() { +buildUnnamed1860() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1845(core.List<api.Trigger> o) { +checkUnnamed1860(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); @@ -845,7 +845,7 @@ var o = new api.ListTriggersResponse(); buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { - o.triggers = buildUnnamed1845(); + o.triggers = buildUnnamed1860(); } buildCounterListTriggersResponse--; return o; @@ -854,19 +854,19 @@ checkListTriggersResponse(api.ListTriggersResponse o) { buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { - checkUnnamed1845(o.triggers); + checkUnnamed1860(o.triggers); } buildCounterListTriggersResponse--; } -buildUnnamed1846() { +buildUnnamed1861() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1846(core.List<api.Variable> o) { +checkUnnamed1861(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -877,7 +877,7 @@ var o = new api.ListVariablesResponse(); buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { - o.variables = buildUnnamed1846(); + o.variables = buildUnnamed1861(); } buildCounterListVariablesResponse--; return o; @@ -886,45 +886,45 @@ checkListVariablesResponse(api.ListVariablesResponse o) { buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { - checkUnnamed1846(o.variables); + checkUnnamed1861(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed1847() { +buildUnnamed1862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1847(core.List<core.String> o) { +checkUnnamed1862(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1848() { +buildUnnamed1863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1848(core.List<core.String> o) { +checkUnnamed1863(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1849() { +buildUnnamed1864() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1849(core.List<api.Parameter> o) { +checkUnnamed1864(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -937,13 +937,13 @@ if (buildCounterMacro < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingRuleId = buildUnnamed1847(); - o.enablingRuleId = buildUnnamed1848(); + o.disablingRuleId = buildUnnamed1862(); + o.enablingRuleId = buildUnnamed1863(); o.fingerprint = "foo"; o.macroId = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1849(); + o.parameter = buildUnnamed1864(); o.parentFolderId = "foo"; o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; @@ -958,13 +958,13 @@ if (buildCounterMacro < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1847(o.disablingRuleId); - checkUnnamed1848(o.enablingRuleId); + checkUnnamed1862(o.disablingRuleId); + checkUnnamed1863(o.enablingRuleId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.macroId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1849(o.parameter); + checkUnnamed1864(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); @@ -973,27 +973,27 @@ buildCounterMacro--; } -buildUnnamed1850() { +buildUnnamed1865() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1850(core.List<api.Parameter> o) { +checkUnnamed1865(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed1851() { +buildUnnamed1866() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1851(core.List<api.Parameter> o) { +checkUnnamed1866(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1005,8 +1005,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { o.key = "foo"; - o.list = buildUnnamed1850(); - o.map = buildUnnamed1851(); + o.list = buildUnnamed1865(); + o.map = buildUnnamed1866(); o.type = "foo"; o.value = "foo"; } @@ -1018,8 +1018,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1850(o.list); - checkUnnamed1851(o.map); + checkUnnamed1865(o.list); + checkUnnamed1866(o.map); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1047,14 +1047,14 @@ buildCounterPublishContainerVersionResponse--; } -buildUnnamed1852() { +buildUnnamed1867() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1852(core.List<api.Condition> o) { +checkUnnamed1867(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); @@ -1066,7 +1066,7 @@ buildCounterRule++; if (buildCounterRule < 3) { o.accountId = "foo"; - o.condition = buildUnnamed1852(); + o.condition = buildUnnamed1867(); o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; @@ -1081,7 +1081,7 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1852(o.condition); + checkUnnamed1867(o.condition); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -1112,92 +1112,92 @@ buildCounterSetupTag--; } -buildUnnamed1853() { +buildUnnamed1868() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1853(core.List<core.String> o) { +checkUnnamed1868(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1854() { +buildUnnamed1869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1854(core.List<core.String> o) { +checkUnnamed1869(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1855() { +buildUnnamed1870() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1855(core.List<core.String> o) { +checkUnnamed1870(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1856() { +buildUnnamed1871() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1856(core.List<core.String> o) { +checkUnnamed1871(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1857() { +buildUnnamed1872() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1857(core.List<api.Parameter> o) { +checkUnnamed1872(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed1858() { +buildUnnamed1873() { var o = new core.List<api.SetupTag>(); o.add(buildSetupTag()); o.add(buildSetupTag()); return o; } -checkUnnamed1858(core.List<api.SetupTag> o) { +checkUnnamed1873(core.List<api.SetupTag> o) { unittest.expect(o, unittest.hasLength(2)); checkSetupTag(o[0]); checkSetupTag(o[1]); } -buildUnnamed1859() { +buildUnnamed1874() { var o = new core.List<api.TeardownTag>(); o.add(buildTeardownTag()); o.add(buildTeardownTag()); return o; } -checkUnnamed1859(core.List<api.TeardownTag> o) { +checkUnnamed1874(core.List<api.TeardownTag> o) { unittest.expect(o, unittest.hasLength(2)); checkTeardownTag(o[0]); checkTeardownTag(o[1]); @@ -1209,24 +1209,24 @@ buildCounterTag++; if (buildCounterTag < 3) { o.accountId = "foo"; - o.blockingRuleId = buildUnnamed1853(); - o.blockingTriggerId = buildUnnamed1854(); + o.blockingRuleId = buildUnnamed1868(); + o.blockingTriggerId = buildUnnamed1869(); o.containerId = "foo"; o.fingerprint = "foo"; - o.firingRuleId = buildUnnamed1855(); - o.firingTriggerId = buildUnnamed1856(); + o.firingRuleId = buildUnnamed1870(); + o.firingTriggerId = buildUnnamed1871(); o.liveOnly = true; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1857(); + o.parameter = buildUnnamed1872(); o.parentFolderId = "foo"; o.priority = buildParameter(); o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; - o.setupTag = buildUnnamed1858(); + o.setupTag = buildUnnamed1873(); o.tagFiringOption = "foo"; o.tagId = "foo"; - o.teardownTag = buildUnnamed1859(); + o.teardownTag = buildUnnamed1874(); o.type = "foo"; } buildCounterTag--; @@ -1237,24 +1237,24 @@ buildCounterTag++; if (buildCounterTag < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1853(o.blockingRuleId); - checkUnnamed1854(o.blockingTriggerId); + checkUnnamed1868(o.blockingRuleId); + checkUnnamed1869(o.blockingTriggerId); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1855(o.firingRuleId); - checkUnnamed1856(o.firingTriggerId); + checkUnnamed1870(o.firingRuleId); + checkUnnamed1871(o.firingTriggerId); unittest.expect(o.liveOnly, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1857(o.parameter); + checkUnnamed1872(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); checkParameter(o.priority); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); - checkUnnamed1858(o.setupTag); + checkUnnamed1873(o.setupTag); unittest.expect(o.tagFiringOption, unittest.equals('foo')); unittest.expect(o.tagId, unittest.equals('foo')); - checkUnnamed1859(o.teardownTag); + checkUnnamed1874(o.teardownTag); unittest.expect(o.type, unittest.equals('foo')); } buildCounterTag--; @@ -1281,40 +1281,40 @@ buildCounterTeardownTag--; } -buildUnnamed1860() { +buildUnnamed1875() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1860(core.List<api.Condition> o) { +checkUnnamed1875(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1861() { +buildUnnamed1876() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1861(core.List<api.Condition> o) { +checkUnnamed1876(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1862() { +buildUnnamed1877() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1862(core.List<api.Condition> o) { +checkUnnamed1877(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); @@ -1326,13 +1326,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { o.accountId = "foo"; - o.autoEventFilter = buildUnnamed1860(); + o.autoEventFilter = buildUnnamed1875(); o.checkValidation = buildParameter(); o.containerId = "foo"; - o.customEventFilter = buildUnnamed1861(); + o.customEventFilter = buildUnnamed1876(); o.enableAllVideos = buildParameter(); o.eventName = buildParameter(); - o.filter = buildUnnamed1862(); + o.filter = buildUnnamed1877(); o.fingerprint = "foo"; o.interval = buildParameter(); o.limit = buildParameter(); @@ -1353,13 +1353,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1860(o.autoEventFilter); + checkUnnamed1875(o.autoEventFilter); checkParameter(o.checkValidation); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1861(o.customEventFilter); + checkUnnamed1876(o.customEventFilter); checkParameter(o.enableAllVideos); checkParameter(o.eventName); - checkUnnamed1862(o.filter); + checkUnnamed1877(o.filter); unittest.expect(o.fingerprint, unittest.equals('foo')); checkParameter(o.interval); checkParameter(o.limit); @@ -1375,14 +1375,14 @@ buildCounterTrigger--; } -buildUnnamed1863() { +buildUnnamed1878() { var o = new core.List<api.ContainerAccess>(); o.add(buildContainerAccess()); o.add(buildContainerAccess()); return o; } -checkUnnamed1863(core.List<api.ContainerAccess> o) { +checkUnnamed1878(core.List<api.ContainerAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerAccess(o[0]); checkContainerAccess(o[1]); @@ -1395,7 +1395,7 @@ if (buildCounterUserAccess < 3) { o.accountAccess = buildAccountAccess(); o.accountId = "foo"; - o.containerAccess = buildUnnamed1863(); + o.containerAccess = buildUnnamed1878(); o.emailAddress = "foo"; o.permissionId = "foo"; } @@ -1408,47 +1408,47 @@ if (buildCounterUserAccess < 3) { checkAccountAccess(o.accountAccess); unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1863(o.containerAccess); + checkUnnamed1878(o.containerAccess); unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); } buildCounterUserAccess--; } -buildUnnamed1864() { +buildUnnamed1879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1864(core.List<core.String> o) { +checkUnnamed1879(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1865() { +buildUnnamed1880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1865(core.List<core.String> o) { +checkUnnamed1880(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1866() { +buildUnnamed1881() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1866(core.List<api.Parameter> o) { +checkUnnamed1881(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1461,12 +1461,12 @@ if (buildCounterVariable < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingTriggerId = buildUnnamed1864(); - o.enablingTriggerId = buildUnnamed1865(); + o.disablingTriggerId = buildUnnamed1879(); + o.enablingTriggerId = buildUnnamed1880(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1866(); + o.parameter = buildUnnamed1881(); o.parentFolderId = "foo"; o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; @@ -1482,12 +1482,12 @@ if (buildCounterVariable < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1864(o.disablingTriggerId); - checkUnnamed1865(o.enablingTriggerId); + checkUnnamed1879(o.disablingTriggerId); + checkUnnamed1880(o.enablingTriggerId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1866(o.parameter); + checkUnnamed1881(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); @@ -1497,40 +1497,40 @@ buildCounterVariable--; } -buildUnnamed1867() { +buildUnnamed1882() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1867(core.List<core.String> o) { +checkUnnamed1882(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1868() { +buildUnnamed1883() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1868(core.List<core.String> o) { +checkUnnamed1883(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1869() { +buildUnnamed1884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1869(core.List<core.String> o) { +checkUnnamed1884(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3070,9 +3070,9 @@ var arg_accountId = "foo"; var arg_containerId = "foo"; var arg_folderId = "foo"; - var arg_tagId = buildUnnamed1867(); - var arg_triggerId = buildUnnamed1868(); - var arg_variableId = buildUnnamed1869(); + var arg_tagId = buildUnnamed1882(); + var arg_triggerId = buildUnnamed1883(); + var arg_variableId = buildUnnamed1884(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Folder.fromJson(json); checkFolder(obj);
diff --git a/generated/googleapis/test/tasks/v1_test.dart b/generated/googleapis/test/tasks/v1_test.dart index c1fb853..d811703 100644 --- a/generated/googleapis/test/tasks/v1_test.dart +++ b/generated/googleapis/test/tasks/v1_test.dart
@@ -74,14 +74,14 @@ buildCounterTaskLinks--; } -buildUnnamed3369() { +buildUnnamed3182() { var o = new core.List<api.TaskLinks>(); o.add(buildTaskLinks()); o.add(buildTaskLinks()); return o; } -checkUnnamed3369(core.List<api.TaskLinks> o) { +checkUnnamed3182(core.List<api.TaskLinks> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskLinks(o[0]); checkTaskLinks(o[1]); @@ -99,7 +99,7 @@ o.hidden = true; o.id = "foo"; o.kind = "foo"; - o.links = buildUnnamed3369(); + o.links = buildUnnamed3182(); o.notes = "foo"; o.parent = "foo"; o.position = "foo"; @@ -122,7 +122,7 @@ unittest.expect(o.hidden, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3369(o.links); + checkUnnamed3182(o.links); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.position, unittest.equals('foo')); @@ -163,14 +163,14 @@ buildCounterTaskList--; } -buildUnnamed3370() { +buildUnnamed3183() { var o = new core.List<api.TaskList>(); o.add(buildTaskList()); o.add(buildTaskList()); return o; } -checkUnnamed3370(core.List<api.TaskList> o) { +checkUnnamed3183(core.List<api.TaskList> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskList(o[0]); checkTaskList(o[1]); @@ -182,7 +182,7 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { o.etag = "foo"; - o.items = buildUnnamed3370(); + o.items = buildUnnamed3183(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -194,21 +194,21 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3370(o.items); + checkUnnamed3183(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterTaskLists--; } -buildUnnamed3371() { +buildUnnamed3184() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3371(core.List<api.Task> o) { +checkUnnamed3184(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -220,7 +220,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { o.etag = "foo"; - o.items = buildUnnamed3371(); + o.items = buildUnnamed3184(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -232,7 +232,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3371(o.items); + checkUnnamed3184(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/translate/v2_test.dart b/generated/googleapis/test/translate/v2_test.dart index a9e3eb1..6750a66 100644 --- a/generated/googleapis/test/translate/v2_test.dart +++ b/generated/googleapis/test/translate/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed873() { +buildUnnamed897() { var o = new core.List<api.DetectionsResource>(); o.add(buildDetectionsResource()); o.add(buildDetectionsResource()); return o; } -checkUnnamed873(core.List<api.DetectionsResource> o) { +checkUnnamed897(core.List<api.DetectionsResource> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectionsResource(o[0]); checkDetectionsResource(o[1]); @@ -69,7 +69,7 @@ var o = new api.DetectionsListResponse(); buildCounterDetectionsListResponse++; if (buildCounterDetectionsListResponse < 3) { - o.detections = buildUnnamed873(); + o.detections = buildUnnamed897(); } buildCounterDetectionsListResponse--; return o; @@ -78,7 +78,7 @@ checkDetectionsListResponse(api.DetectionsListResponse o) { buildCounterDetectionsListResponse++; if (buildCounterDetectionsListResponse < 3) { - checkUnnamed873(o.detections); + checkUnnamed897(o.detections); } buildCounterDetectionsListResponse--; } @@ -119,14 +119,14 @@ checkDetectionsResourceElement(o[1]); } -buildUnnamed874() { +buildUnnamed898() { var o = new core.List<api.LanguagesResource>(); o.add(buildLanguagesResource()); o.add(buildLanguagesResource()); return o; } -checkUnnamed874(core.List<api.LanguagesResource> o) { +checkUnnamed898(core.List<api.LanguagesResource> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguagesResource(o[0]); checkLanguagesResource(o[1]); @@ -137,7 +137,7 @@ var o = new api.LanguagesListResponse(); buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { - o.languages = buildUnnamed874(); + o.languages = buildUnnamed898(); } buildCounterLanguagesListResponse--; return o; @@ -146,7 +146,7 @@ checkLanguagesListResponse(api.LanguagesListResponse o) { buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { - checkUnnamed874(o.languages); + checkUnnamed898(o.languages); } buildCounterLanguagesListResponse--; } @@ -172,14 +172,14 @@ buildCounterLanguagesResource--; } -buildUnnamed875() { +buildUnnamed899() { var o = new core.List<api.TranslationsResource>(); o.add(buildTranslationsResource()); o.add(buildTranslationsResource()); return o; } -checkUnnamed875(core.List<api.TranslationsResource> o) { +checkUnnamed899(core.List<api.TranslationsResource> o) { unittest.expect(o, unittest.hasLength(2)); checkTranslationsResource(o[0]); checkTranslationsResource(o[1]); @@ -190,7 +190,7 @@ var o = new api.TranslationsListResponse(); buildCounterTranslationsListResponse++; if (buildCounterTranslationsListResponse < 3) { - o.translations = buildUnnamed875(); + o.translations = buildUnnamed899(); } buildCounterTranslationsListResponse--; return o; @@ -199,7 +199,7 @@ checkTranslationsListResponse(api.TranslationsListResponse o) { buildCounterTranslationsListResponse++; if (buildCounterTranslationsListResponse < 3) { - checkUnnamed875(o.translations); + checkUnnamed899(o.translations); } buildCounterTranslationsListResponse--; } @@ -225,40 +225,40 @@ buildCounterTranslationsResource--; } -buildUnnamed876() { +buildUnnamed900() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed876(core.List<core.String> o) { +checkUnnamed900(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed877() { +buildUnnamed901() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed877(core.List<core.String> o) { +checkUnnamed901(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed878() { +buildUnnamed902() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed878(core.List<core.String> o) { +checkUnnamed902(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -334,7 +334,7 @@ var mock = new HttpServerMock(); api.DetectionsResourceApi res = new api.TranslateApi(mock).detections; - var arg_q = buildUnnamed876(); + var arg_q = buildUnnamed900(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -436,9 +436,9 @@ var mock = new HttpServerMock(); api.TranslationsResourceApi res = new api.TranslateApi(mock).translations; - var arg_q = buildUnnamed877(); + var arg_q = buildUnnamed901(); var arg_target = "foo"; - var arg_cid = buildUnnamed878(); + var arg_cid = buildUnnamed902(); var arg_format = "foo"; var arg_source = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/urlshortener/v1_test.dart b/generated/googleapis/test/urlshortener/v1_test.dart index 888f17d..bbfddec 100644 --- a/generated/googleapis/test/urlshortener/v1_test.dart +++ b/generated/googleapis/test/urlshortener/v1_test.dart
@@ -51,53 +51,53 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed898() { +buildUnnamed923() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed898(core.List<api.StringCount> o) { +checkUnnamed923(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed899() { +buildUnnamed924() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed899(core.List<api.StringCount> o) { +checkUnnamed924(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed900() { +buildUnnamed925() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed900(core.List<api.StringCount> o) { +checkUnnamed925(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed901() { +buildUnnamed926() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed901(core.List<api.StringCount> o) { +checkUnnamed926(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); @@ -108,11 +108,11 @@ var o = new api.AnalyticsSnapshot(); buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - o.browsers = buildUnnamed898(); - o.countries = buildUnnamed899(); + o.browsers = buildUnnamed923(); + o.countries = buildUnnamed924(); o.longUrlClicks = "foo"; - o.platforms = buildUnnamed900(); - o.referrers = buildUnnamed901(); + o.platforms = buildUnnamed925(); + o.referrers = buildUnnamed926(); o.shortUrlClicks = "foo"; } buildCounterAnalyticsSnapshot--; @@ -122,11 +122,11 @@ checkAnalyticsSnapshot(api.AnalyticsSnapshot o) { buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - checkUnnamed898(o.browsers); - checkUnnamed899(o.countries); + checkUnnamed923(o.browsers); + checkUnnamed924(o.countries); unittest.expect(o.longUrlClicks, unittest.equals('foo')); - checkUnnamed900(o.platforms); - checkUnnamed901(o.referrers); + checkUnnamed925(o.platforms); + checkUnnamed926(o.referrers); unittest.expect(o.shortUrlClicks, unittest.equals('foo')); } buildCounterAnalyticsSnapshot--; @@ -209,14 +209,14 @@ buildCounterUrl--; } -buildUnnamed902() { +buildUnnamed927() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed902(core.List<api.Url> o) { +checkUnnamed927(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); @@ -227,7 +227,7 @@ var o = new api.UrlHistory(); buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - o.items = buildUnnamed902(); + o.items = buildUnnamed927(); o.itemsPerPage = 42; o.kind = "foo"; o.nextPageToken = "foo"; @@ -240,7 +240,7 @@ checkUrlHistory(api.UrlHistory o) { buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - checkUnnamed902(o.items); + checkUnnamed927(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo'));
diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart index 544621d..0f62af2 100644 --- a/generated/googleapis/test/vision/v1_test.dart +++ b/generated/googleapis/test/vision/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1373() { +buildUnnamed1395() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed1373(core.List<api.Feature> o) { +checkUnnamed1395(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -69,7 +69,7 @@ var o = new api.AnnotateImageRequest(); buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - o.features = buildUnnamed1373(); + o.features = buildUnnamed1395(); o.image = buildImage(); o.imageContext = buildImageContext(); } @@ -80,73 +80,73 @@ checkAnnotateImageRequest(api.AnnotateImageRequest o) { buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - checkUnnamed1373(o.features); + checkUnnamed1395(o.features); checkImage(o.image); checkImageContext(o.imageContext); } buildCounterAnnotateImageRequest--; } -buildUnnamed1374() { +buildUnnamed1396() { var o = new core.List<api.FaceAnnotation>(); o.add(buildFaceAnnotation()); o.add(buildFaceAnnotation()); return o; } -checkUnnamed1374(core.List<api.FaceAnnotation> o) { +checkUnnamed1396(core.List<api.FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkFaceAnnotation(o[0]); checkFaceAnnotation(o[1]); } -buildUnnamed1375() { +buildUnnamed1397() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1375(core.List<api.EntityAnnotation> o) { +checkUnnamed1397(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1376() { +buildUnnamed1398() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1376(core.List<api.EntityAnnotation> o) { +checkUnnamed1398(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1377() { +buildUnnamed1399() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1377(core.List<api.EntityAnnotation> o) { +checkUnnamed1399(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1378() { +buildUnnamed1400() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1378(core.List<api.EntityAnnotation> o) { +checkUnnamed1400(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); @@ -158,13 +158,13 @@ buildCounterAnnotateImageResponse++; if (buildCounterAnnotateImageResponse < 3) { o.error = buildStatus(); - o.faceAnnotations = buildUnnamed1374(); + o.faceAnnotations = buildUnnamed1396(); o.imagePropertiesAnnotation = buildImageProperties(); - o.labelAnnotations = buildUnnamed1375(); - o.landmarkAnnotations = buildUnnamed1376(); - o.logoAnnotations = buildUnnamed1377(); + o.labelAnnotations = buildUnnamed1397(); + o.landmarkAnnotations = buildUnnamed1398(); + o.logoAnnotations = buildUnnamed1399(); o.safeSearchAnnotation = buildSafeSearchAnnotation(); - o.textAnnotations = buildUnnamed1378(); + o.textAnnotations = buildUnnamed1400(); } buildCounterAnnotateImageResponse--; return o; @@ -174,25 +174,25 @@ buildCounterAnnotateImageResponse++; if (buildCounterAnnotateImageResponse < 3) { checkStatus(o.error); - checkUnnamed1374(o.faceAnnotations); + checkUnnamed1396(o.faceAnnotations); checkImageProperties(o.imagePropertiesAnnotation); - checkUnnamed1375(o.labelAnnotations); - checkUnnamed1376(o.landmarkAnnotations); - checkUnnamed1377(o.logoAnnotations); + checkUnnamed1397(o.labelAnnotations); + checkUnnamed1398(o.landmarkAnnotations); + checkUnnamed1399(o.logoAnnotations); checkSafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed1378(o.textAnnotations); + checkUnnamed1400(o.textAnnotations); } buildCounterAnnotateImageResponse--; } -buildUnnamed1379() { +buildUnnamed1401() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed1379(core.List<api.AnnotateImageRequest> o) { +checkUnnamed1401(core.List<api.AnnotateImageRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageRequest(o[0]); checkAnnotateImageRequest(o[1]); @@ -203,7 +203,7 @@ var o = new api.BatchAnnotateImagesRequest(); buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - o.requests = buildUnnamed1379(); + o.requests = buildUnnamed1401(); } buildCounterBatchAnnotateImagesRequest--; return o; @@ -212,19 +212,19 @@ checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - checkUnnamed1379(o.requests); + checkUnnamed1401(o.requests); } buildCounterBatchAnnotateImagesRequest--; } -buildUnnamed1380() { +buildUnnamed1402() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed1380(core.List<api.AnnotateImageResponse> o) { +checkUnnamed1402(core.List<api.AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageResponse(o[0]); checkAnnotateImageResponse(o[1]); @@ -235,7 +235,7 @@ var o = new api.BatchAnnotateImagesResponse(); buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - o.responses = buildUnnamed1380(); + o.responses = buildUnnamed1402(); } buildCounterBatchAnnotateImagesResponse--; return o; @@ -244,19 +244,19 @@ checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - checkUnnamed1380(o.responses); + checkUnnamed1402(o.responses); } buildCounterBatchAnnotateImagesResponse--; } -buildUnnamed1381() { +buildUnnamed1403() { var o = new core.List<api.Vertex>(); o.add(buildVertex()); o.add(buildVertex()); return o; } -checkUnnamed1381(core.List<api.Vertex> o) { +checkUnnamed1403(core.List<api.Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkVertex(o[0]); checkVertex(o[1]); @@ -267,7 +267,7 @@ var o = new api.BoundingPoly(); buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - o.vertices = buildUnnamed1381(); + o.vertices = buildUnnamed1403(); } buildCounterBoundingPoly--; return o; @@ -276,7 +276,7 @@ checkBoundingPoly(api.BoundingPoly o) { buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - checkUnnamed1381(o.vertices); + checkUnnamed1403(o.vertices); } buildCounterBoundingPoly--; } @@ -329,14 +329,14 @@ buildCounterColorInfo--; } -buildUnnamed1382() { +buildUnnamed1404() { var o = new core.List<api.ColorInfo>(); o.add(buildColorInfo()); o.add(buildColorInfo()); return o; } -checkUnnamed1382(core.List<api.ColorInfo> o) { +checkUnnamed1404(core.List<api.ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkColorInfo(o[0]); checkColorInfo(o[1]); @@ -347,7 +347,7 @@ var o = new api.DominantColorsAnnotation(); buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - o.colors = buildUnnamed1382(); + o.colors = buildUnnamed1404(); } buildCounterDominantColorsAnnotation--; return o; @@ -356,32 +356,32 @@ checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - checkUnnamed1382(o.colors); + checkUnnamed1404(o.colors); } buildCounterDominantColorsAnnotation--; } -buildUnnamed1383() { +buildUnnamed1405() { var o = new core.List<api.LocationInfo>(); o.add(buildLocationInfo()); o.add(buildLocationInfo()); return o; } -checkUnnamed1383(core.List<api.LocationInfo> o) { +checkUnnamed1405(core.List<api.LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationInfo(o[0]); checkLocationInfo(o[1]); } -buildUnnamed1384() { +buildUnnamed1406() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1384(core.List<api.Property> o) { +checkUnnamed1406(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -396,9 +396,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed1383(); + o.locations = buildUnnamed1405(); o.mid = "foo"; - o.properties = buildUnnamed1384(); + o.properties = buildUnnamed1406(); o.score = 42.0; o.topicality = 42.0; } @@ -413,23 +413,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1383(o.locations); + checkUnnamed1405(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed1384(o.properties); + checkUnnamed1406(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterEntityAnnotation--; } -buildUnnamed1385() { +buildUnnamed1407() { var o = new core.List<api.Landmark>(); o.add(buildLandmark()); o.add(buildLandmark()); return o; } -checkUnnamed1385(core.List<api.Landmark> o) { +checkUnnamed1407(core.List<api.Landmark> o) { unittest.expect(o, unittest.hasLength(2)); checkLandmark(o[0]); checkLandmark(o[1]); @@ -448,7 +448,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed1385(); + o.landmarks = buildUnnamed1407(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -471,7 +471,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed1385(o.landmarks); + checkUnnamed1407(o.landmarks); unittest.expect(o.panAngle, unittest.equals(42.0)); unittest.expect(o.rollAngle, unittest.equals(42.0)); unittest.expect(o.sorrowLikelihood, unittest.equals('foo')); @@ -524,14 +524,14 @@ buildCounterImage--; } -buildUnnamed1386() { +buildUnnamed1408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1386(core.List<core.String> o) { +checkUnnamed1408(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -542,7 +542,7 @@ var o = new api.ImageContext(); buildCounterImageContext++; if (buildCounterImageContext < 3) { - o.languageHints = buildUnnamed1386(); + o.languageHints = buildUnnamed1408(); o.latLongRect = buildLatLongRect(); } buildCounterImageContext--; @@ -552,7 +552,7 @@ checkImageContext(api.ImageContext o) { buildCounterImageContext++; if (buildCounterImageContext < 3) { - checkUnnamed1386(o.languageHints); + checkUnnamed1408(o.languageHints); checkLatLongRect(o.latLongRect); } buildCounterImageContext--; @@ -747,30 +747,30 @@ buildCounterSafeSearchAnnotation--; } -buildUnnamed1387() { +buildUnnamed1409() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1387(core.Map<core.String, core.Object> o) { +checkUnnamed1409(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1388() { +buildUnnamed1410() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1387()); - o.add(buildUnnamed1387()); + o.add(buildUnnamed1409()); + o.add(buildUnnamed1409()); return o; } -checkUnnamed1388(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1410(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1387(o[0]); - checkUnnamed1387(o[1]); + checkUnnamed1409(o[0]); + checkUnnamed1409(o[1]); } core.int buildCounterStatus = 0; @@ -779,7 +779,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1388(); + o.details = buildUnnamed1410(); o.message = "foo"; } buildCounterStatus--; @@ -790,7 +790,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1388(o.details); + checkUnnamed1410(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/webfonts/v1_test.dart b/generated/googleapis/test/webfonts/v1_test.dart index dc371d7..17c3071 100644 --- a/generated/googleapis/test/webfonts/v1_test.dart +++ b/generated/googleapis/test/webfonts/v1_test.dart
@@ -51,40 +51,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1870() { +buildUnnamed1885() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1870(core.Map<core.String, core.String> o) { +checkUnnamed1885(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1871() { +buildUnnamed1886() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1871(core.List<core.String> o) { +checkUnnamed1886(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1872() { +buildUnnamed1887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1872(core.List<core.String> o) { +checkUnnamed1887(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,11 +97,11 @@ if (buildCounterWebfont < 3) { o.category = "foo"; o.family = "foo"; - o.files = buildUnnamed1870(); + o.files = buildUnnamed1885(); o.kind = "foo"; o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subsets = buildUnnamed1871(); - o.variants = buildUnnamed1872(); + o.subsets = buildUnnamed1886(); + o.variants = buildUnnamed1887(); o.version = "foo"; } buildCounterWebfont--; @@ -113,24 +113,24 @@ if (buildCounterWebfont < 3) { unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed1870(o.files); + checkUnnamed1885(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastModified, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1871(o.subsets); - checkUnnamed1872(o.variants); + checkUnnamed1886(o.subsets); + checkUnnamed1887(o.variants); unittest.expect(o.version, unittest.equals('foo')); } buildCounterWebfont--; } -buildUnnamed1873() { +buildUnnamed1888() { var o = new core.List<api.Webfont>(); o.add(buildWebfont()); o.add(buildWebfont()); return o; } -checkUnnamed1873(core.List<api.Webfont> o) { +checkUnnamed1888(core.List<api.Webfont> o) { unittest.expect(o, unittest.hasLength(2)); checkWebfont(o[0]); checkWebfont(o[1]); @@ -141,7 +141,7 @@ var o = new api.WebfontList(); buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - o.items = buildUnnamed1873(); + o.items = buildUnnamed1888(); o.kind = "foo"; } buildCounterWebfontList--; @@ -151,7 +151,7 @@ checkWebfontList(api.WebfontList o) { buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - checkUnnamed1873(o.items); + checkUnnamed1888(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterWebfontList--;
diff --git a/generated/googleapis/test/webmasters/v3_test.dart b/generated/googleapis/test/webmasters/v3_test.dart index a2960f7..0c48092 100644 --- a/generated/googleapis/test/webmasters/v3_test.dart +++ b/generated/googleapis/test/webmasters/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed797() { +buildUnnamed821() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed797(core.List<core.String> o) { +checkUnnamed821(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -72,7 +72,7 @@ o.clicks = 42.0; o.ctr = 42.0; o.impressions = 42.0; - o.keys = buildUnnamed797(); + o.keys = buildUnnamed821(); o.position = 42.0; } buildCounterApiDataRow--; @@ -85,7 +85,7 @@ unittest.expect(o.clicks, unittest.equals(42.0)); unittest.expect(o.ctr, unittest.equals(42.0)); unittest.expect(o.impressions, unittest.equals(42.0)); - checkUnnamed797(o.keys); + checkUnnamed821(o.keys); unittest.expect(o.position, unittest.equals(42.0)); } buildCounterApiDataRow--; @@ -114,14 +114,14 @@ buildCounterApiDimensionFilter--; } -buildUnnamed798() { +buildUnnamed822() { var o = new core.List<api.ApiDimensionFilter>(); o.add(buildApiDimensionFilter()); o.add(buildApiDimensionFilter()); return o; } -checkUnnamed798(core.List<api.ApiDimensionFilter> o) { +checkUnnamed822(core.List<api.ApiDimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilter(o[0]); checkApiDimensionFilter(o[1]); @@ -132,7 +132,7 @@ var o = new api.ApiDimensionFilterGroup(); buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - o.filters = buildUnnamed798(); + o.filters = buildUnnamed822(); o.groupType = "foo"; } buildCounterApiDimensionFilterGroup--; @@ -142,33 +142,33 @@ checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - checkUnnamed798(o.filters); + checkUnnamed822(o.filters); unittest.expect(o.groupType, unittest.equals('foo')); } buildCounterApiDimensionFilterGroup--; } -buildUnnamed799() { +buildUnnamed823() { var o = new core.List<api.ApiDimensionFilterGroup>(); o.add(buildApiDimensionFilterGroup()); o.add(buildApiDimensionFilterGroup()); return o; } -checkUnnamed799(core.List<api.ApiDimensionFilterGroup> o) { +checkUnnamed823(core.List<api.ApiDimensionFilterGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilterGroup(o[0]); checkApiDimensionFilterGroup(o[1]); } -buildUnnamed800() { +buildUnnamed824() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed800(core.List<core.String> o) { +checkUnnamed824(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,8 +180,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { o.aggregationType = "foo"; - o.dimensionFilterGroups = buildUnnamed799(); - o.dimensions = buildUnnamed800(); + o.dimensionFilterGroups = buildUnnamed823(); + o.dimensions = buildUnnamed824(); o.endDate = "foo"; o.rowLimit = 42; o.searchType = "foo"; @@ -196,8 +196,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { unittest.expect(o.aggregationType, unittest.equals('foo')); - checkUnnamed799(o.dimensionFilterGroups); - checkUnnamed800(o.dimensions); + checkUnnamed823(o.dimensionFilterGroups); + checkUnnamed824(o.dimensions); unittest.expect(o.endDate, unittest.equals('foo')); unittest.expect(o.rowLimit, unittest.equals(42)); unittest.expect(o.searchType, unittest.equals('foo')); @@ -207,14 +207,14 @@ buildCounterSearchAnalyticsQueryRequest--; } -buildUnnamed801() { +buildUnnamed825() { var o = new core.List<api.ApiDataRow>(); o.add(buildApiDataRow()); o.add(buildApiDataRow()); return o; } -checkUnnamed801(core.List<api.ApiDataRow> o) { +checkUnnamed825(core.List<api.ApiDataRow> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDataRow(o[0]); checkApiDataRow(o[1]); @@ -226,7 +226,7 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { o.responseAggregationType = "foo"; - o.rows = buildUnnamed801(); + o.rows = buildUnnamed825(); } buildCounterSearchAnalyticsQueryResponse--; return o; @@ -236,19 +236,19 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { unittest.expect(o.responseAggregationType, unittest.equals('foo')); - checkUnnamed801(o.rows); + checkUnnamed825(o.rows); } buildCounterSearchAnalyticsQueryResponse--; } -buildUnnamed802() { +buildUnnamed826() { var o = new core.List<api.WmxSitemap>(); o.add(buildWmxSitemap()); o.add(buildWmxSitemap()); return o; } -checkUnnamed802(core.List<api.WmxSitemap> o) { +checkUnnamed826(core.List<api.WmxSitemap> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemap(o[0]); checkWmxSitemap(o[1]); @@ -259,7 +259,7 @@ var o = new api.SitemapsListResponse(); buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - o.sitemap = buildUnnamed802(); + o.sitemap = buildUnnamed826(); } buildCounterSitemapsListResponse--; return o; @@ -268,19 +268,19 @@ checkSitemapsListResponse(api.SitemapsListResponse o) { buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - checkUnnamed802(o.sitemap); + checkUnnamed826(o.sitemap); } buildCounterSitemapsListResponse--; } -buildUnnamed803() { +buildUnnamed827() { var o = new core.List<api.WmxSite>(); o.add(buildWmxSite()); o.add(buildWmxSite()); return o; } -checkUnnamed803(core.List<api.WmxSite> o) { +checkUnnamed827(core.List<api.WmxSite> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSite(o[0]); checkWmxSite(o[1]); @@ -291,7 +291,7 @@ var o = new api.SitesListResponse(); buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - o.siteEntry = buildUnnamed803(); + o.siteEntry = buildUnnamed827(); } buildCounterSitesListResponse--; return o; @@ -300,7 +300,7 @@ checkSitesListResponse(api.SitesListResponse o) { buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - checkUnnamed803(o.siteEntry); + checkUnnamed827(o.siteEntry); } buildCounterSitesListResponse--; } @@ -326,14 +326,14 @@ buildCounterUrlCrawlErrorCount--; } -buildUnnamed804() { +buildUnnamed828() { var o = new core.List<api.UrlCrawlErrorCount>(); o.add(buildUrlCrawlErrorCount()); o.add(buildUrlCrawlErrorCount()); return o; } -checkUnnamed804(core.List<api.UrlCrawlErrorCount> o) { +checkUnnamed828(core.List<api.UrlCrawlErrorCount> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorCount(o[0]); checkUrlCrawlErrorCount(o[1]); @@ -345,7 +345,7 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { o.category = "foo"; - o.entries = buildUnnamed804(); + o.entries = buildUnnamed828(); o.platform = "foo"; } buildCounterUrlCrawlErrorCountsPerType--; @@ -356,20 +356,20 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { unittest.expect(o.category, unittest.equals('foo')); - checkUnnamed804(o.entries); + checkUnnamed828(o.entries); unittest.expect(o.platform, unittest.equals('foo')); } buildCounterUrlCrawlErrorCountsPerType--; } -buildUnnamed805() { +buildUnnamed829() { var o = new core.List<api.UrlCrawlErrorCountsPerType>(); o.add(buildUrlCrawlErrorCountsPerType()); o.add(buildUrlCrawlErrorCountsPerType()); return o; } -checkUnnamed805(core.List<api.UrlCrawlErrorCountsPerType> o) { +checkUnnamed829(core.List<api.UrlCrawlErrorCountsPerType> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorCountsPerType(o[0]); checkUrlCrawlErrorCountsPerType(o[1]); @@ -380,7 +380,7 @@ var o = new api.UrlCrawlErrorsCountsQueryResponse(); buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - o.countPerTypes = buildUnnamed805(); + o.countPerTypes = buildUnnamed829(); } buildCounterUrlCrawlErrorsCountsQueryResponse--; return o; @@ -389,7 +389,7 @@ checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o) { buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - checkUnnamed805(o.countPerTypes); + checkUnnamed829(o.countPerTypes); } buildCounterUrlCrawlErrorsCountsQueryResponse--; } @@ -421,14 +421,14 @@ buildCounterUrlCrawlErrorsSample--; } -buildUnnamed806() { +buildUnnamed830() { var o = new core.List<api.UrlCrawlErrorsSample>(); o.add(buildUrlCrawlErrorsSample()); o.add(buildUrlCrawlErrorsSample()); return o; } -checkUnnamed806(core.List<api.UrlCrawlErrorsSample> o) { +checkUnnamed830(core.List<api.UrlCrawlErrorsSample> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorsSample(o[0]); checkUrlCrawlErrorsSample(o[1]); @@ -439,7 +439,7 @@ var o = new api.UrlCrawlErrorsSamplesListResponse(); buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - o.urlCrawlErrorSample = buildUnnamed806(); + o.urlCrawlErrorSample = buildUnnamed830(); } buildCounterUrlCrawlErrorsSamplesListResponse--; return o; @@ -448,32 +448,32 @@ checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o) { buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - checkUnnamed806(o.urlCrawlErrorSample); + checkUnnamed830(o.urlCrawlErrorSample); } buildCounterUrlCrawlErrorsSamplesListResponse--; } -buildUnnamed807() { +buildUnnamed831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed807(core.List<core.String> o) { +checkUnnamed831(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed808() { +buildUnnamed832() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed808(core.List<core.String> o) { +checkUnnamed832(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -484,8 +484,8 @@ var o = new api.UrlSampleDetails(); buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - o.containingSitemaps = buildUnnamed807(); - o.linkedFromUrls = buildUnnamed808(); + o.containingSitemaps = buildUnnamed831(); + o.linkedFromUrls = buildUnnamed832(); } buildCounterUrlSampleDetails--; return o; @@ -494,8 +494,8 @@ checkUrlSampleDetails(api.UrlSampleDetails o) { buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - checkUnnamed807(o.containingSitemaps); - checkUnnamed808(o.linkedFromUrls); + checkUnnamed831(o.containingSitemaps); + checkUnnamed832(o.linkedFromUrls); } buildCounterUrlSampleDetails--; } @@ -521,14 +521,14 @@ buildCounterWmxSite--; } -buildUnnamed809() { +buildUnnamed833() { var o = new core.List<api.WmxSitemapContent>(); o.add(buildWmxSitemapContent()); o.add(buildWmxSitemapContent()); return o; } -checkUnnamed809(core.List<api.WmxSitemapContent> o) { +checkUnnamed833(core.List<api.WmxSitemapContent> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemapContent(o[0]); checkWmxSitemapContent(o[1]); @@ -539,7 +539,7 @@ var o = new api.WmxSitemap(); buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - o.contents = buildUnnamed809(); + o.contents = buildUnnamed833(); o.errors = "foo"; o.isPending = true; o.isSitemapsIndex = true; @@ -556,7 +556,7 @@ checkWmxSitemap(api.WmxSitemap o) { buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - checkUnnamed809(o.contents); + checkUnnamed833(o.contents); unittest.expect(o.errors, unittest.equals('foo')); unittest.expect(o.isPending, unittest.isTrue); unittest.expect(o.isSitemapsIndex, unittest.isTrue);
diff --git a/generated/googleapis/test/youtube/v3_test.dart b/generated/googleapis/test/youtube/v3_test.dart index b90b911..8dec852 100644 --- a/generated/googleapis/test/youtube/v3_test.dart +++ b/generated/googleapis/test/youtube/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed713() { +buildUnnamed737() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed713(core.List<core.String> o) { +checkUnnamed737(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { o.allowed = true; - o.exception = buildUnnamed713(); + o.exception = buildUnnamed737(); } buildCounterAccessPolicy--; return o; @@ -80,7 +80,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { unittest.expect(o.allowed, unittest.isTrue); - checkUnnamed713(o.exception); + checkUnnamed737(o.exception); } buildCounterAccessPolicy--; } @@ -269,27 +269,27 @@ buildCounterActivityContentDetailsPlaylistItem--; } -buildUnnamed714() { +buildUnnamed738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed714(core.List<core.String> o) { +checkUnnamed738(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed715() { +buildUnnamed739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed715(core.List<core.String> o) { +checkUnnamed739(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -307,8 +307,8 @@ o.customCtaButtonText = "foo"; o.descriptionText = "foo"; o.destinationUrl = "foo"; - o.forecastingUrl = buildUnnamed714(); - o.impressionUrl = buildUnnamed715(); + o.forecastingUrl = buildUnnamed738(); + o.impressionUrl = buildUnnamed739(); o.videoId = "foo"; } buildCounterActivityContentDetailsPromotedItem--; @@ -325,8 +325,8 @@ unittest.expect(o.customCtaButtonText, unittest.equals('foo')); unittest.expect(o.descriptionText, unittest.equals('foo')); unittest.expect(o.destinationUrl, unittest.equals('foo')); - checkUnnamed714(o.forecastingUrl); - checkUnnamed715(o.impressionUrl); + checkUnnamed738(o.forecastingUrl); + checkUnnamed739(o.impressionUrl); unittest.expect(o.videoId, unittest.equals('foo')); } buildCounterActivityContentDetailsPromotedItem--; @@ -420,14 +420,14 @@ buildCounterActivityContentDetailsUpload--; } -buildUnnamed716() { +buildUnnamed740() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed716(core.List<api.Activity> o) { +checkUnnamed740(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -440,7 +440,7 @@ if (buildCounterActivityListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed716(); + o.items = buildUnnamed740(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -457,7 +457,7 @@ if (buildCounterActivityListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed716(o.items); + checkUnnamed740(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -526,14 +526,14 @@ buildCounterCaption--; } -buildUnnamed717() { +buildUnnamed741() { var o = new core.List<api.Caption>(); o.add(buildCaption()); o.add(buildCaption()); return o; } -checkUnnamed717(core.List<api.Caption> o) { +checkUnnamed741(core.List<api.Caption> o) { unittest.expect(o, unittest.hasLength(2)); checkCaption(o[0]); checkCaption(o[1]); @@ -546,7 +546,7 @@ if (buildCounterCaptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed717(); + o.items = buildUnnamed741(); o.kind = "foo"; o.visitorId = "foo"; } @@ -559,7 +559,7 @@ if (buildCounterCaptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed717(o.items); + checkUnnamed741(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -636,14 +636,14 @@ buildCounterCdnSettings--; } -buildUnnamed718() { +buildUnnamed742() { var o = new core.Map<core.String, api.ChannelLocalization>(); o["x"] = buildChannelLocalization(); o["y"] = buildChannelLocalization(); return o; } -checkUnnamed718(core.Map<core.String, api.ChannelLocalization> o) { +checkUnnamed742(core.Map<core.String, api.ChannelLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelLocalization(o["x"]); checkChannelLocalization(o["y"]); @@ -663,7 +663,7 @@ o.id = "foo"; o.invideoPromotion = buildInvideoPromotion(); o.kind = "foo"; - o.localizations = buildUnnamed718(); + o.localizations = buildUnnamed742(); o.snippet = buildChannelSnippet(); o.statistics = buildChannelStatistics(); o.status = buildChannelStatus(); @@ -685,7 +685,7 @@ unittest.expect(o.id, unittest.equals('foo')); checkInvideoPromotion(o.invideoPromotion); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed718(o.localizations); + checkUnnamed742(o.localizations); checkChannelSnippet(o.snippet); checkChannelStatistics(o.statistics); checkChannelStatus(o.status); @@ -742,14 +742,14 @@ buildCounterChannelBannerResource--; } -buildUnnamed719() { +buildUnnamed743() { var o = new core.List<api.PropertyValue>(); o.add(buildPropertyValue()); o.add(buildPropertyValue()); return o; } -checkUnnamed719(core.List<api.PropertyValue> o) { +checkUnnamed743(core.List<api.PropertyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyValue(o[0]); checkPropertyValue(o[1]); @@ -761,7 +761,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { o.channel = buildChannelSettings(); - o.hints = buildUnnamed719(); + o.hints = buildUnnamed743(); o.image = buildImageSettings(); o.watch = buildWatchSettings(); } @@ -773,7 +773,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { checkChannelSettings(o.channel); - checkUnnamed719(o.hints); + checkUnnamed743(o.hints); checkImageSettings(o.image); checkWatchSettings(o.watch); } @@ -812,7 +812,6 @@ var o = new api.ChannelContentDetails(); buildCounterChannelContentDetails++; if (buildCounterChannelContentDetails < 3) { - o.googlePlusUserId = "foo"; o.relatedPlaylists = buildChannelContentDetailsRelatedPlaylists(); } buildCounterChannelContentDetails--; @@ -822,7 +821,6 @@ checkChannelContentDetails(api.ChannelContentDetails o) { buildCounterChannelContentDetails++; if (buildCounterChannelContentDetails < 3) { - unittest.expect(o.googlePlusUserId, unittest.equals('foo')); checkChannelContentDetailsRelatedPlaylists(o.relatedPlaylists); } buildCounterChannelContentDetails--; @@ -870,14 +868,14 @@ buildCounterChannelConversionPing--; } -buildUnnamed720() { +buildUnnamed744() { var o = new core.List<api.ChannelConversionPing>(); o.add(buildChannelConversionPing()); o.add(buildChannelConversionPing()); return o; } -checkUnnamed720(core.List<api.ChannelConversionPing> o) { +checkUnnamed744(core.List<api.ChannelConversionPing> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelConversionPing(o[0]); checkChannelConversionPing(o[1]); @@ -888,7 +886,7 @@ var o = new api.ChannelConversionPings(); buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - o.pings = buildUnnamed720(); + o.pings = buildUnnamed744(); } buildCounterChannelConversionPings--; return o; @@ -897,19 +895,19 @@ checkChannelConversionPings(api.ChannelConversionPings o) { buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - checkUnnamed720(o.pings); + checkUnnamed744(o.pings); } buildCounterChannelConversionPings--; } -buildUnnamed721() { +buildUnnamed745() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed721(core.List<api.Channel> o) { +checkUnnamed745(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -922,7 +920,7 @@ if (buildCounterChannelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed721(); + o.items = buildUnnamed745(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -939,7 +937,7 @@ if (buildCounterChannelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed721(o.items); + checkUnnamed745(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -996,14 +994,14 @@ buildCounterChannelProfileDetails--; } -buildUnnamed722() { +buildUnnamed746() { var o = new core.Map<core.String, api.ChannelSectionLocalization>(); o["x"] = buildChannelSectionLocalization(); o["y"] = buildChannelSectionLocalization(); return o; } -checkUnnamed722(core.Map<core.String, api.ChannelSectionLocalization> o) { +checkUnnamed746(core.Map<core.String, api.ChannelSectionLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSectionLocalization(o["x"]); checkChannelSectionLocalization(o["y"]); @@ -1018,7 +1016,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed722(); + o.localizations = buildUnnamed746(); o.snippet = buildChannelSectionSnippet(); o.targeting = buildChannelSectionTargeting(); } @@ -1033,34 +1031,34 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed722(o.localizations); + checkUnnamed746(o.localizations); checkChannelSectionSnippet(o.snippet); checkChannelSectionTargeting(o.targeting); } buildCounterChannelSection--; } -buildUnnamed723() { +buildUnnamed747() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed723(core.List<core.String> o) { +checkUnnamed747(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed724() { +buildUnnamed748() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed724(core.List<core.String> o) { +checkUnnamed748(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1071,8 +1069,8 @@ var o = new api.ChannelSectionContentDetails(); buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - o.channels = buildUnnamed723(); - o.playlists = buildUnnamed724(); + o.channels = buildUnnamed747(); + o.playlists = buildUnnamed748(); } buildCounterChannelSectionContentDetails--; return o; @@ -1081,20 +1079,20 @@ checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - checkUnnamed723(o.channels); - checkUnnamed724(o.playlists); + checkUnnamed747(o.channels); + checkUnnamed748(o.playlists); } buildCounterChannelSectionContentDetails--; } -buildUnnamed725() { +buildUnnamed749() { var o = new core.List<api.ChannelSection>(); o.add(buildChannelSection()); o.add(buildChannelSection()); return o; } -checkUnnamed725(core.List<api.ChannelSection> o) { +checkUnnamed749(core.List<api.ChannelSection> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSection(o[0]); checkChannelSection(o[1]); @@ -1107,7 +1105,7 @@ if (buildCounterChannelSectionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed725(); + o.items = buildUnnamed749(); o.kind = "foo"; o.visitorId = "foo"; } @@ -1120,7 +1118,7 @@ if (buildCounterChannelSectionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed725(o.items); + checkUnnamed749(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -1177,40 +1175,40 @@ buildCounterChannelSectionSnippet--; } -buildUnnamed726() { +buildUnnamed750() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed726(core.List<core.String> o) { +checkUnnamed750(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed727() { +buildUnnamed751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed727(core.List<core.String> o) { +checkUnnamed751(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed728() { +buildUnnamed752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed728(core.List<core.String> o) { +checkUnnamed752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1221,9 +1219,9 @@ var o = new api.ChannelSectionTargeting(); buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - o.countries = buildUnnamed726(); - o.languages = buildUnnamed727(); - o.regions = buildUnnamed728(); + o.countries = buildUnnamed750(); + o.languages = buildUnnamed751(); + o.regions = buildUnnamed752(); } buildCounterChannelSectionTargeting--; return o; @@ -1232,21 +1230,21 @@ checkChannelSectionTargeting(api.ChannelSectionTargeting o) { buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - checkUnnamed726(o.countries); - checkUnnamed727(o.languages); - checkUnnamed728(o.regions); + checkUnnamed750(o.countries); + checkUnnamed751(o.languages); + checkUnnamed752(o.regions); } buildCounterChannelSectionTargeting--; } -buildUnnamed729() { +buildUnnamed753() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed729(core.List<core.String> o) { +checkUnnamed753(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1262,7 +1260,7 @@ o.defaultTab = "foo"; o.description = "foo"; o.featuredChannelsTitle = "foo"; - o.featuredChannelsUrls = buildUnnamed729(); + o.featuredChannelsUrls = buildUnnamed753(); o.keywords = "foo"; o.moderateComments = true; o.profileColor = "foo"; @@ -1284,7 +1282,7 @@ unittest.expect(o.defaultTab, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); - checkUnnamed729(o.featuredChannelsUrls); + checkUnnamed753(o.featuredChannelsUrls); unittest.expect(o.keywords, unittest.equals('foo')); unittest.expect(o.moderateComments, unittest.isTrue); unittest.expect(o.profileColor, unittest.equals('foo')); @@ -1380,14 +1378,14 @@ buildCounterChannelStatus--; } -buildUnnamed730() { +buildUnnamed754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed730(core.List<core.String> o) { +checkUnnamed754(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1398,7 +1396,7 @@ var o = new api.ChannelTopicDetails(); buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - o.topicIds = buildUnnamed730(); + o.topicIds = buildUnnamed754(); } buildCounterChannelTopicDetails--; return o; @@ -1407,7 +1405,7 @@ checkChannelTopicDetails(api.ChannelTopicDetails o) { buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - checkUnnamed730(o.topicIds); + checkUnnamed754(o.topicIds); } buildCounterChannelTopicDetails--; } @@ -1437,14 +1435,14 @@ buildCounterComment--; } -buildUnnamed731() { +buildUnnamed755() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed731(core.List<api.Comment> o) { +checkUnnamed755(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1457,7 +1455,7 @@ if (buildCounterCommentListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed731(); + o.items = buildUnnamed755(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1473,7 +1471,7 @@ if (buildCounterCommentListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed731(o.items); + checkUnnamed755(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1491,7 +1489,6 @@ o.authorChannelId = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.authorChannelUrl = "foo"; o.authorDisplayName = "foo"; - o.authorGoogleplusProfileUrl = "foo"; o.authorProfileImageUrl = "foo"; o.canRate = true; o.channelId = "foo"; @@ -1515,7 +1512,6 @@ var casted1 = (o.authorChannelId) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); unittest.expect(o.authorChannelUrl, unittest.equals('foo')); unittest.expect(o.authorDisplayName, unittest.equals('foo')); - unittest.expect(o.authorGoogleplusProfileUrl, unittest.equals('foo')); unittest.expect(o.authorProfileImageUrl, unittest.equals('foo')); unittest.expect(o.canRate, unittest.isTrue); unittest.expect(o.channelId, unittest.equals('foo')); @@ -1559,14 +1555,14 @@ buildCounterCommentThread--; } -buildUnnamed732() { +buildUnnamed756() { var o = new core.List<api.CommentThread>(); o.add(buildCommentThread()); o.add(buildCommentThread()); return o; } -checkUnnamed732(core.List<api.CommentThread> o) { +checkUnnamed756(core.List<api.CommentThread> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentThread(o[0]); checkCommentThread(o[1]); @@ -1579,7 +1575,7 @@ if (buildCounterCommentThreadListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed732(); + o.items = buildUnnamed756(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1595,7 +1591,7 @@ if (buildCounterCommentThreadListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed732(o.items); + checkUnnamed756(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1605,14 +1601,14 @@ buildCounterCommentThreadListResponse--; } -buildUnnamed733() { +buildUnnamed757() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed733(core.List<api.Comment> o) { +checkUnnamed757(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1623,7 +1619,7 @@ var o = new api.CommentThreadReplies(); buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - o.comments = buildUnnamed733(); + o.comments = buildUnnamed757(); } buildCounterCommentThreadReplies--; return o; @@ -1632,7 +1628,7 @@ checkCommentThreadReplies(api.CommentThreadReplies o) { buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - checkUnnamed733(o.comments); + checkUnnamed757(o.comments); } buildCounterCommentThreadReplies--; } @@ -1666,27 +1662,27 @@ buildCounterCommentThreadSnippet--; } -buildUnnamed734() { +buildUnnamed758() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed734(core.List<core.String> o) { +checkUnnamed758(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed735() { +buildUnnamed759() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed735(core.List<core.String> o) { +checkUnnamed759(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1717,7 +1713,7 @@ o.cscfRating = "foo"; o.czfilmRating = "foo"; o.djctqRating = "foo"; - o.djctqRatingReasons = buildUnnamed734(); + o.djctqRatingReasons = buildUnnamed758(); o.ecbmctRating = "foo"; o.eefilmRating = "foo"; o.egfilmRating = "foo"; @@ -1726,7 +1722,7 @@ o.fcoRating = "foo"; o.fmocRating = "foo"; o.fpbRating = "foo"; - o.fpbRatingReasons = buildUnnamed735(); + o.fpbRatingReasons = buildUnnamed759(); o.fskRating = "foo"; o.grfilmRating = "foo"; o.icaaRating = "foo"; @@ -1792,7 +1788,7 @@ unittest.expect(o.cscfRating, unittest.equals('foo')); unittest.expect(o.czfilmRating, unittest.equals('foo')); unittest.expect(o.djctqRating, unittest.equals('foo')); - checkUnnamed734(o.djctqRatingReasons); + checkUnnamed758(o.djctqRatingReasons); unittest.expect(o.ecbmctRating, unittest.equals('foo')); unittest.expect(o.eefilmRating, unittest.equals('foo')); unittest.expect(o.egfilmRating, unittest.equals('foo')); @@ -1801,7 +1797,7 @@ unittest.expect(o.fcoRating, unittest.equals('foo')); unittest.expect(o.fmocRating, unittest.equals('foo')); unittest.expect(o.fpbRating, unittest.equals('foo')); - checkUnnamed735(o.fpbRatingReasons); + checkUnnamed759(o.fpbRatingReasons); unittest.expect(o.fskRating, unittest.equals('foo')); unittest.expect(o.grfilmRating, unittest.equals('foo')); unittest.expect(o.icaaRating, unittest.equals('foo')); @@ -1868,14 +1864,14 @@ buildCounterFanFundingEvent--; } -buildUnnamed736() { +buildUnnamed760() { var o = new core.List<api.FanFundingEvent>(); o.add(buildFanFundingEvent()); o.add(buildFanFundingEvent()); return o; } -checkUnnamed736(core.List<api.FanFundingEvent> o) { +checkUnnamed760(core.List<api.FanFundingEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkFanFundingEvent(o[0]); checkFanFundingEvent(o[1]); @@ -1888,7 +1884,7 @@ if (buildCounterFanFundingEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed736(); + o.items = buildUnnamed760(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1904,7 +1900,7 @@ if (buildCounterFanFundingEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed736(o.items); + checkUnnamed760(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1993,14 +1989,14 @@ buildCounterGuideCategory--; } -buildUnnamed737() { +buildUnnamed761() { var o = new core.List<api.GuideCategory>(); o.add(buildGuideCategory()); o.add(buildGuideCategory()); return o; } -checkUnnamed737(core.List<api.GuideCategory> o) { +checkUnnamed761(core.List<api.GuideCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkGuideCategory(o[0]); checkGuideCategory(o[1]); @@ -2013,7 +2009,7 @@ if (buildCounterGuideCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed737(); + o.items = buildUnnamed761(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2030,7 +2026,7 @@ if (buildCounterGuideCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed737(o.items); + checkUnnamed761(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2087,14 +2083,14 @@ buildCounterI18nLanguage--; } -buildUnnamed738() { +buildUnnamed762() { var o = new core.List<api.I18nLanguage>(); o.add(buildI18nLanguage()); o.add(buildI18nLanguage()); return o; } -checkUnnamed738(core.List<api.I18nLanguage> o) { +checkUnnamed762(core.List<api.I18nLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nLanguage(o[0]); checkI18nLanguage(o[1]); @@ -2107,7 +2103,7 @@ if (buildCounterI18nLanguageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed738(); + o.items = buildUnnamed762(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2120,7 +2116,7 @@ if (buildCounterI18nLanguageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed738(o.items); + checkUnnamed762(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2173,14 +2169,14 @@ buildCounterI18nRegion--; } -buildUnnamed739() { +buildUnnamed763() { var o = new core.List<api.I18nRegion>(); o.add(buildI18nRegion()); o.add(buildI18nRegion()); return o; } -checkUnnamed739(core.List<api.I18nRegion> o) { +checkUnnamed763(core.List<api.I18nRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nRegion(o[0]); checkI18nRegion(o[1]); @@ -2193,7 +2189,7 @@ if (buildCounterI18nRegionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed739(); + o.items = buildUnnamed763(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2206,7 +2202,7 @@ if (buildCounterI18nRegionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed739(o.items); + checkUnnamed763(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2366,14 +2362,14 @@ buildCounterInvideoPosition--; } -buildUnnamed740() { +buildUnnamed764() { var o = new core.List<api.PromotedItem>(); o.add(buildPromotedItem()); o.add(buildPromotedItem()); return o; } -checkUnnamed740(core.List<api.PromotedItem> o) { +checkUnnamed764(core.List<api.PromotedItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotedItem(o[0]); checkPromotedItem(o[1]); @@ -2385,7 +2381,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { o.defaultTiming = buildInvideoTiming(); - o.items = buildUnnamed740(); + o.items = buildUnnamed764(); o.position = buildInvideoPosition(); o.useSmartTiming = true; } @@ -2397,7 +2393,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { checkInvideoTiming(o.defaultTiming); - checkUnnamed740(o.items); + checkUnnamed764(o.items); checkInvideoPosition(o.position); unittest.expect(o.useSmartTiming, unittest.isTrue); } @@ -2520,14 +2516,14 @@ buildCounterLiveBroadcastContentDetails--; } -buildUnnamed741() { +buildUnnamed765() { var o = new core.List<api.LiveBroadcast>(); o.add(buildLiveBroadcast()); o.add(buildLiveBroadcast()); return o; } -checkUnnamed741(core.List<api.LiveBroadcast> o) { +checkUnnamed765(core.List<api.LiveBroadcast> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcast(o[0]); checkLiveBroadcast(o[1]); @@ -2540,7 +2536,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed741(); + o.items = buildUnnamed765(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2557,7 +2553,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed741(o.items); + checkUnnamed765(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2676,14 +2672,14 @@ buildCounterLiveBroadcastTopic--; } -buildUnnamed742() { +buildUnnamed766() { var o = new core.List<api.LiveBroadcastTopic>(); o.add(buildLiveBroadcastTopic()); o.add(buildLiveBroadcastTopic()); return o; } -checkUnnamed742(core.List<api.LiveBroadcastTopic> o) { +checkUnnamed766(core.List<api.LiveBroadcastTopic> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcastTopic(o[0]); checkLiveBroadcastTopic(o[1]); @@ -2694,7 +2690,7 @@ var o = new api.LiveBroadcastTopicDetails(); buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - o.topics = buildUnnamed742(); + o.topics = buildUnnamed766(); } buildCounterLiveBroadcastTopicDetails--; return o; @@ -2703,7 +2699,7 @@ checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) { buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - checkUnnamed742(o.topics); + checkUnnamed766(o.topics); } buildCounterLiveBroadcastTopicDetails--; } @@ -2883,14 +2879,14 @@ buildCounterLiveChatMessageDeletedDetails--; } -buildUnnamed743() { +buildUnnamed767() { var o = new core.List<api.LiveChatMessage>(); o.add(buildLiveChatMessage()); o.add(buildLiveChatMessage()); return o; } -checkUnnamed743(core.List<api.LiveChatMessage> o) { +checkUnnamed767(core.List<api.LiveChatMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatMessage(o[0]); checkLiveChatMessage(o[1]); @@ -2903,7 +2899,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed743(); + o.items = buildUnnamed767(); o.kind = "foo"; o.nextPageToken = "foo"; o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2921,7 +2917,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed743(o.items); + checkUnnamed767(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.offlineAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3024,14 +3020,14 @@ buildCounterLiveChatModerator--; } -buildUnnamed744() { +buildUnnamed768() { var o = new core.List<api.LiveChatModerator>(); o.add(buildLiveChatModerator()); o.add(buildLiveChatModerator()); return o; } -checkUnnamed744(core.List<api.LiveChatModerator> o) { +checkUnnamed768(core.List<api.LiveChatModerator> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatModerator(o[0]); checkLiveChatModerator(o[1]); @@ -3044,7 +3040,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed744(); + o.items = buildUnnamed768(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3061,7 +3057,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed744(o.items); + checkUnnamed768(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3112,14 +3108,14 @@ buildCounterLiveChatPollClosedDetails--; } -buildUnnamed745() { +buildUnnamed769() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed745(core.List<api.LiveChatPollItem> o) { +checkUnnamed769(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3131,7 +3127,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed745(); + o.items = buildUnnamed769(); o.prompt = "foo"; } buildCounterLiveChatPollEditedDetails--; @@ -3142,7 +3138,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed745(o.items); + checkUnnamed769(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollEditedDetails--; @@ -3169,14 +3165,14 @@ buildCounterLiveChatPollItem--; } -buildUnnamed746() { +buildUnnamed770() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed746(core.List<api.LiveChatPollItem> o) { +checkUnnamed770(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3188,7 +3184,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed746(); + o.items = buildUnnamed770(); o.prompt = "foo"; } buildCounterLiveChatPollOpenedDetails--; @@ -3199,7 +3195,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed746(o.items); + checkUnnamed770(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollOpenedDetails--; @@ -3345,14 +3341,14 @@ buildCounterLiveStreamContentDetails--; } -buildUnnamed747() { +buildUnnamed771() { var o = new core.List<api.LiveStreamConfigurationIssue>(); o.add(buildLiveStreamConfigurationIssue()); o.add(buildLiveStreamConfigurationIssue()); return o; } -checkUnnamed747(core.List<api.LiveStreamConfigurationIssue> o) { +checkUnnamed771(core.List<api.LiveStreamConfigurationIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStreamConfigurationIssue(o[0]); checkLiveStreamConfigurationIssue(o[1]); @@ -3363,7 +3359,7 @@ var o = new api.LiveStreamHealthStatus(); buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - o.configurationIssues = buildUnnamed747(); + o.configurationIssues = buildUnnamed771(); o.lastUpdateTimeSeconds = "foo"; o.status = "foo"; } @@ -3374,21 +3370,21 @@ checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - checkUnnamed747(o.configurationIssues); + checkUnnamed771(o.configurationIssues); unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterLiveStreamHealthStatus--; } -buildUnnamed748() { +buildUnnamed772() { var o = new core.List<api.LiveStream>(); o.add(buildLiveStream()); o.add(buildLiveStream()); return o; } -checkUnnamed748(core.List<api.LiveStream> o) { +checkUnnamed772(core.List<api.LiveStream> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStream(o[0]); checkLiveStream(o[1]); @@ -3401,7 +3397,7 @@ if (buildCounterLiveStreamListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed748(); + o.items = buildUnnamed772(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3418,7 +3414,7 @@ if (buildCounterLiveStreamListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed748(o.items); + checkUnnamed772(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3477,14 +3473,14 @@ buildCounterLiveStreamStatus--; } -buildUnnamed749() { +buildUnnamed773() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed749(core.List<api.LocalizedString> o) { +checkUnnamed773(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -3497,7 +3493,7 @@ if (buildCounterLocalizedProperty < 3) { o.default_ = "foo"; o.defaultLanguage = buildLanguageTag(); - o.localized = buildUnnamed749(); + o.localized = buildUnnamed773(); } buildCounterLocalizedProperty--; return o; @@ -3508,7 +3504,7 @@ if (buildCounterLocalizedProperty < 3) { unittest.expect(o.default_, unittest.equals('foo')); checkLanguageTag(o.defaultLanguage); - checkUnnamed749(o.localized); + checkUnnamed773(o.localized); } buildCounterLocalizedProperty--; } @@ -3578,14 +3574,14 @@ buildCounterPageInfo--; } -buildUnnamed750() { +buildUnnamed774() { var o = new core.Map<core.String, api.PlaylistLocalization>(); o["x"] = buildPlaylistLocalization(); o["y"] = buildPlaylistLocalization(); return o; } -checkUnnamed750(core.Map<core.String, api.PlaylistLocalization> o) { +checkUnnamed774(core.Map<core.String, api.PlaylistLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistLocalization(o["x"]); checkPlaylistLocalization(o["y"]); @@ -3600,7 +3596,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed750(); + o.localizations = buildUnnamed774(); o.player = buildPlaylistPlayer(); o.snippet = buildPlaylistSnippet(); o.status = buildPlaylistStatus(); @@ -3616,7 +3612,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed750(o.localizations); + checkUnnamed774(o.localizations); checkPlaylistPlayer(o.player); checkPlaylistSnippet(o.snippet); checkPlaylistStatus(o.status); @@ -3697,14 +3693,14 @@ buildCounterPlaylistItemContentDetails--; } -buildUnnamed751() { +buildUnnamed775() { var o = new core.List<api.PlaylistItem>(); o.add(buildPlaylistItem()); o.add(buildPlaylistItem()); return o; } -checkUnnamed751(core.List<api.PlaylistItem> o) { +checkUnnamed775(core.List<api.PlaylistItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistItem(o[0]); checkPlaylistItem(o[1]); @@ -3717,7 +3713,7 @@ if (buildCounterPlaylistItemListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed751(); + o.items = buildUnnamed775(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3734,7 +3730,7 @@ if (buildCounterPlaylistItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed751(o.items); + checkUnnamed775(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3799,14 +3795,14 @@ buildCounterPlaylistItemStatus--; } -buildUnnamed752() { +buildUnnamed776() { var o = new core.List<api.Playlist>(); o.add(buildPlaylist()); o.add(buildPlaylist()); return o; } -checkUnnamed752(core.List<api.Playlist> o) { +checkUnnamed776(core.List<api.Playlist> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylist(o[0]); checkPlaylist(o[1]); @@ -3819,7 +3815,7 @@ if (buildCounterPlaylistListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed752(); + o.items = buildUnnamed776(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3836,7 +3832,7 @@ if (buildCounterPlaylistListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed752(o.items); + checkUnnamed776(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3887,14 +3883,14 @@ buildCounterPlaylistPlayer--; } -buildUnnamed753() { +buildUnnamed777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed753(core.List<core.String> o) { +checkUnnamed777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3911,7 +3907,7 @@ o.description = "foo"; o.localized = buildPlaylistLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed753(); + o.tags = buildUnnamed777(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -3928,7 +3924,7 @@ unittest.expect(o.description, unittest.equals('foo')); checkPlaylistLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed753(o.tags); + checkUnnamed777(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4050,14 +4046,14 @@ buildCounterResourceId--; } -buildUnnamed754() { +buildUnnamed778() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed754(core.List<api.SearchResult> o) { +checkUnnamed778(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -4070,7 +4066,7 @@ if (buildCounterSearchListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed754(); + o.items = buildUnnamed778(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4088,7 +4084,7 @@ if (buildCounterSearchListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed754(o.items); + checkUnnamed778(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4181,14 +4177,14 @@ buildCounterSponsor--; } -buildUnnamed755() { +buildUnnamed779() { var o = new core.List<api.Sponsor>(); o.add(buildSponsor()); o.add(buildSponsor()); return o; } -checkUnnamed755(core.List<api.Sponsor> o) { +checkUnnamed779(core.List<api.Sponsor> o) { unittest.expect(o, unittest.hasLength(2)); checkSponsor(o[0]); checkSponsor(o[1]); @@ -4201,7 +4197,7 @@ if (buildCounterSponsorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed755(); + o.items = buildUnnamed779(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4217,7 +4213,7 @@ if (buildCounterSponsorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed755(o.items); + checkUnnamed779(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4302,14 +4298,14 @@ buildCounterSubscriptionContentDetails--; } -buildUnnamed756() { +buildUnnamed780() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed756(core.List<api.Subscription> o) { +checkUnnamed780(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -4322,7 +4318,7 @@ if (buildCounterSubscriptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed756(); + o.items = buildUnnamed780(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4339,7 +4335,7 @@ if (buildCounterSubscriptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed756(o.items); + checkUnnamed780(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4456,14 +4452,14 @@ buildCounterThumbnailDetails--; } -buildUnnamed757() { +buildUnnamed781() { var o = new core.List<api.ThumbnailDetails>(); o.add(buildThumbnailDetails()); o.add(buildThumbnailDetails()); return o; } -checkUnnamed757(core.List<api.ThumbnailDetails> o) { +checkUnnamed781(core.List<api.ThumbnailDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkThumbnailDetails(o[0]); checkThumbnailDetails(o[1]); @@ -4476,7 +4472,7 @@ if (buildCounterThumbnailSetResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed757(); + o.items = buildUnnamed781(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4489,7 +4485,7 @@ if (buildCounterThumbnailSetResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed757(o.items); + checkUnnamed781(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -4513,14 +4509,14 @@ buildCounterTokenPagination--; } -buildUnnamed758() { +buildUnnamed782() { var o = new core.Map<core.String, api.VideoLocalization>(); o["x"] = buildVideoLocalization(); o["y"] = buildVideoLocalization(); return o; } -checkUnnamed758(core.Map<core.String, api.VideoLocalization> o) { +checkUnnamed782(core.Map<core.String, api.VideoLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoLocalization(o["x"]); checkVideoLocalization(o["y"]); @@ -4538,7 +4534,7 @@ o.id = "foo"; o.kind = "foo"; o.liveStreamingDetails = buildVideoLiveStreamingDetails(); - o.localizations = buildUnnamed758(); + o.localizations = buildUnnamed782(); o.monetizationDetails = buildVideoMonetizationDetails(); o.player = buildVideoPlayer(); o.processingDetails = buildVideoProcessingDetails(); @@ -4564,7 +4560,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkVideoLiveStreamingDetails(o.liveStreamingDetails); - checkUnnamed758(o.localizations); + checkUnnamed782(o.localizations); checkVideoMonetizationDetails(o.monetizationDetails); checkVideoPlayer(o.player); checkVideoProcessingDetails(o.processingDetails); @@ -4631,14 +4627,14 @@ buildCounterVideoAbuseReportReason--; } -buildUnnamed759() { +buildUnnamed783() { var o = new core.List<api.VideoAbuseReportReason>(); o.add(buildVideoAbuseReportReason()); o.add(buildVideoAbuseReportReason()); return o; } -checkUnnamed759(core.List<api.VideoAbuseReportReason> o) { +checkUnnamed783(core.List<api.VideoAbuseReportReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportReason(o[0]); checkVideoAbuseReportReason(o[1]); @@ -4651,7 +4647,7 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed759(); + o.items = buildUnnamed783(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4664,21 +4660,21 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed759(o.items); + checkUnnamed783(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoAbuseReportReasonListResponse--; } -buildUnnamed760() { +buildUnnamed784() { var o = new core.List<api.VideoAbuseReportSecondaryReason>(); o.add(buildVideoAbuseReportSecondaryReason()); o.add(buildVideoAbuseReportSecondaryReason()); return o; } -checkUnnamed760(core.List<api.VideoAbuseReportSecondaryReason> o) { +checkUnnamed784(core.List<api.VideoAbuseReportSecondaryReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportSecondaryReason(o[0]); checkVideoAbuseReportSecondaryReason(o[1]); @@ -4690,7 +4686,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { o.label = "foo"; - o.secondaryReasons = buildUnnamed760(); + o.secondaryReasons = buildUnnamed784(); } buildCounterVideoAbuseReportReasonSnippet--; return o; @@ -4700,7 +4696,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { unittest.expect(o.label, unittest.equals('foo')); - checkUnnamed760(o.secondaryReasons); + checkUnnamed784(o.secondaryReasons); } buildCounterVideoAbuseReportReasonSnippet--; } @@ -4774,14 +4770,14 @@ buildCounterVideoCategory--; } -buildUnnamed761() { +buildUnnamed785() { var o = new core.List<api.VideoCategory>(); o.add(buildVideoCategory()); o.add(buildVideoCategory()); return o; } -checkUnnamed761(core.List<api.VideoCategory> o) { +checkUnnamed785(core.List<api.VideoCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoCategory(o[0]); checkVideoCategory(o[1]); @@ -4794,7 +4790,7 @@ if (buildCounterVideoCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed761(); + o.items = buildUnnamed785(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4811,7 +4807,7 @@ if (buildCounterVideoCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed761(o.items); + checkUnnamed785(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4856,6 +4852,7 @@ o.definition = "foo"; o.dimension = "foo"; o.duration = "foo"; + o.hasCustomThumbnail = true; o.licensedContent = true; o.projection = "foo"; o.regionRestriction = buildVideoContentDetailsRegionRestriction(); @@ -4873,6 +4870,7 @@ unittest.expect(o.definition, unittest.equals('foo')); unittest.expect(o.dimension, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals('foo')); + unittest.expect(o.hasCustomThumbnail, unittest.isTrue); unittest.expect(o.licensedContent, unittest.isTrue); unittest.expect(o.projection, unittest.equals('foo')); checkVideoContentDetailsRegionRestriction(o.regionRestriction); @@ -4880,27 +4878,27 @@ buildCounterVideoContentDetails--; } -buildUnnamed762() { +buildUnnamed786() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed762(core.List<core.String> o) { +checkUnnamed786(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed763() { +buildUnnamed787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed763(core.List<core.String> o) { +checkUnnamed787(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4911,8 +4909,8 @@ var o = new api.VideoContentDetailsRegionRestriction(); buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - o.allowed = buildUnnamed762(); - o.blocked = buildUnnamed763(); + o.allowed = buildUnnamed786(); + o.blocked = buildUnnamed787(); } buildCounterVideoContentDetailsRegionRestriction--; return o; @@ -4921,33 +4919,33 @@ checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestriction o) { buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - checkUnnamed762(o.allowed); - checkUnnamed763(o.blocked); + checkUnnamed786(o.allowed); + checkUnnamed787(o.blocked); } buildCounterVideoContentDetailsRegionRestriction--; } -buildUnnamed764() { +buildUnnamed788() { var o = new core.List<api.VideoFileDetailsAudioStream>(); o.add(buildVideoFileDetailsAudioStream()); o.add(buildVideoFileDetailsAudioStream()); return o; } -checkUnnamed764(core.List<api.VideoFileDetailsAudioStream> o) { +checkUnnamed788(core.List<api.VideoFileDetailsAudioStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsAudioStream(o[0]); checkVideoFileDetailsAudioStream(o[1]); } -buildUnnamed765() { +buildUnnamed789() { var o = new core.List<api.VideoFileDetailsVideoStream>(); o.add(buildVideoFileDetailsVideoStream()); o.add(buildVideoFileDetailsVideoStream()); return o; } -checkUnnamed765(core.List<api.VideoFileDetailsVideoStream> o) { +checkUnnamed789(core.List<api.VideoFileDetailsVideoStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsVideoStream(o[0]); checkVideoFileDetailsVideoStream(o[1]); @@ -4958,7 +4956,7 @@ var o = new api.VideoFileDetails(); buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - o.audioStreams = buildUnnamed764(); + o.audioStreams = buildUnnamed788(); o.bitrateBps = "foo"; o.container = "foo"; o.creationTime = "foo"; @@ -4966,8 +4964,7 @@ o.fileName = "foo"; o.fileSize = "foo"; o.fileType = "foo"; - o.recordingLocation = buildGeoPoint(); - o.videoStreams = buildUnnamed765(); + o.videoStreams = buildUnnamed789(); } buildCounterVideoFileDetails--; return o; @@ -4976,7 +4973,7 @@ checkVideoFileDetails(api.VideoFileDetails o) { buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - checkUnnamed764(o.audioStreams); + checkUnnamed788(o.audioStreams); unittest.expect(o.bitrateBps, unittest.equals('foo')); unittest.expect(o.container, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); @@ -4984,8 +4981,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.fileType, unittest.equals('foo')); - checkGeoPoint(o.recordingLocation); - checkUnnamed765(o.videoStreams); + checkUnnamed789(o.videoStreams); } buildCounterVideoFileDetails--; } @@ -5048,14 +5044,14 @@ buildCounterVideoFileDetailsVideoStream--; } -buildUnnamed766() { +buildUnnamed790() { var o = new core.List<api.VideoRating>(); o.add(buildVideoRating()); o.add(buildVideoRating()); return o; } -checkUnnamed766(core.List<api.VideoRating> o) { +checkUnnamed790(core.List<api.VideoRating> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoRating(o[0]); checkVideoRating(o[1]); @@ -5068,7 +5064,7 @@ if (buildCounterVideoGetRatingResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed766(); + o.items = buildUnnamed790(); o.kind = "foo"; o.visitorId = "foo"; } @@ -5081,21 +5077,21 @@ if (buildCounterVideoGetRatingResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed766(o.items); + checkUnnamed790(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoGetRatingResponse--; } -buildUnnamed767() { +buildUnnamed791() { var o = new core.List<api.Video>(); o.add(buildVideo()); o.add(buildVideo()); return o; } -checkUnnamed767(core.List<api.Video> o) { +checkUnnamed791(core.List<api.Video> o) { unittest.expect(o, unittest.hasLength(2)); checkVideo(o[0]); checkVideo(o[1]); @@ -5108,7 +5104,7 @@ if (buildCounterVideoListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed767(); + o.items = buildUnnamed791(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5125,7 +5121,7 @@ if (buildCounterVideoListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed767(o.items); + checkUnnamed791(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5210,7 +5206,9 @@ var o = new api.VideoPlayer(); buildCounterVideoPlayer++; if (buildCounterVideoPlayer < 3) { + o.embedHeight = "foo"; o.embedHtml = "foo"; + o.embedWidth = "foo"; } buildCounterVideoPlayer--; return o; @@ -5219,7 +5217,9 @@ checkVideoPlayer(api.VideoPlayer o) { buildCounterVideoPlayer++; if (buildCounterVideoPlayer < 3) { + unittest.expect(o.embedHeight, unittest.equals('foo')); unittest.expect(o.embedHtml, unittest.equals('foo')); + unittest.expect(o.embedWidth, unittest.equals('foo')); } buildCounterVideoPlayer--; } @@ -5280,14 +5280,14 @@ buildCounterVideoProcessingDetailsProcessingProgress--; } -buildUnnamed768() { +buildUnnamed792() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed768(core.List<core.String> o) { +checkUnnamed792(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5298,7 +5298,7 @@ var o = new api.VideoProjectDetails(); buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - o.tags = buildUnnamed768(); + o.tags = buildUnnamed792(); } buildCounterVideoProjectDetails--; return o; @@ -5307,7 +5307,7 @@ checkVideoProjectDetails(api.VideoProjectDetails o) { buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - checkUnnamed768(o.tags); + checkUnnamed792(o.tags); } buildCounterVideoProjectDetails--; } @@ -5356,14 +5356,14 @@ buildCounterVideoRecordingDetails--; } -buildUnnamed769() { +buildUnnamed793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed769(core.List<core.String> o) { +checkUnnamed793(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5383,7 +5383,7 @@ o.liveBroadcastContent = "foo"; o.localized = buildVideoLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed769(); + o.tags = buildUnnamed793(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -5403,7 +5403,7 @@ unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); checkVideoLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed769(o.tags); + checkUnnamed793(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -5470,66 +5470,66 @@ buildCounterVideoStatus--; } -buildUnnamed770() { +buildUnnamed794() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed770(core.List<core.String> o) { +checkUnnamed794(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed771() { +buildUnnamed795() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed771(core.List<core.String> o) { +checkUnnamed795(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed772() { +buildUnnamed796() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed772(core.List<core.String> o) { +checkUnnamed796(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed773() { +buildUnnamed797() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed773(core.List<core.String> o) { +checkUnnamed797(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed774() { +buildUnnamed798() { var o = new core.List<api.VideoSuggestionsTagSuggestion>(); o.add(buildVideoSuggestionsTagSuggestion()); o.add(buildVideoSuggestionsTagSuggestion()); return o; } -checkUnnamed774(core.List<api.VideoSuggestionsTagSuggestion> o) { +checkUnnamed798(core.List<api.VideoSuggestionsTagSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoSuggestionsTagSuggestion(o[0]); checkVideoSuggestionsTagSuggestion(o[1]); @@ -5540,11 +5540,11 @@ var o = new api.VideoSuggestions(); buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - o.editorSuggestions = buildUnnamed770(); - o.processingErrors = buildUnnamed771(); - o.processingHints = buildUnnamed772(); - o.processingWarnings = buildUnnamed773(); - o.tagSuggestions = buildUnnamed774(); + o.editorSuggestions = buildUnnamed794(); + o.processingErrors = buildUnnamed795(); + o.processingHints = buildUnnamed796(); + o.processingWarnings = buildUnnamed797(); + o.tagSuggestions = buildUnnamed798(); } buildCounterVideoSuggestions--; return o; @@ -5553,23 +5553,23 @@ checkVideoSuggestions(api.VideoSuggestions o) { buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - checkUnnamed770(o.editorSuggestions); - checkUnnamed771(o.processingErrors); - checkUnnamed772(o.processingHints); - checkUnnamed773(o.processingWarnings); - checkUnnamed774(o.tagSuggestions); + checkUnnamed794(o.editorSuggestions); + checkUnnamed795(o.processingErrors); + checkUnnamed796(o.processingHints); + checkUnnamed797(o.processingWarnings); + checkUnnamed798(o.tagSuggestions); } buildCounterVideoSuggestions--; } -buildUnnamed775() { +buildUnnamed799() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed775(core.List<core.String> o) { +checkUnnamed799(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5580,7 +5580,7 @@ var o = new api.VideoSuggestionsTagSuggestion(); buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - o.categoryRestricts = buildUnnamed775(); + o.categoryRestricts = buildUnnamed799(); o.tag = "foo"; } buildCounterVideoSuggestionsTagSuggestion--; @@ -5590,33 +5590,33 @@ checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - checkUnnamed775(o.categoryRestricts); + checkUnnamed799(o.categoryRestricts); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterVideoSuggestionsTagSuggestion--; } -buildUnnamed776() { +buildUnnamed800() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed776(core.List<core.String> o) { +checkUnnamed800(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed777() { +buildUnnamed801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed777(core.List<core.String> o) { +checkUnnamed801(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5627,8 +5627,8 @@ var o = new api.VideoTopicDetails(); buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - o.relevantTopicIds = buildUnnamed776(); - o.topicIds = buildUnnamed777(); + o.relevantTopicIds = buildUnnamed800(); + o.topicIds = buildUnnamed801(); } buildCounterVideoTopicDetails--; return o; @@ -5637,8 +5637,8 @@ checkVideoTopicDetails(api.VideoTopicDetails o) { buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - checkUnnamed776(o.relevantTopicIds); - checkUnnamed777(o.topicIds); + checkUnnamed800(o.relevantTopicIds); + checkUnnamed801(o.topicIds); } buildCounterVideoTopicDetails--; } @@ -9760,6 +9760,7 @@ var mock = new HttpServerMock(); api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; var arg_id = "foo"; + var arg_onBehalfOfContentOwner = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -9789,6 +9790,7 @@ } } unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); var h = { @@ -9797,7 +9799,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); }); unittest.test("method--insert", () { @@ -9918,6 +9920,7 @@ api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; var arg_request = buildPlaylistItem(); var arg_part = "foo"; + var arg_onBehalfOfContentOwner = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.PlaylistItem.fromJson(json); checkPlaylistItem(obj); @@ -9950,6 +9953,7 @@ } } unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); var h = { @@ -9958,7 +9962,7 @@ var resp = convert.JSON.encode(buildPlaylistItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part).then(unittest.expectAsync(((api.PlaylistItem response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { checkPlaylistItem(response); }))); }); @@ -10859,7 +10863,9 @@ var arg_hl = "foo"; var arg_id = "foo"; var arg_locale = "foo"; + var arg_maxHeight = 42; var arg_maxResults = 42; + var arg_maxWidth = 42; var arg_myRating = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_pageToken = "foo"; @@ -10898,7 +10904,9 @@ unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(core.int.parse(queryMap["maxHeight"].first), unittest.equals(arg_maxHeight)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(core.int.parse(queryMap["maxWidth"].first), unittest.equals(arg_maxWidth)); unittest.expect(queryMap["myRating"].first, unittest.equals(arg_myRating)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -10912,7 +10920,7 @@ var resp = convert.JSON.encode(buildVideoListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_locale, maxResults: arg_maxResults, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync(((api.VideoListResponse response) { + res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_locale, maxHeight: arg_maxHeight, maxResults: arg_maxResults, maxWidth: arg_maxWidth, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync(((api.VideoListResponse response) { checkVideoListResponse(response); }))); });
diff --git a/generated/googleapis/test/youtubeanalytics/v1_test.dart b/generated/googleapis/test/youtubeanalytics/v1_test.dart index 4aeb888..25e8afb 100644 --- a/generated/googleapis/test/youtubeanalytics/v1_test.dart +++ b/generated/googleapis/test/youtubeanalytics/v1_test.dart
@@ -74,14 +74,14 @@ buildCounterBatchReportOutputs--; } -buildUnnamed174() { +buildUnnamed189() { var o = new core.List<api.BatchReportOutputs>(); o.add(buildBatchReportOutputs()); o.add(buildBatchReportOutputs()); return o; } -checkUnnamed174(core.List<api.BatchReportOutputs> o) { +checkUnnamed189(core.List<api.BatchReportOutputs> o) { unittest.expect(o, unittest.hasLength(2)); checkBatchReportOutputs(o[0]); checkBatchReportOutputs(o[1]); @@ -115,7 +115,7 @@ if (buildCounterBatchReport < 3) { o.id = "foo"; o.kind = "foo"; - o.outputs = buildUnnamed174(); + o.outputs = buildUnnamed189(); o.reportId = "foo"; o.timeSpan = buildBatchReportTimeSpan(); o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -129,7 +129,7 @@ if (buildCounterBatchReport < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed174(o.outputs); + checkUnnamed189(o.outputs); unittest.expect(o.reportId, unittest.equals('foo')); checkBatchReportTimeSpan(o.timeSpan); unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -164,14 +164,14 @@ buildCounterBatchReportDefinition--; } -buildUnnamed175() { +buildUnnamed190() { var o = new core.List<api.BatchReportDefinition>(); o.add(buildBatchReportDefinition()); o.add(buildBatchReportDefinition()); return o; } -checkUnnamed175(core.List<api.BatchReportDefinition> o) { +checkUnnamed190(core.List<api.BatchReportDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkBatchReportDefinition(o[0]); checkBatchReportDefinition(o[1]); @@ -182,7 +182,7 @@ var o = new api.BatchReportDefinitionList(); buildCounterBatchReportDefinitionList++; if (buildCounterBatchReportDefinitionList < 3) { - o.items = buildUnnamed175(); + o.items = buildUnnamed190(); o.kind = "foo"; } buildCounterBatchReportDefinitionList--; @@ -192,20 +192,20 @@ checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { buildCounterBatchReportDefinitionList++; if (buildCounterBatchReportDefinitionList < 3) { - checkUnnamed175(o.items); + checkUnnamed190(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBatchReportDefinitionList--; } -buildUnnamed176() { +buildUnnamed191() { var o = new core.List<api.BatchReport>(); o.add(buildBatchReport()); o.add(buildBatchReport()); return o; } -checkUnnamed176(core.List<api.BatchReport> o) { +checkUnnamed191(core.List<api.BatchReport> o) { unittest.expect(o, unittest.hasLength(2)); checkBatchReport(o[0]); checkBatchReport(o[1]); @@ -216,7 +216,7 @@ var o = new api.BatchReportList(); buildCounterBatchReportList++; if (buildCounterBatchReportList < 3) { - o.items = buildUnnamed176(); + o.items = buildUnnamed191(); o.kind = "foo"; } buildCounterBatchReportList--; @@ -226,7 +226,7 @@ checkBatchReportList(api.BatchReportList o) { buildCounterBatchReportList++; if (buildCounterBatchReportList < 3) { - checkUnnamed176(o.items); + checkUnnamed191(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBatchReportList--; @@ -349,14 +349,14 @@ buildCounterGroupItem--; } -buildUnnamed177() { +buildUnnamed192() { var o = new core.List<api.GroupItem>(); o.add(buildGroupItem()); o.add(buildGroupItem()); return o; } -checkUnnamed177(core.List<api.GroupItem> o) { +checkUnnamed192(core.List<api.GroupItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupItem(o[0]); checkGroupItem(o[1]); @@ -368,7 +368,7 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed177(); + o.items = buildUnnamed192(); o.kind = "foo"; } buildCounterGroupItemListResponse--; @@ -379,20 +379,20 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed177(o.items); + checkUnnamed192(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupItemListResponse--; } -buildUnnamed178() { +buildUnnamed193() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed178(core.List<api.Group> o) { +checkUnnamed193(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -404,7 +404,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed178(); + o.items = buildUnnamed193(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -416,7 +416,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed178(o.items); + checkUnnamed193(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -446,43 +446,43 @@ buildCounterResultTableColumnHeaders--; } -buildUnnamed179() { +buildUnnamed194() { var o = new core.List<api.ResultTableColumnHeaders>(); o.add(buildResultTableColumnHeaders()); o.add(buildResultTableColumnHeaders()); return o; } -checkUnnamed179(core.List<api.ResultTableColumnHeaders> o) { +checkUnnamed194(core.List<api.ResultTableColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkResultTableColumnHeaders(o[0]); checkResultTableColumnHeaders(o[1]); } -buildUnnamed180() { +buildUnnamed195() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed180(core.List<core.Object> o) { +checkUnnamed195(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed181() { +buildUnnamed196() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed180()); - o.add(buildUnnamed180()); + o.add(buildUnnamed195()); + o.add(buildUnnamed195()); return o; } -checkUnnamed181(core.List<core.List<core.Object>> o) { +checkUnnamed196(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed180(o[0]); - checkUnnamed180(o[1]); + checkUnnamed195(o[0]); + checkUnnamed195(o[1]); } core.int buildCounterResultTable = 0; @@ -490,9 +490,9 @@ var o = new api.ResultTable(); buildCounterResultTable++; if (buildCounterResultTable < 3) { - o.columnHeaders = buildUnnamed179(); + o.columnHeaders = buildUnnamed194(); o.kind = "foo"; - o.rows = buildUnnamed181(); + o.rows = buildUnnamed196(); } buildCounterResultTable--; return o; @@ -501,9 +501,9 @@ checkResultTable(api.ResultTable o) { buildCounterResultTable++; if (buildCounterResultTable < 3) { - checkUnnamed179(o.columnHeaders); + checkUnnamed194(o.columnHeaders); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed181(o.rows); + checkUnnamed196(o.rows); } buildCounterResultTable--; }
diff --git a/generated/googleapis/test/youtubereporting/v1_test.dart b/generated/googleapis/test/youtubereporting/v1_test.dart index b5652f9..85a5860 100644 --- a/generated/googleapis/test/youtubereporting/v1_test.dart +++ b/generated/googleapis/test/youtubereporting/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterJob--; } -buildUnnamed1166() { +buildUnnamed1192() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1166(core.List<api.Job> o) { +checkUnnamed1192(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -115,7 +115,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed1166(); + o.jobs = buildUnnamed1192(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -125,20 +125,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed1166(o.jobs); + checkUnnamed1192(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed1167() { +buildUnnamed1193() { var o = new core.List<api.ReportType>(); o.add(buildReportType()); o.add(buildReportType()); return o; } -checkUnnamed1167(core.List<api.ReportType> o) { +checkUnnamed1193(core.List<api.ReportType> o) { unittest.expect(o, unittest.hasLength(2)); checkReportType(o[0]); checkReportType(o[1]); @@ -150,7 +150,7 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { o.nextPageToken = "foo"; - o.reportTypes = buildUnnamed1167(); + o.reportTypes = buildUnnamed1193(); } buildCounterListReportTypesResponse--; return o; @@ -160,19 +160,19 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1167(o.reportTypes); + checkUnnamed1193(o.reportTypes); } buildCounterListReportTypesResponse--; } -buildUnnamed1168() { +buildUnnamed1194() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1168(core.List<api.Report> o) { +checkUnnamed1194(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -184,7 +184,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.nextPageToken = "foo"; - o.reports = buildUnnamed1168(); + o.reports = buildUnnamed1194(); } buildCounterListReportsResponse--; return o; @@ -194,7 +194,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1168(o.reports); + checkUnnamed1194(o.reports); } buildCounterListReportsResponse--; }